@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-media-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'media.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/media.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-media-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'media.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/media.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Media Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/media.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/media.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/media.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Media Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/media.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/media.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/media.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/media.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/media.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/media.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'media.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/media.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/media.type.domain', 'product' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/media.type.domain', 'product'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/media.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'media.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/media.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/media.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/media.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/media.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/media.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/media.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/media.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/media.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/media.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/media.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/media.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'media.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/media.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/media.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'media.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/media.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/media.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'media.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/media.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/media.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'media.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/media.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/media.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'media.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/media.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/media.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-media-lists-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'media.lists.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/media.lists.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-media-lists-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'media.lists.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/media.lists.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Media Lists Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/media.lists.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/media.lists.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/media.lists.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Media Lists Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/media.lists.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/media.lists.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/media.lists.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.lists.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.lists.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.lists.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.lists.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.lists.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.lists.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/media.lists.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/media.lists.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.lists.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/media.lists.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'media.lists.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/media.lists.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/media.lists.type.domain', 'product' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/media.lists.type.domain', 'product'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.lists.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/media.lists.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'media.lists.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/media.lists.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/media.lists.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/media.lists.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/media.lists.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/media.lists.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/media.lists.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/media.lists.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/media.lists.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/media.lists.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.lists.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/media.lists.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/media.lists.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'media.lists.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/media.lists.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/media.lists.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'media.lists.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/media.lists.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/media.lists.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'media.lists.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/media.lists.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/media.lists.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'media.lists.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/media.lists.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/media.lists.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'media.lists.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/media.lists.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/media.lists.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-media-property-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/media.property.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-media-property-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/media.property.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Media Property Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/media.property.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/media.property.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/media.property.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Media Property Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/media.property.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/media.property.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/media.property.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.property.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.property.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.property.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.property.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/media.property.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/media.property.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/media.property.type.domain', 'product' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/media.property.type.domain', 'product'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/media.property.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/media.property.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/media.property.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/media.property.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/media.property.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'media.property.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/media.property.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'media.property.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/media.property.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'media.property.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/media.property.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'media.property.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/media.property.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'media.property.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/media.property.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/media.property.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'media.property.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/media.property.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/media.property.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-stock-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'stock.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/stock.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-stock-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'stock.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/stock.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Stock Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/stock.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/stock.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/stock.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Stock Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/stock.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/stock.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/stock.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/stock.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/stock.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/stock.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/stock.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/stock.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/stock.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/stock.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/stock.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'stock.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/stock.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'stock.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/stock.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['product'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/stock.type.domain', 'product' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['product'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/stock.type.domain', 'product'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'stock.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/stock.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'stock.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/stock.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/stock.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/stock.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/stock.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/stock.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/stock.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/stock.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/stock.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/stock.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'stock.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/stock.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/stock.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'stock.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/stock.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/stock.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'stock.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/stock.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/stock.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'stock.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/stock.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/stock.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'stock.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/stock.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/stock.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'stock.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/stock.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/stock.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-attribute-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/attribute.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-attribute-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'attribute.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/attribute.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Attribute Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/attribute.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/attribute.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/attribute.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Attribute Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/attribute.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/attribute.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/attribute.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/attribute.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/attribute.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/attribute.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/attribute.type.domain', 'product' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/attribute.type.domain', 'product'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/attribute.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/attribute.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/attribute.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/attribute.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/attribute.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/attribute.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/attribute.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/attribute.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/attribute.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/attribute.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/attribute.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code, e.g. "color" for attributes like "green", "blue", "red"' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code, e.g. "color" for attributes like "green", "blue", "red"')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'attribute.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'attribute.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/attribute.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/attribute.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'attribute.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'attribute.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/attribute.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/attribute.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-attribute-lists-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.lists.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/attribute.lists.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-attribute-lists-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'attribute.lists.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/attribute.lists.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Attribute Lists Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/attribute.lists.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/attribute.lists.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/attribute.lists.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Attribute Lists Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/attribute.lists.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/attribute.lists.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/attribute.lists.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.lists.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.lists.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.lists.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.lists.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.lists.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.lists.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/attribute.lists.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/attribute.lists.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.lists.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.lists.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.lists.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/attribute.lists.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/attribute.lists.type.domain', 'product' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/attribute.lists.type.domain', 'product'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.lists.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.lists.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.lists.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/attribute.lists.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/attribute.lists.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/attribute.lists.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/attribute.lists.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/attribute.lists.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/attribute.lists.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/attribute.lists.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/attribute.lists.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/attribute.lists.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.lists.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.lists.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.lists.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.lists.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/attribute.lists.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/attribute.lists.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'attribute.lists.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.lists.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.lists.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'attribute.lists.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/attribute.lists.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/attribute.lists.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'attribute.lists.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.lists.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.lists.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'attribute.lists.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/attribute.lists.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/attribute.lists.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-attribute-property-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.property.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/attribute.property.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-attribute-property-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'attribute.property.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/attribute.property.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Attribute Property Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/attribute.property.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/attribute.property.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/attribute.property.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Attribute Property Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/attribute.property.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/attribute.property.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/attribute.property.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.property.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.property.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.property.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.property.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/attribute.property.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/attribute.property.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/attribute.property.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/attribute.property.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.property.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.property.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.property.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/attribute.property.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/attribute.property.type.domain', 'customer' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/attribute.property.type.domain', 'customer'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.property.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.property.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.property.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/attribute.property.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/attribute.property.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/attribute.property.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/attribute.property.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/attribute.property.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/attribute.property.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/attribute.property.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/attribute.property.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/attribute.property.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'attribute.property.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.property.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.property.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'attribute.property.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/attribute.property.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/attribute.property.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'attribute.property.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.property.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.property.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'attribute.property.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/attribute.property.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/attribute.property.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'attribute.property.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/attribute.property.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/attribute.property.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'attribute.property.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/attribute.property.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/attribute.property.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-service-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/service.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-service-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'service.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/service.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Service Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/service.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/service.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/service.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Service Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/service.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/service.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/service.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/service.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/service.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/service.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/service.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/service.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/service.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/service.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/service.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/service.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'service.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/service.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['service'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/service.type.domain', 'service' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['service'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/service.type.domain', 'service'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/service.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'service.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/service.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/service.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/service.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/service.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/service.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/service.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/service.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/service.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/service.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/service.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/service.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'service.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/service.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/service.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'service.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/service.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/service.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'service.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/service.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/service.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'service.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/service.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/service.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'service.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/service.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/service.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |
@@ -5,38 +5,38 @@ discard block |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -$selected = function( $key, $code ) { |
|
9 | - return ( $key == $code ? 'selected="selected"' : '' ); |
|
8 | +$selected = function($key, $code) { |
|
9 | + return ($key == $code ? 'selected="selected"' : ''); |
|
10 | 10 | }; |
11 | 11 | |
12 | 12 | $enc = $this->encoder(); |
13 | 13 | |
14 | 14 | |
15 | -$target = $this->config( 'admin/jqadm/url/save/target' ); |
|
16 | -$cntl = $this->config( 'admin/jqadm/url/save/controller', 'Jqadm' ); |
|
17 | -$action = $this->config( 'admin/jqadm/url/save/action', 'save' ); |
|
18 | -$config = $this->config( 'admin/jqadm/url/save/config', [] ); |
|
15 | +$target = $this->config('admin/jqadm/url/save/target'); |
|
16 | +$cntl = $this->config('admin/jqadm/url/save/controller', 'Jqadm'); |
|
17 | +$action = $this->config('admin/jqadm/url/save/action', 'save'); |
|
18 | +$config = $this->config('admin/jqadm/url/save/config', []); |
|
19 | 19 | |
20 | -$params = $this->get( 'pageParams', [] ); |
|
20 | +$params = $this->get('pageParams', []); |
|
21 | 21 | |
22 | 22 | |
23 | 23 | ?> |
24 | -<?php $this->block()->start( 'jqadm_content' ); ?> |
|
24 | +<?php $this->block()->start('jqadm_content'); ?> |
|
25 | 25 | |
26 | -<form class="item item-service-lists-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr( $this->url( $target, $cntl, $action, $params, [], $config ) ); ?>"> |
|
27 | - <input id="item-id" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'item', 'service.lists.type.id' ) ) ); ?>" value="<?= $enc->attr( $this->get( 'itemData/service.lists.type.id' ) ); ?>" /> |
|
28 | - <input id="item-next" type="hidden" name="<?= $enc->attr( $this->formparam( array( 'next' ) ) ); ?>" value="get" /> |
|
26 | +<form class="item item-service-lists-type form-horizontal" method="POST" enctype="multipart/form-data" action="<?= $enc->attr($this->url($target, $cntl, $action, $params, [], $config)); ?>"> |
|
27 | + <input id="item-id" type="hidden" name="<?= $enc->attr($this->formparam(array('item', 'service.lists.type.id'))); ?>" value="<?= $enc->attr($this->get('itemData/service.lists.type.id')); ?>" /> |
|
28 | + <input id="item-next" type="hidden" name="<?= $enc->attr($this->formparam(array('next'))); ?>" value="get" /> |
|
29 | 29 | <?= $this->csrf()->formfield(); ?> |
30 | 30 | |
31 | 31 | <nav class="main-navbar"> |
32 | 32 | <span class="navbar-brand"> |
33 | - <?= $enc->html( $this->translate( 'admin', 'Service Lists Type' ) ); ?>: |
|
34 | - <?= $enc->html( $this->get( 'itemData/service.lists.type.id' ) ); ?> - |
|
35 | - <?= $enc->html( $this->get( 'itemData/service.lists.type.label', $this->translate( 'admin', 'New' ) ) ); ?> |
|
36 | - <span class="navbar-secondary">(<?= $enc->html( $this->site()->match( $this->get( 'itemData/service.lists.type.siteid' ) ) ); ?>)</span> |
|
33 | + <?= $enc->html($this->translate('admin', 'Service Lists Type')); ?>: |
|
34 | + <?= $enc->html($this->get('itemData/service.lists.type.id')); ?> - |
|
35 | + <?= $enc->html($this->get('itemData/service.lists.type.label', $this->translate('admin', 'New'))); ?> |
|
36 | + <span class="navbar-secondary">(<?= $enc->html($this->site()->match($this->get('itemData/service.lists.type.siteid'))); ?>)</span> |
|
37 | 37 | </span> |
38 | 38 | <div class="item-actions"> |
39 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
39 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
40 | 40 | </div> |
41 | 41 | </nav> |
42 | 42 | |
@@ -47,14 +47,14 @@ discard block |
||
47 | 47 | |
48 | 48 | <li class="nav-item basic"> |
49 | 49 | <a class="nav-link active" href="#basic" data-toggle="tab" role="tab" aria-expanded="true" aria-controls="basic"> |
50 | - <?= $enc->html( $this->translate( 'admin', 'Basic' ) ); ?> |
|
50 | + <?= $enc->html($this->translate('admin', 'Basic')); ?> |
|
51 | 51 | </a> |
52 | 52 | </li> |
53 | 53 | |
54 | - <?php foreach( array_values( $this->get( 'itemSubparts', [] ) ) as $idx => $subpart ) : ?> |
|
55 | - <li class="nav-item <?= $enc->attr( $subpart ); ?>"> |
|
56 | - <a class="nav-link" href="#<?= $enc->attr( $subpart ); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx+1; ?>"> |
|
57 | - <?= $enc->html( $this->translate( 'admin', $subpart ) ); ?> |
|
54 | + <?php foreach (array_values($this->get('itemSubparts', [])) as $idx => $subpart) : ?> |
|
55 | + <li class="nav-item <?= $enc->attr($subpart); ?>"> |
|
56 | + <a class="nav-link" href="#<?= $enc->attr($subpart); ?>" data-toggle="tab" role="tab" tabindex="<?= ++$idx + 1; ?>"> |
|
57 | + <?= $enc->html($this->translate('admin', $subpart)); ?> |
|
58 | 58 | </a> |
59 | 59 | </li> |
60 | 60 | <?php endforeach; ?> |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | |
64 | 64 | <div class="item-meta text-muted"> |
65 | 65 | <small> |
66 | - <?= $enc->html( $this->translate( 'admin', 'Modified' ) ); ?>: |
|
67 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/service.lists.type.mtime' ) ); ?></span> |
|
66 | + <?= $enc->html($this->translate('admin', 'Modified')); ?>: |
|
67 | + <span class="meta-value"><?= $enc->html($this->get('itemData/service.lists.type.mtime')); ?></span> |
|
68 | 68 | </small> |
69 | 69 | <small> |
70 | - <?= $enc->html( $this->translate( 'admin', 'Created' ) ); ?>: |
|
71 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/service.lists.type.ctime' ) ); ?></span> |
|
70 | + <?= $enc->html($this->translate('admin', 'Created')); ?>: |
|
71 | + <span class="meta-value"><?= $enc->html($this->get('itemData/service.lists.type.ctime')); ?></span> |
|
72 | 72 | </small> |
73 | 73 | <small> |
74 | - <?= $enc->html( $this->translate( 'admin', 'Editor' ) ); ?>: |
|
75 | - <span class="meta-value"><?= $enc->html( $this->get( 'itemData/service.lists.type.editor' ) ); ?></span> |
|
74 | + <?= $enc->html($this->translate('admin', 'Editor')); ?>: |
|
75 | + <span class="meta-value"><?= $enc->html($this->get('itemData/service.lists.type.editor')); ?></span> |
|
76 | 76 | </small> |
77 | 77 | </div> |
78 | 78 | </div> |
@@ -81,98 +81,98 @@ discard block |
||
81 | 81 | |
82 | 82 | <div id="basic" class="row item-basic tab-pane fade show active" role="tabpanel" aria-labelledby="basic"> |
83 | 83 | |
84 | - <div class="col-xl-6 content-block <?= $this->site()->readonly( $this->get( 'itemData/service.lists.type.siteid' ) ); ?>"> |
|
84 | + <div class="col-xl-6 content-block <?= $this->site()->readonly($this->get('itemData/service.lists.type.siteid')); ?>"> |
|
85 | 85 | <div class="form-group row mandatory"> |
86 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Domain' ) ); ?></label> |
|
86 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Domain')); ?></label> |
|
87 | 87 | <div class="col-sm-8"> |
88 | 88 | <select class="form-control custom-select item-domain" required="required" tabindex="1" |
89 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.lists.type.domain' ) ) ); ?>" |
|
90 | - <?= $this->site()->readonly( $this->get( 'itemData/service.lists.type.siteid' ) ); ?> > |
|
89 | + name="<?= $enc->attr($this->formparam(array('item', 'service.lists.type.domain'))); ?>" |
|
90 | + <?= $this->site()->readonly($this->get('itemData/service.lists.type.siteid')); ?> > |
|
91 | 91 | <option value=""> |
92 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
92 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
93 | 93 | </option> |
94 | 94 | |
95 | - <?php foreach( ['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain ) : ?> |
|
96 | - <option value="<?= $enc->attr( $domain ); ?>" <?= $selected( $this->get( 'itemData/service.lists.type.domain', 'product' ), $domain ); ?> > |
|
97 | - <?= $enc->html( $this->translate( 'admin', $domain ) ); ?> |
|
95 | + <?php foreach (['attribute', 'catalog', 'customer', 'media', 'price', 'product', 'service', 'supplier', 'text'] as $domain) : ?> |
|
96 | + <option value="<?= $enc->attr($domain); ?>" <?= $selected($this->get('itemData/service.lists.type.domain', 'product'), $domain); ?> > |
|
97 | + <?= $enc->html($this->translate('admin', $domain)); ?> |
|
98 | 98 | </option> |
99 | 99 | <?php endforeach; ?> |
100 | 100 | </select> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <div class="form-group row mandatory"> |
104 | - <label class="col-sm-4 form-control-label"><?= $enc->html( $this->translate( 'admin', 'Status' ) ); ?></label> |
|
104 | + <label class="col-sm-4 form-control-label"><?= $enc->html($this->translate('admin', 'Status')); ?></label> |
|
105 | 105 | <div class="col-sm-8"> |
106 | 106 | <select class="form-control custom-select item-status" required="required" tabindex="1" |
107 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.lists.type.status' ) ) ); ?>" |
|
108 | - <?= $this->site()->readonly( $this->get( 'itemData/service.lists.type.siteid' ) ); ?> > |
|
107 | + name="<?= $enc->attr($this->formparam(array('item', 'service.lists.type.status'))); ?>" |
|
108 | + <?= $this->site()->readonly($this->get('itemData/service.lists.type.siteid')); ?> > |
|
109 | 109 | <option value=""> |
110 | - <?= $enc->html( $this->translate( 'admin', 'Please select' ) ); ?> |
|
110 | + <?= $enc->html($this->translate('admin', 'Please select')); ?> |
|
111 | 111 | </option> |
112 | - <option value="1" <?= $selected( $this->get( 'itemData/service.lists.type.status', 1 ), 1 ); ?> > |
|
113 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:1' ) ); ?> |
|
112 | + <option value="1" <?= $selected($this->get('itemData/service.lists.type.status', 1), 1); ?> > |
|
113 | + <?= $enc->html($this->translate('mshop/code', 'status:1')); ?> |
|
114 | 114 | </option> |
115 | - <option value="0" <?= $selected( $this->get( 'itemData/service.lists.type.status', 1 ), 0 ); ?> > |
|
116 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:0' ) ); ?> |
|
115 | + <option value="0" <?= $selected($this->get('itemData/service.lists.type.status', 1), 0); ?> > |
|
116 | + <?= $enc->html($this->translate('mshop/code', 'status:0')); ?> |
|
117 | 117 | </option> |
118 | - <option value="-1" <?= $selected( $this->get( 'itemData/service.lists.type.status', 1 ), -1 ); ?> > |
|
119 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-1' ) ); ?> |
|
118 | + <option value="-1" <?= $selected($this->get('itemData/service.lists.type.status', 1), -1); ?> > |
|
119 | + <?= $enc->html($this->translate('mshop/code', 'status:-1')); ?> |
|
120 | 120 | </option> |
121 | - <option value="-2" <?= $selected( $this->get( 'itemData/service.lists.type.status', 1 ), -2 ); ?> > |
|
122 | - <?= $enc->html( $this->translate( 'mshop/code', 'status:-2' ) ); ?> |
|
121 | + <option value="-2" <?= $selected($this->get('itemData/service.lists.type.status', 1), -2); ?> > |
|
122 | + <?= $enc->html($this->translate('mshop/code', 'status:-2')); ?> |
|
123 | 123 | </option> |
124 | 124 | </select> |
125 | 125 | </div> |
126 | 126 | </div> |
127 | 127 | <div class="form-group row mandatory"> |
128 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Code' ) ); ?></label> |
|
128 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Code')); ?></label> |
|
129 | 129 | <div class="col-sm-8"> |
130 | 130 | <input class="form-control item-code" type="text" required="required" tabindex="1" |
131 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.lists.type.code' ) ) ); ?>" |
|
132 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Unique type code (required)' ) ); ?>" |
|
133 | - value="<?= $enc->attr( $this->get( 'itemData/service.lists.type.code' ) ); ?>" |
|
134 | - <?= $this->site()->readonly( $this->get( 'itemData/service.lists.type.siteid' ) ); ?> /> |
|
131 | + name="<?= $enc->attr($this->formparam(array('item', 'service.lists.type.code'))); ?>" |
|
132 | + placeholder="<?= $enc->attr($this->translate('admin', 'Unique type code (required)')); ?>" |
|
133 | + value="<?= $enc->attr($this->get('itemData/service.lists.type.code')); ?>" |
|
134 | + <?= $this->site()->readonly($this->get('itemData/service.lists.type.siteid')); ?> /> |
|
135 | 135 | </div> |
136 | 136 | <div class="col-sm-12 form-text text-muted help-text"> |
137 | - <?= $enc->html( $this->translate( 'admin', 'Unique type code' ) ); ?> |
|
137 | + <?= $enc->html($this->translate('admin', 'Unique type code')); ?> |
|
138 | 138 | </div> |
139 | 139 | </div> |
140 | 140 | <div class="form-group row mandatory"> |
141 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Label' ) ); ?></label> |
|
141 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Label')); ?></label> |
|
142 | 142 | <div class="col-sm-8"> |
143 | 143 | <input class="form-control item-label" type="text" required="required" tabindex="1" |
144 | - name="<?= $this->formparam( array( 'item', 'service.lists.type.label' ) ); ?>" |
|
145 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Internal name (required)' ) ); ?>" |
|
146 | - value="<?= $enc->attr( $this->get( 'itemData/service.lists.type.label' ) ); ?>" |
|
147 | - <?= $this->site()->readonly( $this->get( 'itemData/service.lists.type.siteid' ) ); ?> /> |
|
144 | + name="<?= $this->formparam(array('item', 'service.lists.type.label')); ?>" |
|
145 | + placeholder="<?= $enc->attr($this->translate('admin', 'Internal name (required)')); ?>" |
|
146 | + value="<?= $enc->attr($this->get('itemData/service.lists.type.label')); ?>" |
|
147 | + <?= $this->site()->readonly($this->get('itemData/service.lists.type.siteid')); ?> /> |
|
148 | 148 | </div> |
149 | 149 | <div class="col-sm-12 form-text text-muted help-text"> |
150 | - <?= $enc->html( $this->translate( 'admin', 'Internal type name shown in the administration interface' ) ); ?> |
|
150 | + <?= $enc->html($this->translate('admin', 'Internal type name shown in the administration interface')); ?> |
|
151 | 151 | </div> |
152 | 152 | </div> |
153 | 153 | <div class="form-group row optional"> |
154 | - <label class="col-sm-4 form-control-label help"><?= $enc->html( $this->translate( 'admin', 'Position' ) ); ?></label> |
|
154 | + <label class="col-sm-4 form-control-label help"><?= $enc->html($this->translate('admin', 'Position')); ?></label> |
|
155 | 155 | <div class="col-sm-8"> |
156 | 156 | <input class="form-control item-position" type="number" step="1" tabindex="1" |
157 | - name="<?= $this->formparam( array( 'item', 'service.lists.type.position' ) ); ?>" |
|
158 | - value="<?= $enc->attr( $this->get( 'itemData/service.lists.type.position' ) ); ?>" |
|
159 | - placeholder="<?= $enc->attr( $this->translate( 'admin', 'Type position (optional)' ) ); ?>" |
|
160 | - <?= $this->site()->readonly( $this->get( 'itemData/service.lists.type.siteid' ) ); ?> /> |
|
157 | + name="<?= $this->formparam(array('item', 'service.lists.type.position')); ?>" |
|
158 | + value="<?= $enc->attr($this->get('itemData/service.lists.type.position')); ?>" |
|
159 | + placeholder="<?= $enc->attr($this->translate('admin', 'Type position (optional)')); ?>" |
|
160 | + <?= $this->site()->readonly($this->get('itemData/service.lists.type.siteid')); ?> /> |
|
161 | 161 | </div> |
162 | 162 | <div class="col-sm-12 form-text text-muted help-text"> |
163 | - <?= $enc->html( $this->translate( 'admin', 'Order of the types in the frontend' ) ); ?> |
|
163 | + <?= $enc->html($this->translate('admin', 'Order of the types in the frontend')); ?> |
|
164 | 164 | </div> |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | </div> |
169 | 169 | |
170 | - <?= $this->get( 'itemBody' ); ?> |
|
170 | + <?= $this->get('itemBody'); ?> |
|
171 | 171 | |
172 | 172 | </div> |
173 | 173 | |
174 | 174 | <div class="item-actions"> |
175 | - <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
|
175 | + <?= $this->partial($this->config('admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard'), ['params' => $params]); ?> |
|
176 | 176 | </div> |
177 | 177 | </div> |
178 | 178 | </form> |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | <?php $this->block()->stop(); ?> |
181 | 181 | |
182 | 182 | |
183 | -<?= $this->render( $this->config( 'admin/jqadm/template/page', 'common/page-standard' ) ); ?> |
|
183 | +<?= $this->render($this->config('admin/jqadm/template/page', 'common/page-standard')); ?> |