Completed
Push — master ( 521882...b49ab8 )
by Aimeos
04:07
created
admin/jqadm/templates/type/tag/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/tag/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['tag.type.domain', 'tag.type.status', 'tag.type.code', 'tag.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/tag/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/tag/fields', $default );
56
+$default = $this->config('admin/jqadm/type/tag/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/tag/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'tag.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'tag.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'tag.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'tag.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'tag.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'tag.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'tag.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'tag.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'tag.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'tag.type.id' => $this->translate('admin', 'ID'),
69
+	'tag.type.domain' => $this->translate('admin', 'Domain'),
70
+	'tag.type.status' => $this->translate('admin', 'Status'),
71
+	'tag.type.code' => $this->translate('admin', 'Code'),
72
+	'tag.type.label' => $this->translate('admin', 'Label'),
73
+	'tag.type.position' => $this->translate('admin', 'Position'),
74
+	'tag.type.ctime' => $this->translate('admin', 'Created'),
75
+	'tag.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'tag.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Tag Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Tag Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/tag/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/tag/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/tag/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/tag/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-tag-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-tag-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/tag/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/tag/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/tag/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/tag/filter', []),
139 139
 					'data' => [
140 140
 						'tag.type.id' => ['op' => '=='],
141 141
 						'tag.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'tag' => $this->translate( 'admin', 'tag' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'tag' => $this->translate( 'admin', 'tag' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'tag' => $this->translate('admin', 'tag'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'tag' => $this->translate('admin', 'tag'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'tag.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'tag.type.code' => [],
159 159
 						'tag.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'tag.type.id', $fields ) ) : ?>
172
-						<td class="tag-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('tag.type.id', $fields)) : ?>
172
+						<td class="tag-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'tag.type.domain', $fields ) ) : ?>
175
-						<td class="tag-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('tag.type.domain', $fields)) : ?>
175
+						<td class="tag-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'tag.type.status', $fields ) ) : ?>
178
-						<td class="tag-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('tag.type.status', $fields)) : ?>
178
+						<td class="tag-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'tag.type.code', $fields ) ) : ?>
181
-						<td class="tag-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('tag.type.code', $fields)) : ?>
181
+						<td class="tag-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'tag.type.label', $fields ) ) : ?>
184
-						<td class="tag-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('tag.type.label', $fields)) : ?>
184
+						<td class="tag-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'tag.type.position', $fields ) ) : ?>
187
-						<td class="tag-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('tag.type.position', $fields)) : ?>
187
+						<td class="tag-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'tag.type.ctime', $fields ) ) : ?>
190
-						<td class="tag-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('tag.type.ctime', $fields)) : ?>
190
+						<td class="tag-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'tag.type.mtime', $fields ) ) : ?>
193
-						<td class="tag-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('tag.type.mtime', $fields)) : ?>
193
+						<td class="tag-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'tag.type.editor', $fields ) ) : ?>
196
-						<td class="tag-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('tag.type.editor', $fields)) : ?>
196
+						<td class="tag-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/tag/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/tag/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/product/property/list-standard.php 1 patch
Spacing   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/product/property/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['product.property.type.domain', 'product.property.type.status', 'product.property.type.code', 'product.property.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/product/property/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/product/property/fields', $default );
56
+$default = $this->config('admin/jqadm/type/product/property/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/product/property/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'product.property.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'product.property.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'product.property.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'product.property.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'product.property.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'product.property.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'product.property.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'product.property.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'product.property.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'product.property.type.id' => $this->translate('admin', 'ID'),
69
+	'product.property.type.domain' => $this->translate('admin', 'Domain'),
70
+	'product.property.type.status' => $this->translate('admin', 'Status'),
71
+	'product.property.type.code' => $this->translate('admin', 'Code'),
72
+	'product.property.type.label' => $this->translate('admin', 'Label'),
73
+	'product.property.type.position' => $this->translate('admin', 'Position'),
74
+	'product.property.type.ctime' => $this->translate('admin', 'Created'),
75
+	'product.property.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'product.property.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Product Property Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Product Property Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/product/property/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/product/property/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/product/property/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/product/property/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-product-property-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-product-property-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/product/property/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/product/property/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,18 +134,18 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/product/property/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/product/property/filter', []),
139 139
 					'data' => [
140 140
 						'product.property.type.id' => ['op' => '=='],
141 141
 						'product.property.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'product' => $this->translate( 'admin', 'product' ),
142
+							'product' => $this->translate('admin', 'product'),
143 143
 						]],
144 144
 						'product.property.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
145
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
146
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
147
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
148
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
145
+							'1' => $this->translate('mshop/code', 'status:1'),
146
+							'0' => $this->translate('mshop/code', 'status:0'),
147
+							'-1' => $this->translate('mshop/code', 'status:-1'),
148
+							'-2' => $this->translate('mshop/code', 'status:-2'),
149 149
 						]],
150 150
 						'product.property.type.code' => [],
151 151
 						'product.property.type.label' => [],
@@ -157,47 +157,47 @@  discard block
 block discarded – undo
157 157
 				] );
158 158
 			?>
159 159
 
160
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
161
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
162
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
163
-					<?php if( in_array( 'product.property.type.id', $fields ) ) : ?>
164
-						<td class="product-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
160
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
161
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
162
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
163
+					<?php if (in_array('product.property.type.id', $fields)) : ?>
164
+						<td class="product-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
165 165
 					<?php endif; ?>
166
-					<?php if( in_array( 'product.property.type.domain', $fields ) ) : ?>
167
-						<td class="product-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
166
+					<?php if (in_array('product.property.type.domain', $fields)) : ?>
167
+						<td class="product-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
168 168
 					<?php endif; ?>
169
-					<?php if( in_array( 'product.property.type.status', $fields ) ) : ?>
170
-						<td class="product-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
169
+					<?php if (in_array('product.property.type.status', $fields)) : ?>
170
+						<td class="product-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
171 171
 					<?php endif; ?>
172
-					<?php if( in_array( 'product.property.type.code', $fields ) ) : ?>
173
-						<td class="product-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
172
+					<?php if (in_array('product.property.type.code', $fields)) : ?>
173
+						<td class="product-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
174 174
 					<?php endif; ?>
175
-					<?php if( in_array( 'product.property.type.label', $fields ) ) : ?>
176
-						<td class="product-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
175
+					<?php if (in_array('product.property.type.label', $fields)) : ?>
176
+						<td class="product-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
177 177
 					<?php endif; ?>
178
-					<?php if( in_array( 'product.property.type.position', $fields ) ) : ?>
179
-						<td class="product-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
178
+					<?php if (in_array('product.property.type.position', $fields)) : ?>
179
+						<td class="product-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
180 180
 					<?php endif; ?>
181
-					<?php if( in_array( 'product.property.type.ctime', $fields ) ) : ?>
182
-						<td class="product-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
181
+					<?php if (in_array('product.property.type.ctime', $fields)) : ?>
182
+						<td class="product-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
183 183
 					<?php endif; ?>
184
-					<?php if( in_array( 'product.property.type.mtime', $fields ) ) : ?>
185
-						<td class="product-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
184
+					<?php if (in_array('product.property.type.mtime', $fields)) : ?>
185
+						<td class="product-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
186 186
 					<?php endif; ?>
187
-					<?php if( in_array( 'product.property.type.editor', $fields ) ) : ?>
188
-						<td class="product-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
187
+					<?php if (in_array('product.property.type.editor', $fields)) : ?>
188
+						<td class="product-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
189 189
 					<?php endif; ?>
190 190
 
191 191
 					<td class="actions">
192 192
 						<a class="btn act-copy fa" tabindex="1"
193
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
194
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
195
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
196
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
193
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
194
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
195
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
196
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
197 197
 							<a class="btn act-delete fa" tabindex="1"
198
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
199
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
200
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
198
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
199
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
200
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
201 201
 						<?php endif; ?>
202 202
 					</td>
203 203
 				</tr>
@@ -205,18 +205,18 @@  discard block
 block discarded – undo
205 205
 		</tbody>
206 206
 	</table>
207 207
 
208
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
209
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
208
+	<?php if ($this->get('items', []) === []) : ?>
209
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
210 210
 	<?php endif; ?>
211 211
 </form>
212 212
 
213 213
 <?= $this->partial(
214
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
215
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
216
-		'page' => $this->session( 'aimeos/admin/jqadm/type/product/property/page', [] )]
214
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
215
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
216
+		'page' => $this->session('aimeos/admin/jqadm/type/product/property/page', [])]
217 217
 	);
218 218
 ?>
219 219
 
220 220
 <?php $this->block()->stop(); ?>
221 221
 
222
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
222
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/product/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/product/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['product.type.domain', 'product.type.status', 'product.type.code', 'product.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/product/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/product/fields', $default );
56
+$default = $this->config('admin/jqadm/type/product/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/product/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'product.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'product.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'product.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'product.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'product.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'product.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'product.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'product.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'product.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'product.type.id' => $this->translate('admin', 'ID'),
69
+	'product.type.domain' => $this->translate('admin', 'Domain'),
70
+	'product.type.status' => $this->translate('admin', 'Status'),
71
+	'product.type.code' => $this->translate('admin', 'Code'),
72
+	'product.type.label' => $this->translate('admin', 'Label'),
73
+	'product.type.position' => $this->translate('admin', 'Position'),
74
+	'product.type.ctime' => $this->translate('admin', 'Created'),
75
+	'product.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'product.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Product Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Product Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/product/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/product/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/product/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/product/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-product-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-product-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/product/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/product/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/product/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/product/filter', []),
139 139
 					'data' => [
140 140
 						'product.type.id' => ['op' => '=='],
141 141
 						'product.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'product' => $this->translate( 'admin', 'product' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'product' => $this->translate('admin', 'product'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'product.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'product.type.code' => [],
159 159
 						'product.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'product.type.id', $fields ) ) : ?>
172
-						<td class="product-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('product.type.id', $fields)) : ?>
172
+						<td class="product-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'product.type.domain', $fields ) ) : ?>
175
-						<td class="product-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('product.type.domain', $fields)) : ?>
175
+						<td class="product-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'product.type.status', $fields ) ) : ?>
178
-						<td class="product-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('product.type.status', $fields)) : ?>
178
+						<td class="product-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'product.type.code', $fields ) ) : ?>
181
-						<td class="product-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('product.type.code', $fields)) : ?>
181
+						<td class="product-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'product.type.label', $fields ) ) : ?>
184
-						<td class="product-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('product.type.label', $fields)) : ?>
184
+						<td class="product-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'product.type.position', $fields ) ) : ?>
187
-						<td class="product-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('product.type.position', $fields)) : ?>
187
+						<td class="product-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'product.type.ctime', $fields ) ) : ?>
190
-						<td class="product-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('product.type.ctime', $fields)) : ?>
190
+						<td class="product-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'product.type.mtime', $fields ) ) : ?>
193
-						<td class="product-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('product.type.mtime', $fields)) : ?>
193
+						<td class="product-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'product.type.editor', $fields ) ) : ?>
196
-						<td class="product-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('product.type.editor', $fields)) : ?>
196
+						<td class="product-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/product/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/product/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/product/lists/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/product/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['product.lists.type.domain', 'product.lists.type.status', 'product.lists.type.code', 'product.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/product/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/product/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/product/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/product/lists/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'product.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'product.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'product.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'product.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'product.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'product.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'product.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'product.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'product.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'product.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'product.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'product.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'product.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'product.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'product.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'product.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'product.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'product.lists.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Product Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Product Lists Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/product/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/product/lists/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/product/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/product/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-product-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-product-lists-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/product/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/product/lists/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/product/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/product/lists/filter', []),
139 139
 					'data' => [
140 140
 						'product.lists.type.id' => ['op' => '=='],
141 141
 						'product.lists.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'product.lists.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'product.lists.type.code' => [],
159 159
 						'product.lists.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'product.lists.type.id', $fields ) ) : ?>
172
-						<td class="product-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('product.lists.type.id', $fields)) : ?>
172
+						<td class="product-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'product.lists.type.domain', $fields ) ) : ?>
175
-						<td class="product-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('product.lists.type.domain', $fields)) : ?>
175
+						<td class="product-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'product.lists.type.status', $fields ) ) : ?>
178
-						<td class="product-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('product.lists.type.status', $fields)) : ?>
178
+						<td class="product-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'product.lists.type.code', $fields ) ) : ?>
181
-						<td class="product-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('product.lists.type.code', $fields)) : ?>
181
+						<td class="product-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'product.lists.type.label', $fields ) ) : ?>
184
-						<td class="product-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('product.lists.type.label', $fields)) : ?>
184
+						<td class="product-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'product.lists.type.position', $fields ) ) : ?>
187
-						<td class="product-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('product.lists.type.position', $fields)) : ?>
187
+						<td class="product-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'product.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="product-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('product.lists.type.ctime', $fields)) : ?>
190
+						<td class="product-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'product.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="product-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('product.lists.type.mtime', $fields)) : ?>
193
+						<td class="product-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'product.lists.type.editor', $fields ) ) : ?>
196
-						<td class="product-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('product.lists.type.editor', $fields)) : ?>
196
+						<td class="product-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/product/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/product/lists/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/service/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/service/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['service.type.domain', 'service.type.status', 'service.type.code', 'service.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/service/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/service/fields', $default );
56
+$default = $this->config('admin/jqadm/type/service/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/service/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'service.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'service.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'service.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'service.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'service.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'service.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'service.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'service.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'service.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'service.type.id' => $this->translate('admin', 'ID'),
69
+	'service.type.domain' => $this->translate('admin', 'Domain'),
70
+	'service.type.status' => $this->translate('admin', 'Status'),
71
+	'service.type.code' => $this->translate('admin', 'Code'),
72
+	'service.type.label' => $this->translate('admin', 'Label'),
73
+	'service.type.position' => $this->translate('admin', 'Position'),
74
+	'service.type.ctime' => $this->translate('admin', 'Created'),
75
+	'service.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'service.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Service Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Service Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/service/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/service/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/service/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/service/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-service-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-service-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/service/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/service/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/service/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/service/filter', []),
139 139
 					'data' => [
140 140
 						'service.type.id' => ['op' => '=='],
141 141
 						'service.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'service' => $this->translate( 'admin', 'service' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'service' => $this->translate('admin', 'service'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'service.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'service.type.code' => [],
159 159
 						'service.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'service.type.id', $fields ) ) : ?>
172
-						<td class="service-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('service.type.id', $fields)) : ?>
172
+						<td class="service-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'service.type.domain', $fields ) ) : ?>
175
-						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('service.type.domain', $fields)) : ?>
175
+						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'service.type.status', $fields ) ) : ?>
178
-						<td class="service-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('service.type.status', $fields)) : ?>
178
+						<td class="service-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'service.type.code', $fields ) ) : ?>
181
-						<td class="service-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('service.type.code', $fields)) : ?>
181
+						<td class="service-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'service.type.label', $fields ) ) : ?>
184
-						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('service.type.label', $fields)) : ?>
184
+						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'service.type.position', $fields ) ) : ?>
187
-						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('service.type.position', $fields)) : ?>
187
+						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'service.type.ctime', $fields ) ) : ?>
190
-						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('service.type.ctime', $fields)) : ?>
190
+						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'service.type.mtime', $fields ) ) : ?>
193
-						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('service.type.mtime', $fields)) : ?>
193
+						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'service.type.editor', $fields ) ) : ?>
196
-						<td class="service-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('service.type.editor', $fields)) : ?>
196
+						<td class="service-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/service/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/service/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/type/service/lists/list-standard.php 1 patch
Spacing   +99 added lines, -99 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@  discard block
 block discarded – undo
8 8
 $enc = $this->encoder();
9 9
 
10 10
 
11
-$target = $this->config( 'admin/jqadm/url/search/target' );
12
-$controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
13
-$action = $this->config( 'admin/jqadm/url/search/action', 'search' );
14
-$config = $this->config( 'admin/jqadm/url/search/config', [] );
11
+$target = $this->config('admin/jqadm/url/search/target');
12
+$controller = $this->config('admin/jqadm/url/search/controller', 'Jqadm');
13
+$action = $this->config('admin/jqadm/url/search/action', 'search');
14
+$config = $this->config('admin/jqadm/url/search/config', []);
15 15
 
16 16
 
17
-$newTarget = $this->config( 'admin/jqadm/url/create/target' );
18
-$newCntl = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
19
-$newAction = $this->config( 'admin/jqadm/url/create/action', 'create' );
20
-$newConfig = $this->config( 'admin/jqadm/url/create/config', [] );
17
+$newTarget = $this->config('admin/jqadm/url/create/target');
18
+$newCntl = $this->config('admin/jqadm/url/create/controller', 'Jqadm');
19
+$newAction = $this->config('admin/jqadm/url/create/action', 'create');
20
+$newConfig = $this->config('admin/jqadm/url/create/config', []);
21 21
 
22 22
 
23
-$getTarget = $this->config( 'admin/jqadm/url/get/target' );
24
-$getCntl = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
25
-$getAction = $this->config( 'admin/jqadm/url/get/action', 'get' );
26
-$getConfig = $this->config( 'admin/jqadm/url/get/config', [] );
23
+$getTarget = $this->config('admin/jqadm/url/get/target');
24
+$getCntl = $this->config('admin/jqadm/url/get/controller', 'Jqadm');
25
+$getAction = $this->config('admin/jqadm/url/get/action', 'get');
26
+$getConfig = $this->config('admin/jqadm/url/get/config', []);
27 27
 
28 28
 
29
-$copyTarget = $this->config( 'admin/jqadm/url/copy/target' );
30
-$copyCntl = $this->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
31
-$copyAction = $this->config( 'admin/jqadm/url/copy/action', 'copy' );
32
-$copyConfig = $this->config( 'admin/jqadm/url/copy/config', [] );
29
+$copyTarget = $this->config('admin/jqadm/url/copy/target');
30
+$copyCntl = $this->config('admin/jqadm/url/copy/controller', 'Jqadm');
31
+$copyAction = $this->config('admin/jqadm/url/copy/action', 'copy');
32
+$copyConfig = $this->config('admin/jqadm/url/copy/config', []);
33 33
 
34 34
 
35
-$delTarget = $this->config( 'admin/jqadm/url/delete/target' );
36
-$delCntl = $this->config( 'admin/jqadm/url/delete/controller', 'Jqadm' );
37
-$delAction = $this->config( 'admin/jqadm/url/delete/action', 'delete' );
38
-$delConfig = $this->config( 'admin/jqadm/url/delete/config', [] );
35
+$delTarget = $this->config('admin/jqadm/url/delete/target');
36
+$delCntl = $this->config('admin/jqadm/url/delete/controller', 'Jqadm');
37
+$delAction = $this->config('admin/jqadm/url/delete/action', 'delete');
38
+$delConfig = $this->config('admin/jqadm/url/delete/config', []);
39 39
 
40 40
 
41 41
 /** admin/jqadm/type/service/lists/fields
@@ -53,44 +53,44 @@  discard block
 block discarded – undo
53 53
  * @category Developer
54 54
  */
55 55
 $default = ['service.lists.type.domain', 'service.lists.type.status', 'service.lists.type.code', 'service.lists.type.label'];
56
-$default = $this->config( 'admin/jqadm/type/service/lists/fields', $default );
57
-$fields = $this->session( 'aimeos/admin/jqadm/type/service/lists/fields', $default );
56
+$default = $this->config('admin/jqadm/type/service/lists/fields', $default);
57
+$fields = $this->session('aimeos/admin/jqadm/type/service/lists/fields', $default);
58 58
 
59
-$searchParams = $params = $this->get( 'pageParams', [] );
59
+$searchParams = $params = $this->get('pageParams', []);
60 60
 $searchParams['page']['start'] = 0;
61 61
 
62 62
 $typeList = [];
63
-foreach( $this->get( 'itemTypes', [] ) as $typeItem ) {
63
+foreach ($this->get('itemTypes', []) as $typeItem) {
64 64
 	$typeList[$typeItem->getCode()] = $typeItem->getCode();
65 65
 }
66 66
 
67 67
 $columnList = [
68
-	'service.lists.type.id' => $this->translate( 'admin', 'ID' ),
69
-	'service.lists.type.domain' => $this->translate( 'admin', 'Domain' ),
70
-	'service.lists.type.status' => $this->translate( 'admin', 'Status' ),
71
-	'service.lists.type.code' => $this->translate( 'admin', 'Code' ),
72
-	'service.lists.type.label' => $this->translate( 'admin', 'Label' ),
73
-	'service.lists.type.position' => $this->translate( 'admin', 'Position' ),
74
-	'service.lists.type.ctime' => $this->translate( 'admin', 'Created' ),
75
-	'service.lists.type.mtime' => $this->translate( 'admin', 'Modified' ),
76
-	'service.lists.type.editor' => $this->translate( 'admin', 'Editor' ),
68
+	'service.lists.type.id' => $this->translate('admin', 'ID'),
69
+	'service.lists.type.domain' => $this->translate('admin', 'Domain'),
70
+	'service.lists.type.status' => $this->translate('admin', 'Status'),
71
+	'service.lists.type.code' => $this->translate('admin', 'Code'),
72
+	'service.lists.type.label' => $this->translate('admin', 'Label'),
73
+	'service.lists.type.position' => $this->translate('admin', 'Position'),
74
+	'service.lists.type.ctime' => $this->translate('admin', 'Created'),
75
+	'service.lists.type.mtime' => $this->translate('admin', 'Modified'),
76
+	'service.lists.type.editor' => $this->translate('admin', 'Editor'),
77 77
 ];
78 78
 
79 79
 ?>
80
-<?php $this->block()->start( 'jqadm_content' ); ?>
80
+<?php $this->block()->start('jqadm_content'); ?>
81 81
 
82 82
 <nav class="main-navbar">
83 83
 
84 84
 	<span class="navbar-brand">
85
-		<?= $enc->html( $this->translate( 'admin', 'Service Lists Types' ) ); ?>
86
-		<span class="navbar-secondary">(<?= $enc->html( $this->site()->label() ); ?>)</span>
85
+		<?= $enc->html($this->translate('admin', 'Service Lists Types')); ?>
86
+		<span class="navbar-secondary">(<?= $enc->html($this->site()->label()); ?>)</span>
87 87
 	</span>
88 88
 
89 89
 	<?= $this->partial(
90
-		$this->config( 'admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard' ), [
91
-			'filter' => $this->session( 'aimeos/admin/jqadm/type/service/lists/filter', [] ),
92
-			'filterAttributes' => $this->get( 'filterAttributes', [] ),
93
-			'filterOperators' => $this->get( 'filterOperators', [] ),
90
+		$this->config('admin/jqadm/partial/navsearch', 'common/partials/navsearch-standard'), [
91
+			'filter' => $this->session('aimeos/admin/jqadm/type/service/lists/filter', []),
92
+			'filterAttributes' => $this->get('filterAttributes', []),
93
+			'filterOperators' => $this->get('filterOperators', []),
94 94
 			'params' => $params,
95 95
 		]
96 96
 	); ?>
@@ -98,33 +98,33 @@  discard block
 block discarded – undo
98 98
 
99 99
 
100 100
 <?= $this->partial(
101
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
102
-		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get( 'total' ),
103
-		'page' => $this->session( 'aimeos/admin/jqadm/type/service/lists/page', [] )]
101
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
102
+		['pageParams' => $params, 'pos' => 'top', 'total' => $this->get('total'),
103
+		'page' => $this->session('aimeos/admin/jqadm/type/service/lists/page', [])]
104 104
 	);
105 105
 ?>
106 106
 
107
-<form class="list list-service-lists-type" method="POST" action="<?= $enc->attr( $this->url( $target, $controller, $action, $searchParams, [], $config ) ); ?>">
107
+<form class="list list-service-lists-type" method="POST" action="<?= $enc->attr($this->url($target, $controller, $action, $searchParams, [], $config)); ?>">
108 108
 	<?= $this->csrf()->formfield(); ?>
109 109
 
110 110
 	<table class="list-items table table-hover table-striped">
111 111
 		<thead class="list-header">
112 112
 			<tr>
113 113
 				<?= $this->partial(
114
-						$this->config( 'admin/jqadm/partial/listhead', 'common/partials/listhead-standard' ),
115
-						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session( 'aimeos/admin/jqadm/type/service/lists/sort' )]
114
+						$this->config('admin/jqadm/partial/listhead', 'common/partials/listhead-standard'),
115
+						['fields' => $fields, 'params' => $params, 'data' => $columnList, 'sort' => $this->session('aimeos/admin/jqadm/type/service/lists/sort')]
116 116
 					);
117 117
 				?>
118 118
 
119 119
 				<th class="actions">
120 120
 					<a class="btn fa act-add" tabindex="1"
121
-						href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>"
122
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
123
-						aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>">
121
+						href="<?= $enc->attr($this->url($newTarget, $newCntl, $newAction, $params, [], $newConfig)); ?>"
122
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
123
+						aria-label="<?= $enc->attr($this->translate('admin', 'Add')); ?>">
124 124
 					</a>
125 125
 
126 126
 					<?= $this->partial(
127
-							$this->config( 'admin/jqadm/partial/columns', 'common/partials/columns-standard' ),
127
+							$this->config('admin/jqadm/partial/columns', 'common/partials/columns-standard'),
128 128
 							['fields' => $fields, 'data' => $columnList]
129 129
 						);
130 130
 					?>
@@ -134,26 +134,26 @@  discard block
 block discarded – undo
134 134
 		<tbody>
135 135
 
136 136
 			<?= $this->partial(
137
-				$this->config( 'admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard' ), [
138
-					'fields' => $fields, 'filter' => $this->session( 'aimeos/admin/jqadm/type/service/lists/filter', [] ),
137
+				$this->config('admin/jqadm/partial/listsearch', 'common/partials/listsearch-standard'), [
138
+					'fields' => $fields, 'filter' => $this->session('aimeos/admin/jqadm/type/service/lists/filter', []),
139 139
 					'data' => [
140 140
 						'service.lists.type.id' => ['op' => '=='],
141 141
 						'service.lists.type.domain' => ['op' => '==', 'type' => 'select', 'val' => [
142
-							'attribute' => $this->translate( 'admin', 'attribute' ),
143
-							'catalog' => $this->translate( 'admin', 'catalog' ),
144
-							'customer' => $this->translate( 'admin', 'customer' ),
145
-							'media' => $this->translate( 'admin', 'media' ),
146
-							'price' => $this->translate( 'admin', 'price' ),
147
-							'product' => $this->translate( 'admin', 'product' ),
148
-							'service' => $this->translate( 'admin', 'service' ),
149
-							'supplier' => $this->translate( 'admin', 'supplier' ),
150
-							'text' => $this->translate( 'admin', 'text' ),
142
+							'attribute' => $this->translate('admin', 'attribute'),
143
+							'catalog' => $this->translate('admin', 'catalog'),
144
+							'customer' => $this->translate('admin', 'customer'),
145
+							'media' => $this->translate('admin', 'media'),
146
+							'price' => $this->translate('admin', 'price'),
147
+							'product' => $this->translate('admin', 'product'),
148
+							'service' => $this->translate('admin', 'service'),
149
+							'supplier' => $this->translate('admin', 'supplier'),
150
+							'text' => $this->translate('admin', 'text'),
151 151
 						]],
152 152
 						'service.lists.type.status' => ['op' => '==', 'type' => 'select', 'val' => [
153
-							'1' => $this->translate( 'mshop/code', 'status:1' ),
154
-							'0' => $this->translate( 'mshop/code', 'status:0' ),
155
-							'-1' => $this->translate( 'mshop/code', 'status:-1' ),
156
-							'-2' => $this->translate( 'mshop/code', 'status:-2' ),
153
+							'1' => $this->translate('mshop/code', 'status:1'),
154
+							'0' => $this->translate('mshop/code', 'status:0'),
155
+							'-1' => $this->translate('mshop/code', 'status:-1'),
156
+							'-2' => $this->translate('mshop/code', 'status:-2'),
157 157
 						]],
158 158
 						'service.lists.type.code' => [],
159 159
 						'service.lists.type.label' => [],
@@ -165,47 +165,47 @@  discard block
 block discarded – undo
165 165
 				] );
166 166
 			?>
167 167
 
168
-			<?php foreach( $this->get( 'items', [] ) as $id => $item ) : ?>
169
-				<?php $url = $enc->attr( $this->url( $getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig ) ); ?>
170
-				<tr class="<?= $this->site()->readonly( $item->getSiteId() ); ?>">
171
-					<?php if( in_array( 'service.lists.type.id', $fields ) ) : ?>
172
-						<td class="service-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getId() ); ?></a></td>
168
+			<?php foreach ($this->get('items', []) as $id => $item) : ?>
169
+				<?php $url = $enc->attr($this->url($getTarget, $getCntl, $getAction, ['id' => $id] + $params, [], $getConfig)); ?>
170
+				<tr class="<?= $this->site()->readonly($item->getSiteId()); ?>">
171
+					<?php if (in_array('service.lists.type.id', $fields)) : ?>
172
+						<td class="service-type-id"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getId()); ?></a></td>
173 173
 					<?php endif; ?>
174
-					<?php if( in_array( 'service.lists.type.domain', $fields ) ) : ?>
175
-						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getDomain() ); ?></a></td>
174
+					<?php if (in_array('service.lists.type.domain', $fields)) : ?>
175
+						<td class="service-type-domain"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getDomain()); ?></a></td>
176 176
 					<?php endif; ?>
177
-					<?php if( in_array( 'service.lists.type.status', $fields ) ) : ?>
178
-						<td class="service-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr( $item->getStatus() ); ?>"></div></a></td>
177
+					<?php if (in_array('service.lists.type.status', $fields)) : ?>
178
+						<td class="service-type-status"><a class="items-field" href="<?= $url; ?>"><div class="fa status-<?= $enc->attr($item->getStatus()); ?>"></div></a></td>
179 179
 					<?php endif; ?>
180
-					<?php if( in_array( 'service.lists.type.code', $fields ) ) : ?>
181
-						<td class="service-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html( $item->getCode() ); ?></a></td>
180
+					<?php if (in_array('service.lists.type.code', $fields)) : ?>
181
+						<td class="service-type-code"><a class="items-field" href="<?= $url; ?>" tabindex="1"><?= $enc->html($item->getCode()); ?></a></td>
182 182
 					<?php endif; ?>
183
-					<?php if( in_array( 'service.lists.type.label', $fields ) ) : ?>
184
-						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getLabel() ); ?></a></td>
183
+					<?php if (in_array('service.lists.type.label', $fields)) : ?>
184
+						<td class="service-type-label"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getLabel()); ?></a></td>
185 185
 					<?php endif; ?>
186
-					<?php if( in_array( 'service.lists.type.position', $fields ) ) : ?>
187
-						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getPosition() ); ?></a></td>
186
+					<?php if (in_array('service.lists.type.position', $fields)) : ?>
187
+						<td class="service-type-position"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getPosition()); ?></a></td>
188 188
 					<?php endif; ?>
189
-					<?php if( in_array( 'service.lists.type.ctime', $fields ) ) : ?>
190
-						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeCreated() ); ?></a></td>
189
+					<?php if (in_array('service.lists.type.ctime', $fields)) : ?>
190
+						<td class="service-type-ctime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeCreated()); ?></a></td>
191 191
 					<?php endif; ?>
192
-					<?php if( in_array( 'service.lists.type.mtime', $fields ) ) : ?>
193
-						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getTimeModified() ); ?></a></td>
192
+					<?php if (in_array('service.lists.type.mtime', $fields)) : ?>
193
+						<td class="service-type-mtime"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getTimeModified()); ?></a></td>
194 194
 					<?php endif; ?>
195
-					<?php if( in_array( 'service.lists.type.editor', $fields ) ) : ?>
196
-						<td class="service-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html( $item->getEditor() ); ?></a></td>
195
+					<?php if (in_array('service.lists.type.editor', $fields)) : ?>
196
+						<td class="service-type-editor"><a class="items-field" href="<?= $url; ?>"><?= $enc->html($item->getEditor()); ?></a></td>
197 197
 					<?php endif; ?>
198 198
 
199 199
 					<td class="actions">
200 200
 						<a class="btn act-copy fa" tabindex="1"
201
-							href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>"
202
-							title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>"
203
-							aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"></a>
204
-						<?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?>
201
+							href="<?= $enc->attr($this->url($copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig)); ?>"
202
+							title="<?= $enc->attr($this->translate('admin', 'Copy this entry')); ?>"
203
+							aria-label="<?= $enc->attr($this->translate('admin', 'Copy')); ?>"></a>
204
+						<?php if (!$this->site()->readonly($item->getSiteId())) : ?>
205 205
 							<a class="btn act-delete fa" tabindex="1"
206
-								href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>"
207
-								title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
208
-								aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"></a>
206
+								href="<?= $enc->attr($this->url($delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig)); ?>"
207
+								title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
208
+								aria-label="<?= $enc->attr($this->translate('admin', 'Delete')); ?>"></a>
209 209
 						<?php endif; ?>
210 210
 					</td>
211 211
 				</tr>
@@ -213,18 +213,18 @@  discard block
 block discarded – undo
213 213
 		</tbody>
214 214
 	</table>
215 215
 
216
-	<?php if( $this->get( 'items', [] ) === [] ) : ?>
217
-		<div class="noitems"><?= $enc->html( sprintf( $this->translate( 'admin', 'No items found' ) ) ); ?></div>
216
+	<?php if ($this->get('items', []) === []) : ?>
217
+		<div class="noitems"><?= $enc->html(sprintf($this->translate('admin', 'No items found'))); ?></div>
218 218
 	<?php endif; ?>
219 219
 </form>
220 220
 
221 221
 <?= $this->partial(
222
-		$this->config( 'admin/jqadm/partial/pagination', 'common/partials/pagination-standard' ),
223
-		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get( 'total' ),
224
-		'page' => $this->session( 'aimeos/admin/jqadm/type/service/lists/page', [] )]
222
+		$this->config('admin/jqadm/partial/pagination', 'common/partials/pagination-standard'),
223
+		['pageParams' => $params, 'pos' => 'bottom', 'total' => $this->get('total'),
224
+		'page' => $this->session('aimeos/admin/jqadm/type/service/lists/page', [])]
225 225
 	);
226 226
 ?>
227 227
 
228 228
 <?php $this->block()->stop(); ?>
229 229
 
230
-<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?>
230
+<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/supplier/item-text-standard.php 2 patches
Spacing   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 ?>
18 18
 <div id="text" class="item-text content-block tab-pane fade" role="tablist" aria-labelledby="text">
19 19
 	<div id="item-text-group" role="tablist" aria-multiselectable="true"
20
-		data-items="<?= $enc->attr( json_encode( $this->get( 'textData', [] ) ) ); ?>"
21
-		data-listtype="<?= key( $this->get( 'textListTypes', [] ) ) ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
20
+		data-items="<?= $enc->attr(json_encode($this->get('textData', []))); ?>"
21
+		data-listtype="<?= key($this->get('textListTypes', [])) ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -28,16 +28,16 @@  discard block
 block discarded – undo
28 28
 				v-bind:data-target="'#item-text-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
29 29
 				v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
31
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
32
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
36 36
 				&nbsp;
37 37
 				<div class="card-tools-right">
38 38
 					<div v-if="!checkSite('supplier.lists.siteid', idx)"
39
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
39
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
40
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
41 41
 						v-on:click.stop="removeItem(idx)">
42 42
 					</div>
43 43
 				</div>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 				v-bind:aria-labelledby="'item-text-group-item-' + idx" role="tabpanel" class="card-block collapse row">
48 48
 
49 49
 				<input type="hidden" v-model="items[idx]['text.id']"
50
-					v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.id' ) ) ); ?>'.replace('idx', idx)" />
50
+					v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.id'))); ?>'.replace('idx', idx)" />
51 51
 
52 52
 				<div class="col-xl-6">
53 53
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 							<textarea is="html-editor" class="form-control item-content" required="required" v-once
57 57
 								v-model="items[idx]['text.content']"
58 58
 								v-bind:value="items[idx]['text.content']"
59
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.content' ) ) ); ?>'.replace('idx', idx)"
59
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.content'))); ?>'.replace('idx', idx)"
60 60
 								v-bind:readonly="checkSite('text.siteid', idx)"
61
-								v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
61
+								v-bind:tabindex="<?= $this->get('tabindex'); ?>"
62 62
 							></textarea>
63 63
 						</div>
64 64
 					</div>
@@ -68,101 +68,101 @@  discard block
 block discarded – undo
68 68
 				<div class="col-xl-6">
69 69
 
70 70
 					<div class="form-group row mandatory">
71
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
71
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
72 72
 						<div class="col-sm-8">
73
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
74
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.status' ) ) ); ?>'.replace('idx', idx)"
73
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
74
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.status'))); ?>'.replace('idx', idx)"
75 75
 								v-bind:readonly="checkSite('text.siteid', idx)"
76 76
 								v-model="items[idx]['text.status']" >
77 77
 								<option value="1" v-bind:selected="entry['text.status'] == 1" >
78
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
78
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
79 79
 								</option>
80 80
 								<option value="0" v-bind:selected="entry['text.status'] == 0" >
81
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
81
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
82 82
 								</option>
83 83
 								<option value="-1" v-bind:selected="entry['text.status'] == -1" >
84
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
84
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
85 85
 								</option>
86 86
 								<option value="-2" v-bind:selected="entry['text.status'] == -2" >
87
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
87
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
88 88
 								</option>
89 89
 							</select>
90 90
 						</div>
91 91
 					</div>
92 92
 
93
-					<?php $languages = $this->get( 'pageLangItems', [] ); ?>
94
-					<?php if( count( $languages ) > 1 ) : ?>
93
+					<?php $languages = $this->get('pageLangItems', []); ?>
94
+					<?php if (count($languages) > 1) : ?>
95 95
 						<div class="form-group row mandatory">
96
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
96
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
97 97
 							<div class="col-sm-8">
98
-								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
98
+								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
99
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
100 100
 									v-bind:readonly="checkSite('text.siteid', idx)"
101 101
 									v-model="items[idx]['text.languageid']" >
102 102
 
103 103
 									<option value="" disable >
104
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
104
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
105 105
 									</option>
106 106
 
107
-									<?php foreach( $languages as $langId => $langItem ) : ?>
108
-										<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
109
-											<?= $enc->html( $langItem->getLabel() ); ?>
107
+									<?php foreach ($languages as $langId => $langItem) : ?>
108
+										<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr($langId) ?>'" >
109
+											<?= $enc->html($langItem->getLabel()); ?>
110 110
 										</option>
111 111
 									<?php endforeach; ?>
112 112
 								</select>
113 113
 							</div>
114 114
 							<div class="col-sm-12 form-text text-muted help-text">
115
-								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
115
+								<?= $enc->html($this->translate('admin', 'Language of the entered text')); ?>
116 116
 							</div>
117 117
 						</div>
118 118
 					<?php else : ?>
119 119
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
-							value="<?= $enc->attr( key( $languages ) ); ?>" />
120
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
121
+							value="<?= $enc->attr(key($languages)); ?>" />
122 122
 					<?php endif; ?>
123 123
 
124
-					<?php $textTypes = $this->get( 'textTypes', [] ); ?>
125
-					<?php if( count( $textTypes ) > 1 ) : ?>
124
+					<?php $textTypes = $this->get('textTypes', []); ?>
125
+					<?php if (count($textTypes) > 1) : ?>
126 126
 						<div class="form-group row mandatory">
127
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
127
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
128 128
 							<div class="col-sm-8">
129
-								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
130
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
129
+								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
130
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
131 131
 									v-bind:readonly="checkSite('text.siteid', idx)"
132 132
 									v-model="items[idx]['text.type']" >
133 133
 
134 134
 									<option value="" disable >
135
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
135
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
136 136
 									</option>
137 137
 
138
-									<?php foreach( (array) $textTypes as $typeItem ) : ?>
139
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
140
-											<?= $enc->html( $typeItem->getLabel() ); ?>
138
+									<?php foreach ((array) $textTypes as $typeItem) : ?>
139
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
140
+											<?= $enc->html($typeItem->getLabel()); ?>
141 141
 										</option>
142 142
 									<?php endforeach; ?>
143 143
 								</select>
144 144
 							</div>
145 145
 							<div class="col-sm-12 form-text text-muted help-text">
146
-								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
146
+								<?= $enc->html($this->translate('admin', 'Types for additional texts like per one lb/kg or per month')); ?>
147 147
 							</div>
148 148
 						</div>
149 149
 					<?php else : ?>
150 150
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
152
-							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
151
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
152
+							value="<?= $enc->attr(key($textTypes)); ?>" />
153 153
 					<?php endif; ?>
154 154
 
155 155
 					<div class="form-group row optional">
156
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
156
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
157 157
 						<div class="col-sm-8">
158
-							<input class="form-control item-label" type="text" tabindex="<?= $this->get( 'tabindex' ); ?>"
159
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.label' ) ) ); ?>'.replace('idx', idx)"
160
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Label' ) ); ?>"
158
+							<input class="form-control item-label" type="text" tabindex="<?= $this->get('tabindex'); ?>"
159
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.label'))); ?>'.replace('idx', idx)"
160
+								placeholder="<?= $enc->attr($this->translate('admin', 'Label')); ?>"
161 161
 								v-bind:readonly="checkSite('text.siteid', idx)"
162 162
 								v-model="items[idx]['text.label']" />
163 163
 						</div>
164 164
 						<div class="col-sm-12 form-text text-muted help-text">
165
-							<?= $enc->html( $this->translate( 'admin', 'Description of the text content if it\'s in a foreign language' ) ); ?>
165
+							<?= $enc->html($this->translate('admin', 'Description of the text content if it\'s in a foreign language')); ?>
166 166
 						</div>
167 167
 					</div>
168 168
 
@@ -171,70 +171,70 @@  discard block
 block discarded – undo
171 171
 
172 172
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
173 173
 					<div class="card-tools-left">
174
-						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
175
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
174
+						<div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
175
+							title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>">
176 176
 						</div>
177 177
 					</div>
178
-					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
178
+					<span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span>
179 179
 				</div>
180 180
 
181 181
 				<div v-show="advanced[idx]" class="col-xl-6 content-block secondary">
182 182
 
183 183
 					<input type="hidden" v-model="items[idx]['supplier.lists.type']"
184
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.type' ) ) ); ?>'.replace( 'idx', idx )" />
184
+						v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'supplier.lists.type'))); ?>'.replace( 'idx', idx )" />
185 185
 
186
-					<?php $listTypes = $this->get( 'textListTypes', [] ); ?>
187
-					<?php if( count( $listTypes ) > 1 ) : ?>
186
+					<?php $listTypes = $this->get('textListTypes', []); ?>
187
+					<?php if (count($listTypes) > 1) : ?>
188 188
 						<div class="form-group row mandatory">
189
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label>
189
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label>
190 190
 							<div class="col-sm-8">
191
-								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
192
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.type' ) ) ); ?>'.replace('idx', idx)"
191
+								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
192
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'supplier.lists.type'))); ?>'.replace('idx', idx)"
193 193
 									v-bind:readonly="checkSite('supplier.lists.siteid', idx)"
194 194
 									v-model="items[idx]['supplier.lists.type']" >
195 195
 
196
-									<?php foreach( $this->get( 'textListTypes', [] ) as $typeItem ) : ?>
197
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['supplier.lists.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
198
-											<?= $enc->html( $typeItem->getLabel() ); ?>
196
+									<?php foreach ($this->get('textListTypes', []) as $typeItem) : ?>
197
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['supplier.lists.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
198
+											<?= $enc->html($typeItem->getLabel()); ?>
199 199
 										</option>
200 200
 									<?php endforeach; ?>
201 201
 								</select>
202 202
 							</div>
203 203
 							<div class="col-sm-12 form-text text-muted help-text">
204
-								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
204
+								<?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?>
205 205
 							</div>
206 206
 						</div>
207 207
 					<?php else : ?>
208 208
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.type' ) ) ); ?>'.replace('idx', idx)"
210
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
209
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'supplier.lists.type'))); ?>'.replace('idx', idx)"
210
+							value="<?= $enc->attr(key($listTypes)); ?>"
211 211
 							v-model="items[idx]['supplier.lists.type']" />
212 212
 					<?php endif; ?>
213 213
 
214 214
 					<div class="form-group row optional">
215
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
215
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
216 216
 						<div class="col-sm-8">
217
-							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
218
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.datestart' ) ) ); ?>'.replace('idx', idx)"
219
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
217
+							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
218
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'supplier.lists.datestart'))); ?>'.replace('idx', idx)"
219
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
220 220
 								v-bind:readonly="checkSite('supplier.lists.siteid', idx)"
221 221
 								v-model="items[idx]['supplier.lists.datestart']" />
222 222
 						</div>
223 223
 						<div class="col-sm-12 form-text text-muted help-text">
224
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?>
224
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?>
225 225
 						</div>
226 226
 					</div>
227 227
 					<div class="form-group row optional">
228
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
228
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
229 229
 						<div class="col-sm-8">
230
-							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
231
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.dateend' ) ) ); ?>'.replace('idx', idx)"
232
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
230
+							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
231
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'supplier.lists.dateend'))); ?>'.replace('idx', idx)"
232
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
233 233
 								v-bind:readonly="checkSite('supplier.lists.siteid', idx)"
234 234
 								v-model="items[idx]['supplier.lists.dateend']" />
235 235
 						</div>
236 236
 						<div class="col-sm-12 form-text text-muted help-text">
237
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?>
237
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?>
238 238
 						</div>
239 239
 					</div>
240 240
 				</div>
@@ -244,17 +244,17 @@  discard block
 block discarded – undo
244 244
 						<thead>
245 245
 							<tr>
246 246
 								<th>
247
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
247
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
248 248
 									<div class="form-text text-muted help-text">
249
-										<?= $enc->html( $this->translate( 'admin', 'Configuration options, will be available as key/value pairs in the list item' ) ); ?>
249
+										<?= $enc->html($this->translate('admin', 'Configuration options, will be available as key/value pairs in the list item')); ?>
250 250
 									</div>
251 251
 								</th>
252 252
 								<th>
253
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
253
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
254 254
 								</th>
255 255
 								<th class="actions">
256
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
257
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
256
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
257
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
258 258
 										v-bind:readonly="checkSite('supplier.lists.siteid', idx)"
259 259
 										v-on:click="addConfig(idx)" >
260 260
 									</div>
@@ -267,21 +267,21 @@  discard block
 block discarded – undo
267 267
 								<td>
268 268
 									<input is="auto-complete"
269 269
 										v-model="items[idx]['config']['key'][pos]"
270
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'key', '' ) ) ); ?>'.replace('idx', idx)"
270
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'key', ''))); ?>'.replace('idx', idx)"
271 271
 										v-bind:readonly="checkSite('supplier.lists.siteid', idx)"
272
-										v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
272
+										v-bind:tabindex="<?= $this->get('tabindex'); ?>"
273 273
 										v-bind:keys="[]" />
274 274
 								</td>
275 275
 								<td>
276
-									<input type="text" class="form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
277
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'val', '' ) ) ); ?>'.replace('idx', idx)"
276
+									<input type="text" class="form-control" tabindex="<?= $this->get('tabindex'); ?>"
277
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'val', ''))); ?>'.replace('idx', idx)"
278 278
 										v-bind:readonly="checkSite('supplier.lists.siteid', idx)"
279 279
 										v-model="items[idx]['config']['val'][pos]" />
280 280
 								</td>
281 281
 								<td class="actions">
282 282
 									<div v-if="!checkSite('supplier.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
283
-										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
284
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
283
+										class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
284
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
285 285
 									</div>
286 286
 								</td>
287 287
 							</tr>
@@ -290,14 +290,14 @@  discard block
 block discarded – undo
290 290
 					</table>
291 291
 				</div>
292 292
 
293
-				<?= $this->get( 'textBody' ); ?>
293
+				<?= $this->get('textBody'); ?>
294 294
 
295 295
 			</div>
296 296
 		</div>
297 297
 
298 298
 		<div class="card-tools-more">
299
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
300
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
299
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
300
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
301 301
 				v-on:click="addItem('supplier.lists.')" >
302 302
 			</div>
303 303
 		</div>
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,9 +115,12 @@  discard block
 block discarded – undo
115 115
 								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
116 116
 							</div>
117 117
 						</div>
118
-					<?php else : ?>
118
+					<?php else {
119
+	: ?>
119 120
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
122
+}
123
+?>'.replace('idx', idx)"
121 124
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
122 125
 					<?php endif; ?>
123 126
 
@@ -146,9 +149,12 @@  discard block
 block discarded – undo
146 149
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
147 150
 							</div>
148 151
 						</div>
149
-					<?php else : ?>
152
+					<?php else {
153
+	: ?>
150 154
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
155
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
156
+}
157
+?>'.replace('idx', idx)"
152 158
 							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
153 159
 					<?php endif; ?>
154 160
 
@@ -204,9 +210,12 @@  discard block
 block discarded – undo
204 210
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
205 211
 							</div>
206 212
 						</div>
207
-					<?php else : ?>
213
+					<?php else {
214
+	: ?>
208 215
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.type' ) ) ); ?>'.replace('idx', idx)"
216
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'supplier.lists.type' ) ) );
217
+}
218
+?>'.replace('idx', idx)"
210 219
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
211 220
 							v-model="items[idx]['supplier.lists.type']" />
212 221
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/catalog/item-text-standard.php 2 patches
Spacing   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
 ?>
18 18
 <div id="text" class="item-text content-block tab-pane fade" role="tablist" aria-labelledby="text">
19 19
 	<div id="item-text-group" role="tablist" aria-multiselectable="true"
20
-		data-items="<?= $enc->attr( json_encode( $this->get( 'textData', [] ) ) ); ?>"
21
-		data-listtype="<?= key( $this->get( 'textListTypes', [] ) ) ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
20
+		data-items="<?= $enc->attr(json_encode($this->get('textData', []))); ?>"
21
+		data-listtype="<?= key($this->get('textListTypes', [])) ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<div v-for="(entry, idx) in items" class="group-item card">
@@ -28,16 +28,16 @@  discard block
 block discarded – undo
28 28
 				v-bind:data-target="'#item-text-group-data-' + idx" data-toggle="collapse" role="tab" class="card-header header"
29 29
 				v-bind:aria-controls="'item-text-group-data-' + idx" aria-expanded="false">
30 30
 				<div class="card-tools-left">
31
-					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
32
-						title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide this entry') ); ?>">
31
+					<div class="btn btn-card-header act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
32
+						title="<?= $enc->attr($this->translate('admin', 'Show/hide this entry')); ?>">
33 33
 					</div>
34 34
 				</div>
35 35
 				<span class="item-label header-label" v-html="getLabel(idx)"></span>
36 36
 				&nbsp;
37 37
 				<div class="card-tools-right">
38 38
 					<div v-if="!checkSite('catalog.lists.siteid', idx)"
39
-						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
40
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
39
+						class="btn btn-card-header act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
40
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
41 41
 						v-on:click.stop="removeItem(idx)">
42 42
 					</div>
43 43
 				</div>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 				v-bind:aria-labelledby="'item-text-group-item-' + idx" role="tabpanel" class="card-block collapse row">
48 48
 
49 49
 				<input type="hidden" v-model="items[idx]['text.id']"
50
-					v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.id' ) ) ); ?>'.replace('idx', idx)" />
50
+					v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.id'))); ?>'.replace('idx', idx)" />
51 51
 
52 52
 				<div class="col-xl-6">
53 53
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 							<textarea is="html-editor" class="form-control item-content" required="required" v-once
57 57
 								v-model="items[idx]['text.content']"
58 58
 								v-bind:value="items[idx]['text.content']"
59
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.content' ) ) ); ?>'.replace('idx', idx)"
59
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.content'))); ?>'.replace('idx', idx)"
60 60
 								v-bind:readonly="checkSite('text.siteid', idx)"
61
-								v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
61
+								v-bind:tabindex="<?= $this->get('tabindex'); ?>"
62 62
 							></textarea>
63 63
 						</div>
64 64
 					</div>
@@ -68,101 +68,101 @@  discard block
 block discarded – undo
68 68
 				<div class="col-xl-6">
69 69
 
70 70
 					<div class="form-group row mandatory">
71
-						<label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label>
71
+						<label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label>
72 72
 						<div class="col-sm-8">
73
-							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
74
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.status' ) ) ); ?>'.replace('idx', idx)"
73
+							<select class="form-control custom-select item-status" required="required" tabindex="<?= $this->get('tabindex'); ?>"
74
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.status'))); ?>'.replace('idx', idx)"
75 75
 								v-bind:readonly="checkSite('text.siteid', idx)"
76 76
 								v-model="items[idx]['text.status']" >
77 77
 								<option value="1" v-bind:selected="entry['text.status'] == 1" >
78
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?>
78
+									<?= $enc->html($this->translate('mshop/code', 'status:1')); ?>
79 79
 								</option>
80 80
 								<option value="0" v-bind:selected="entry['text.status'] == 0" >
81
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?>
81
+									<?= $enc->html($this->translate('mshop/code', 'status:0')); ?>
82 82
 								</option>
83 83
 								<option value="-1" v-bind:selected="entry['text.status'] == -1" >
84
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?>
84
+									<?= $enc->html($this->translate('mshop/code', 'status:-1')); ?>
85 85
 								</option>
86 86
 								<option value="-2" v-bind:selected="entry['text.status'] == -2" >
87
-									<?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?>
87
+									<?= $enc->html($this->translate('mshop/code', 'status:-2')); ?>
88 88
 								</option>
89 89
 							</select>
90 90
 						</div>
91 91
 					</div>
92 92
 
93
-					<?php $languages = $this->get( 'pageLangItems', [] ); ?>
94
-					<?php if( count( $languages ) > 1 ) : ?>
93
+					<?php $languages = $this->get('pageLangItems', []); ?>
94
+					<?php if (count($languages) > 1) : ?>
95 95
 						<div class="form-group row mandatory">
96
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Language' ) ); ?></label>
96
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Language')); ?></label>
97 97
 							<div class="col-sm-8">
98
-								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
99
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
98
+								<select class="form-control custom-select item-languageid" required="required" tabindex="<?= $this->get('tabindex'); ?>"
99
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
100 100
 									v-bind:readonly="checkSite('text.siteid', idx)"
101 101
 									v-model="items[idx]['text.languageid']" >
102 102
 
103 103
 									<option value="" disable >
104
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
104
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
105 105
 									</option>
106 106
 
107
-									<?php foreach( $languages as $langId => $langItem ) : ?>
108
-										<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
109
-											<?= $enc->html( $langItem->getLabel() ); ?>
107
+									<?php foreach ($languages as $langId => $langItem) : ?>
108
+										<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['text.languageid'] == '<?= $enc->attr($langId) ?>'" >
109
+											<?= $enc->html($langItem->getLabel()); ?>
110 110
 										</option>
111 111
 									<?php endforeach; ?>
112 112
 								</select>
113 113
 							</div>
114 114
 							<div class="col-sm-12 form-text text-muted help-text">
115
-								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
115
+								<?= $enc->html($this->translate('admin', 'Language of the entered text')); ?>
116 116
 							</div>
117 117
 						</div>
118 118
 					<?php else : ?>
119 119
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
-							value="<?= $enc->attr( key( $languages ) ); ?>" />
120
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.languageid'))); ?>'.replace('idx', idx)"
121
+							value="<?= $enc->attr(key($languages)); ?>" />
122 122
 					<?php endif; ?>
123 123
 
124
-					<?php $textTypes = $this->get( 'textTypes', [] ); ?>
125
-					<?php if( count( $textTypes ) > 1 ) : ?>
124
+					<?php $textTypes = $this->get('textTypes', []); ?>
125
+					<?php if (count($textTypes) > 1) : ?>
126 126
 						<div class="form-group row mandatory">
127
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Type' ) ); ?></label>
127
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Type')); ?></label>
128 128
 							<div class="col-sm-8">
129
-								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
130
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
129
+								<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
130
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
131 131
 									v-bind:readonly="checkSite('text.siteid', idx)"
132 132
 									v-model="items[idx]['text.type']" >
133 133
 
134 134
 									<option value="" disable >
135
-										<?= $enc->attr( $this->translate( 'admin', 'Please select' ) ); ?>
135
+										<?= $enc->attr($this->translate('admin', 'Please select')); ?>
136 136
 									</option>
137 137
 
138
-									<?php foreach( (array) $textTypes as $typeItem ) : ?>
139
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
140
-											<?= $enc->html( $typeItem->getLabel() ); ?>
138
+									<?php foreach ((array) $textTypes as $typeItem) : ?>
139
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['text.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
140
+											<?= $enc->html($typeItem->getLabel()); ?>
141 141
 										</option>
142 142
 									<?php endforeach; ?>
143 143
 								</select>
144 144
 							</div>
145 145
 							<div class="col-sm-12 form-text text-muted help-text">
146
-								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
146
+								<?= $enc->html($this->translate('admin', 'Types for additional texts like per one lb/kg or per month')); ?>
147 147
 							</div>
148 148
 						</div>
149 149
 					<?php else : ?>
150 150
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
152
-							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
151
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.type'))); ?>'.replace('idx', idx)"
152
+							value="<?= $enc->attr(key($textTypes)); ?>" />
153 153
 					<?php endif; ?>
154 154
 
155 155
 					<div class="form-group row optional">
156
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label>
156
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label>
157 157
 						<div class="col-sm-8">
158
-							<input class="form-control item-label" type="text" tabindex="<?= $this->get( 'tabindex' ); ?>"
159
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.label' ) ) ); ?>'.replace('idx', idx)"
160
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'Label' ) ); ?>"
158
+							<input class="form-control item-label" type="text" tabindex="<?= $this->get('tabindex'); ?>"
159
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'text.label'))); ?>'.replace('idx', idx)"
160
+								placeholder="<?= $enc->attr($this->translate('admin', 'Label')); ?>"
161 161
 								v-bind:readonly="checkSite('text.siteid', idx)"
162 162
 								v-model="items[idx]['text.label']" />
163 163
 						</div>
164 164
 						<div class="col-sm-12 form-text text-muted help-text">
165
-							<?= $enc->html( $this->translate( 'admin', 'Description of the text content if it\'s in a foreign language' ) ); ?>
165
+							<?= $enc->html($this->translate('admin', 'Description of the text content if it\'s in a foreign language')); ?>
166 166
 						</div>
167 167
 					</div>
168 168
 
@@ -171,70 +171,70 @@  discard block
 block discarded – undo
171 171
 
172 172
 				<div v-on:click="toggle(idx)" class="col-xl-12 advanced" v-bind:class="{ 'collapsed': !advanced[idx] }">
173 173
 					<div class="card-tools-left">
174
-						<div class="btn act-show fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
175
-							title="<?= $enc->attr( $this->translate( 'admin', 'Show/hide advanced data') ); ?>">
174
+						<div class="btn act-show fa" tabindex="<?= $this->get('tabindex'); ?>"
175
+							title="<?= $enc->attr($this->translate('admin', 'Show/hide advanced data')); ?>">
176 176
 						</div>
177 177
 					</div>
178
-					<span class="header-label"><?= $enc->html( $this->translate( 'admin', 'Advanced' ) ); ?></span>
178
+					<span class="header-label"><?= $enc->html($this->translate('admin', 'Advanced')); ?></span>
179 179
 				</div>
180 180
 
181 181
 				<div v-show="advanced[idx]" class="col-xl-6 content-block secondary">
182 182
 
183 183
 					<input type="hidden" v-model="items[idx]['catalog.lists.type']"
184
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.type' ) ) ); ?>'.replace( 'idx', idx )" />
184
+						v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'catalog.lists.type'))); ?>'.replace( 'idx', idx )" />
185 185
 
186
-					<?php $listTypes = $this->get( 'textListTypes', [] ); ?>
187
-					<?php if( count( $listTypes ) > 1 ) : ?>
186
+					<?php $listTypes = $this->get('textListTypes', []); ?>
187
+					<?php if (count($listTypes) > 1) : ?>
188 188
 						<div class="form-group row mandatory">
189
-							<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'List type' ) ); ?></label>
189
+							<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'List type')); ?></label>
190 190
 							<div class="col-sm-8">
191
-								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
192
-									v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.type' ) ) ); ?>'.replace('idx', idx)"
191
+								<select class="form-control custom-select listitem-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
192
+									v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'catalog.lists.type'))); ?>'.replace('idx', idx)"
193 193
 									v-bind:readonly="checkSite('catalog.lists.siteid', idx)"
194 194
 									v-model="items[idx]['catalog.lists.type']" >
195 195
 
196
-									<?php foreach( $this->get( 'textListTypes', [] ) as $typeItem ) : ?>
197
-										<option value="<?= $enc->attr( $typeItem->getCode() ); ?>" v-bind:selected="entry['catalog.lists.type'] == '<?= $enc->attr( $typeItem->getCode() ) ?>'" >
198
-											<?= $enc->html( $typeItem->getLabel() ); ?>
196
+									<?php foreach ($this->get('textListTypes', []) as $typeItem) : ?>
197
+										<option value="<?= $enc->attr($typeItem->getCode()); ?>" v-bind:selected="entry['catalog.lists.type'] == '<?= $enc->attr($typeItem->getCode()) ?>'" >
198
+											<?= $enc->html($typeItem->getLabel()); ?>
199 199
 										</option>
200 200
 									<?php endforeach; ?>
201 201
 								</select>
202 202
 							</div>
203 203
 							<div class="col-sm-12 form-text text-muted help-text">
204
-								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
204
+								<?= $enc->html($this->translate('admin', 'Second level type for grouping items')); ?>
205 205
 							</div>
206 206
 						</div>
207 207
 					<?php else : ?>
208 208
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.type' ) ) ); ?>'.replace('idx', idx)"
210
-							value="<?= $enc->attr( key( $listTypes ) ); ?>"
209
+							v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'catalog.lists.type'))); ?>'.replace('idx', idx)"
210
+							value="<?= $enc->attr(key($listTypes)); ?>"
211 211
 							v-model="items[idx]['catalog.lists.type']" />
212 212
 					<?php endif; ?>
213 213
 
214 214
 					<div class="form-group row optional">
215
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Start date' ) ); ?></label>
215
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Start date')); ?></label>
216 216
 						<div class="col-sm-8">
217
-							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
218
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.datestart' ) ) ); ?>'.replace('idx', idx)"
219
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
217
+							<input class="form-control listitem-datestart" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
218
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'catalog.lists.datestart'))); ?>'.replace('idx', idx)"
219
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
220 220
 								v-bind:readonly="checkSite('catalog.lists.siteid', idx)"
221 221
 								v-model="items[idx]['catalog.lists.datestart']" />
222 222
 						</div>
223 223
 						<div class="col-sm-12 form-text text-muted help-text">
224
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site after that date and time' ) ); ?>
224
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site after that date and time')); ?>
225 225
 						</div>
226 226
 					</div>
227 227
 					<div class="form-group row optional">
228
-						<label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'End date' ) ); ?></label>
228
+						<label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'End date')); ?></label>
229 229
 						<div class="col-sm-8">
230
-							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get( 'tabindex' ); ?>"
231
-								v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.dateend' ) ) ); ?>'.replace('idx', idx)"
232
-								placeholder="<?= $enc->attr( $this->translate( 'admin', 'YYYY-MM-DD hh:mm:ss (optional)' ) ); ?>"
230
+							<input class="form-control listitem-dateend" type="datetime-local" tabindex="<?= $this->get('tabindex'); ?>"
231
+								v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'catalog.lists.dateend'))); ?>'.replace('idx', idx)"
232
+								placeholder="<?= $enc->attr($this->translate('admin', 'YYYY-MM-DD hh:mm:ss (optional)')); ?>"
233 233
 								v-bind:readonly="checkSite('catalog.lists.siteid', idx)"
234 234
 								v-model="items[idx]['catalog.lists.dateend']" />
235 235
 						</div>
236 236
 						<div class="col-sm-12 form-text text-muted help-text">
237
-							<?= $enc->html( $this->translate( 'admin', 'The item is only shown on the web site until that date and time' ) ); ?>
237
+							<?= $enc->html($this->translate('admin', 'The item is only shown on the web site until that date and time')); ?>
238 238
 						</div>
239 239
 					</div>
240 240
 				</div>
@@ -244,17 +244,17 @@  discard block
 block discarded – undo
244 244
 						<thead>
245 245
 							<tr>
246 246
 								<th>
247
-									<span class="help"><?= $enc->html( $this->translate( 'admin', 'Option' ) ); ?></span>
247
+									<span class="help"><?= $enc->html($this->translate('admin', 'Option')); ?></span>
248 248
 									<div class="form-text text-muted help-text">
249
-										<?= $enc->html( $this->translate( 'admin', 'Configuration options, will be available as key/value pairs in the list item' ) ); ?>
249
+										<?= $enc->html($this->translate('admin', 'Configuration options, will be available as key/value pairs in the list item')); ?>
250 250
 									</div>
251 251
 								</th>
252 252
 								<th>
253
-									<?= $enc->html( $this->translate( 'admin', 'Value' ) ); ?>
253
+									<?= $enc->html($this->translate('admin', 'Value')); ?>
254 254
 								</th>
255 255
 								<th class="actions">
256
-									<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
257
-										title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
256
+									<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
257
+										title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
258 258
 										v-bind:readonly="checkSite('catalog.lists.siteid', idx)"
259 259
 										v-on:click="addConfig(idx)" >
260 260
 									</div>
@@ -267,21 +267,21 @@  discard block
 block discarded – undo
267 267
 								<td>
268 268
 									<input is="auto-complete"
269 269
 										v-model="items[idx]['config']['key'][pos]"
270
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'key', '' ) ) ); ?>'.replace('idx', idx)"
270
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'key', ''))); ?>'.replace('idx', idx)"
271 271
 										v-bind:readonly="checkSite('catalog.lists.siteid', idx)"
272
-										v-bind:tabindex="<?= $this->get( 'tabindex' ); ?>"
272
+										v-bind:tabindex="<?= $this->get('tabindex'); ?>"
273 273
 										v-bind:keys="[]" />
274 274
 								</td>
275 275
 								<td>
276
-									<input type="text" class="form-control" tabindex="<?= $this->get( 'tabindex' ); ?>"
277
-										v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'config', 'val', '' ) ) ); ?>'.replace('idx', idx)"
276
+									<input type="text" class="form-control" tabindex="<?= $this->get('tabindex'); ?>"
277
+										v-bind:name="'<?= $enc->attr($this->formparam(array('text', 'idx', 'config', 'val', ''))); ?>'.replace('idx', idx)"
278 278
 										v-bind:readonly="checkSite('catalog.lists.siteid', idx)"
279 279
 										v-model="items[idx]['config']['val'][pos]" />
280 280
 								</td>
281 281
 								<td class="actions">
282 282
 									<div v-if="!checkSite('catalog.lists.siteid', idx)" v-on:click="removeConfig(idx, pos)"
283
-										class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
284
-										title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>">
283
+										class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
284
+										title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>">
285 285
 									</div>
286 286
 								</td>
287 287
 							</tr>
@@ -290,14 +290,14 @@  discard block
 block discarded – undo
290 290
 					</table>
291 291
 				</div>
292 292
 
293
-				<?= $this->get( 'textBody' ); ?>
293
+				<?= $this->get('textBody'); ?>
294 294
 
295 295
 			</div>
296 296
 		</div>
297 297
 
298 298
 		<div class="card-tools-more">
299
-			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
300
-				title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
299
+			<div class="btn btn-primary btn-card-more act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
300
+				title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
301 301
 				v-on:click="addItem('catalog.lists.')" >
302 302
 			</div>
303 303
 		</div>
Please login to merge, or discard this patch.
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,9 +115,12 @@  discard block
 block discarded – undo
115 115
 								<?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?>
116 116
 							</div>
117 117
 						</div>
118
-					<?php else : ?>
118
+					<?php else {
119
+	: ?>
119 120
 						<input class="text-langid" type="hidden"
120
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)"
121
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) );
122
+}
123
+?>'.replace('idx', idx)"
121 124
 							value="<?= $enc->attr( key( $languages ) ); ?>" />
122 125
 					<?php endif; ?>
123 126
 
@@ -146,9 +149,12 @@  discard block
 block discarded – undo
146 149
 								<?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?>
147 150
 							</div>
148 151
 						</div>
149
-					<?php else : ?>
152
+					<?php else {
153
+	: ?>
150 154
 						<input class="item-type" type="hidden"
151
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)"
155
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) );
156
+}
157
+?>'.replace('idx', idx)"
152 158
 							value="<?= $enc->attr( key( $textTypes ) ); ?>" />
153 159
 					<?php endif; ?>
154 160
 
@@ -204,9 +210,12 @@  discard block
 block discarded – undo
204 210
 								<?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?>
205 211
 							</div>
206 212
 						</div>
207
-					<?php else : ?>
213
+					<?php else {
214
+	: ?>
208 215
 						<input class="listitem-type" type="hidden"
209
-							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.type' ) ) ); ?>'.replace('idx', idx)"
216
+							v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'catalog.lists.type' ) ) );
217
+}
218
+?>'.replace('idx', idx)"
210 219
 							value="<?= $enc->attr( key( $listTypes ) ); ?>"
211 220
 							v-model="items[idx]['catalog.lists.type']" />
212 221
 					<?php endif; ?>
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-property-standard.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
 <div id="property" class="item-property tab-pane fade" role="tabpanel" aria-labelledby="property">
19 19
 
20 20
 	<table class="property-list table table-default"
21
-		data-items="<?= $enc->attr( json_encode( $this->get( 'propertyData', [] ) ) ); ?>"
22
-		data-keys="<?= $enc->attr( json_encode( $keys ) ) ?>"
21
+		data-items="<?= $enc->attr(json_encode($this->get('propertyData', []))); ?>"
22
+		data-keys="<?= $enc->attr(json_encode($keys)) ?>"
23 23
 		data-siteid="<?= $this->site()->siteid() ?>" >
24 24
 
25 25
 		<thead>
26 26
 			<tr>
27 27
 				<th colspan="3">
28
-					<span class="help"><?= $enc->html( $this->translate( 'admin', 'Properties' ) ); ?></span>
28
+					<span class="help"><?= $enc->html($this->translate('admin', 'Properties')); ?></span>
29 29
 					<div class="form-text text-muted help-text">
30
-						<?= $enc->html( $this->translate( 'admin', 'Customer properties that are not shared with other customers' ) ); ?>
30
+						<?= $enc->html($this->translate('admin', 'Customer properties that are not shared with other customers')); ?>
31 31
 					</div>
32 32
 				</th>
33 33
 				<th class="actions">
34
-					<div class="btn act-add fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
35
-						title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>"
34
+					<div class="btn act-add fa" tabindex="<?= $this->get('tabindex'); ?>"
35
+						title="<?= $enc->attr($this->translate('admin', 'Insert new entry (Ctrl+I)')); ?>"
36 36
 						v-on:click="addItem('customer.property.')">
37 37
 					</div>
38 38
 				</th>
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
 			<tr v-for="(entry, idx) in items" v-bind:key="idx" v-bind:class="checkSite('customer.property.siteid', idx) ? 'readonly' : ''">
45 45
 				<td class="property-type">
46 46
 					<input class="item-id" type="hidden" v-bind:value="entry['customer.property.id']"
47
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.id' ) ) ); ?>'.replace('idx', idx)" />
47
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.id'))); ?>'.replace('idx', idx)" />
48 48
 
49
-					<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
50
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.type' ) ) ); ?>'.replace('idx', idx)"
49
+					<select class="form-control custom-select item-type" required="required" tabindex="<?= $this->get('tabindex'); ?>"
50
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.type'))); ?>'.replace('idx', idx)"
51 51
 						v-bind:readonly="checkSite('customer.property.siteid', idx)"
52 52
 						v-model="items[idx]['customer.property.type']" >
53 53
 
54
-						<?php foreach( $this->get( 'propertyTypes', [] ) as $id => $item ) : ?>
55
-							<option value="<?= $enc->attr( $id ); ?>" v-bind:selected="entry['customer.property.type'] == '<?= $enc->attr( $id ) ?>'" >
56
-								<?= $enc->html( $item->getLabel() ); ?>
54
+						<?php foreach ($this->get('propertyTypes', []) as $id => $item) : ?>
55
+							<option value="<?= $enc->attr($id); ?>" v-bind:selected="entry['customer.property.type'] == '<?= $enc->attr($id) ?>'" >
56
+								<?= $enc->html($item->getLabel()); ?>
57 57
 							</option>
58 58
 						<?php endforeach; ?>
59 59
 
@@ -61,34 +61,34 @@  discard block
 block discarded – undo
61 61
 				</td>
62 62
 
63 63
 				<td class="property-language">
64
-					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get( 'tabindex' ); ?>"
65
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.languageid' ) ) ); ?>'.replace('idx', idx)"
64
+					<select class="form-control custom-select item-languageid" tabindex="<?= $this->get('tabindex'); ?>"
65
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.languageid'))); ?>'.replace('idx', idx)"
66 66
 						v-bind:readonly="checkSite('customer.property.siteid', idx)"
67 67
 						v-model="items[idx]['customer.property.languageid']" >
68 68
 
69 69
 						<option v-bind:value="null">
70
-							<?= $enc->html( $this->translate( 'admin', 'All' ) ); ?>
70
+							<?= $enc->html($this->translate('admin', 'All')); ?>
71 71
 						</option>
72 72
 
73
-						<?php foreach( $this->get( 'pageLangItems', [] ) as $langId => $langItem ) : ?>
74
-							<option value="<?= $enc->attr( $langId ); ?>" v-bind:selected="entry['customer.property.languageid'] == '<?= $enc->attr( $langId ) ?>'" >
75
-								<?= $enc->html( $langItem->getLabel() ); ?>
73
+						<?php foreach ($this->get('pageLangItems', []) as $langId => $langItem) : ?>
74
+							<option value="<?= $enc->attr($langId); ?>" v-bind:selected="entry['customer.property.languageid'] == '<?= $enc->attr($langId) ?>'" >
75
+								<?= $enc->html($langItem->getLabel()); ?>
76 76
 							</option>
77 77
 						<?php endforeach; ?>
78 78
 					</select>
79 79
 				</td>
80 80
 
81 81
 				<td class="property-value">
82
-					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get( 'tabindex' ); ?>"
83
-						v-bind:name="'<?= $enc->attr( $this->formparam( array( 'property', 'idx', 'customer.property.value' ) ) ); ?>'.replace('idx', idx)"
84
-						placeholder="<?= $enc->attr( $this->translate( 'admin', 'Property value (required)' ) ); ?>"
82
+					<input class="form-control item-value" type="text" required="required" tabindex="<?= $this->get('tabindex'); ?>"
83
+						v-bind:name="'<?= $enc->attr($this->formparam(array('property', 'idx', 'customer.property.value'))); ?>'.replace('idx', idx)"
84
+						placeholder="<?= $enc->attr($this->translate('admin', 'Property value (required)')); ?>"
85 85
 						v-bind:readonly="checkSite('customer.property.siteid', idx)"
86 86
 						v-model="items[idx]['customer.property.value']" >
87 87
 				</td>
88 88
 
89 89
 				<td class="actions">
90
-					<div v-if="!checkSite('customer.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get( 'tabindex' ); ?>"
91
-						title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>"
90
+					<div v-if="!checkSite('customer.property.siteid', idx)" class="btn act-delete fa" tabindex="<?= $this->get('tabindex'); ?>"
91
+						title="<?= $enc->attr($this->translate('admin', 'Delete this entry')); ?>"
92 92
 						v-on:click.stop="removeItem(idx)">
93 93
 					</div>
94 94
 				</td>
@@ -97,5 +97,5 @@  discard block
 block discarded – undo
97 97
 		</tbody>
98 98
 	</table>
99 99
 
100
-	<?= $this->get( 'propertyBody' ); ?>
100
+	<?= $this->get('propertyBody'); ?>
101 101
 </div>
Please login to merge, or discard this patch.