@@ -124,9 +124,12 @@ discard block |
||
124 | 124 | <?= $enc->html( $this->translate( 'admin', 'Types for additional images like icons' ) ); ?> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | - <?php else : ?> |
|
127 | + <?php else { |
|
128 | + : ?> |
|
128 | 129 | <input class="item-type" type="hidden" |
129 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) ); ?>'.replace( 'idx', idx )" |
|
130 | + v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'media.type' ) ) ); |
|
131 | +} |
|
132 | +?>'.replace( 'idx', idx )" |
|
130 | 133 | value="<?= $enc->attr( key( $mediaTypes ) ); ?>" /> |
131 | 134 | <?php endif; ?> |
132 | 135 | |
@@ -204,9 +207,12 @@ discard block |
||
204 | 207 | <?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?> |
205 | 208 | </div> |
206 | 209 | </div> |
207 | - <?php else : ?> |
|
210 | + <?php else { |
|
211 | + : ?> |
|
208 | 212 | <input class="listitem-type" type="hidden" |
209 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace( 'idx', idx )" |
|
213 | + v-bind:name="'<?= $enc->attr( $this->formparam( array( 'media', 'idx', 'attribute.lists.type' ) ) ); |
|
214 | +} |
|
215 | +?>'.replace( 'idx', idx )" |
|
210 | 216 | value="<?= $enc->attr( key( $listTypes ) ); ?>" |
211 | 217 | v-model="items[idx]['attribute.lists.type']" /> |
212 | 218 | <?php endif; ?> |
@@ -124,9 +124,12 @@ discard block |
||
124 | 124 | <?= $enc->html( $this->translate( 'admin', 'Language of the entered text' ) ); ?> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | - <?php else : ?> |
|
127 | + <?php else { |
|
128 | + : ?> |
|
128 | 129 | <input class="text-langid" type="hidden" |
129 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); ?>'.replace('idx', idx)" |
|
130 | + v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.languageid' ) ) ); |
|
131 | +} |
|
132 | +?>'.replace('idx', idx)" |
|
130 | 133 | value="<?= $enc->attr( key( $languages ) ); ?>" /> |
131 | 134 | <?php endif; ?> |
132 | 135 | |
@@ -155,9 +158,12 @@ discard block |
||
155 | 158 | <?= $enc->html( $this->translate( 'admin', 'Types for additional texts like per one lb/kg or per month' ) ); ?> |
156 | 159 | </div> |
157 | 160 | </div> |
158 | - <?php else : ?> |
|
161 | + <?php else { |
|
162 | + : ?> |
|
159 | 163 | <input class="item-type" type="hidden" |
160 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); ?>'.replace('idx', idx)" |
|
164 | + v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'text.type' ) ) ); |
|
165 | +} |
|
166 | +?>'.replace('idx', idx)" |
|
161 | 167 | value="<?= $enc->attr( key( $textTypes ) ); ?>" /> |
162 | 168 | <?php endif; ?> |
163 | 169 | |
@@ -213,9 +219,12 @@ discard block |
||
213 | 219 | <?= $enc->html( $this->translate( 'admin', 'Second level type for grouping items' ) ); ?> |
214 | 220 | </div> |
215 | 221 | </div> |
216 | - <?php else : ?> |
|
222 | + <?php else { |
|
223 | + : ?> |
|
217 | 224 | <input class="listitem-type" type="hidden" |
218 | - v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); ?>'.replace('idx', idx)" |
|
225 | + v-bind:name="'<?= $enc->attr( $this->formparam( array( 'text', 'idx', 'attribute.lists.type' ) ) ); |
|
226 | +} |
|
227 | +?>'.replace('idx', idx)" |
|
219 | 228 | value="<?= $enc->attr( key( $listTypes ) ); ?>" |
220 | 229 | v-model="items[idx]['attribute.lists.type']" /> |
221 | 230 | <?php endif; ?> |
@@ -334,8 +334,7 @@ |
||
334 | 334 | { |
335 | 335 | $stockItem = $stocks[$id]; |
336 | 336 | unset( $stocks[$id] ); |
337 | - } |
|
338 | - else |
|
337 | + } else |
|
339 | 338 | { |
340 | 339 | $stockItem = $manager->createItem(); |
341 | 340 | } |
@@ -52,8 +52,11 @@ |
||
52 | 52 | </option> |
53 | 53 | <?php endforeach; ?> |
54 | 54 | </select> |
55 | - <?php else : ?> |
|
56 | - <input class="form-control" type="<?= $enc->attr( $type ); ?>" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
55 | + <?php else { |
|
56 | + : ?> |
|
57 | + <input class="form-control" type="<?= $enc->attr( $type ); |
|
58 | +} |
|
59 | +?>" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
57 | 60 | name="<?= $enc->attr( $this->formparam( array_merge( $group, ['filter', 'val', $idx] ) ) ); ?>" |
58 | 61 | value="<?= $enc->attr( $this->value( $filter, 'val/' . $idx, '' ) ); ?>" /> |
59 | 62 | <?php endif; ?> |
@@ -70,9 +70,12 @@ |
||
70 | 70 | v-bind:readonly="checkSite(idx)" |
71 | 71 | v-bind:value="item['stock.type']" > |
72 | 72 | </select> |
73 | - <?php else : ?> |
|
73 | + <?php else { |
|
74 | + : ?> |
|
74 | 75 | <input class="item-type" type="hidden" |
75 | - v-bind:name="'<?= $enc->attr( $this->formparam( ['stock', 'idx', 'stock.type'] ) ); ?>'.replace( 'idx', idx )" |
|
76 | + v-bind:name="'<?= $enc->attr( $this->formparam( ['stock', 'idx', 'stock.type'] ) ); |
|
77 | +} |
|
78 | +?>'.replace( 'idx', idx )" |
|
76 | 79 | value="<?= $enc->attr( key( $stockTypes ) ); ?>" /> |
77 | 80 | <?php endif; ?> |
78 | 81 | </td> |