Commit 6a82a2239e91c77b81f5249688ec1f0597f9558b
1 parent
c39b07ae
tokar commit
Showing
2 changed files
with
78 additions
and
27 deletions
Show diff stats
frontend/views/accounts/general.php
@@ -124,40 +124,75 @@ | @@ -124,40 +124,75 @@ | ||
124 | ->textInput (['class'=> 'custom-input-2']); | 124 | ->textInput (['class'=> 'custom-input-2']); |
125 | ?> | 125 | ?> |
126 | </div> | 126 | </div> |
127 | - </div> | ||
128 | - <div class="input-blocks-wrapper"> | ||
129 | - <div class="input-blocks"> | ||
130 | - <?= $form->field ($company_info, 'street', ['options' => ['class' => 'form-group company_info']]) | ||
131 | - ->label ('Улица') | ||
132 | - ->textInput (['class'=> 'custom-input-2']); | ||
133 | - ?> | 127 | + |
128 | + <div class="input-blocks street-input"> | ||
129 | + <?= $form->field ($company_info, 'street', ['options' => ['class' => 'form-group company_info']]) | ||
130 | + ->label ('Улица') | ||
131 | + ->textInput (['class'=> 'custom-input-2']); | ||
132 | + ?> | ||
134 | </div> | 133 | </div> |
135 | - </div> | ||
136 | - <div class="input-blocks-wrapper"> | ||
137 | - <div class="input-blocks"> | ||
138 | - <?= $form->field ($company_info, 'house', ['options' => ['class' => 'form-group company_info']]) | ||
139 | - ->label ('Дом') | ||
140 | - ->textInput (['class'=> 'custom-input-2']); | ||
141 | - ?> | 134 | + |
135 | + <div class="input-blocks home-input"> | ||
136 | + <?= $form->field ($company_info, 'house', ['options' => ['class' => 'form-group company_info']]) | ||
137 | + ->label ('Дом') | ||
138 | + ->textInput (['class'=> 'custom-input-2']); | ||
139 | + ?> | ||
142 | </div> | 140 | </div> |
143 | </div> | 141 | </div> |
142 | + | ||
144 | <div class="input-blocks-wrapper"> | 143 | <div class="input-blocks-wrapper"> |
145 | <div class="input-blocks"> | 144 | <div class="input-blocks"> |
146 | <?= $form->field ($user, 'email') | 145 | <?= $form->field ($user, 'email') |
147 | ->label ('Email') | 146 | ->label ('Email') |
148 | ->textInput (['class'=> 'custom-input-2','disabled' => 'disabled']); | 147 | ->textInput (['class'=> 'custom-input-2','disabled' => 'disabled']); |
149 | ?> | 148 | ?> |
150 | - | ||
151 | - <?= $form->field ($company_info, 'hide_mail', ['options' => ['class' => 'form-group company_info'], 'template' => "{input}{label}\n{hint}\n{error}"]) | ||
152 | - ->label ('Не публиковать Email') | ||
153 | - ->checkbox (['checked'=>'checked'], false); | 149 | + </div> |
150 | + <div class="input-blocks hide-mail-check"> | ||
151 | + <?= $form->field ($company_info, 'hide_mail', ['options' => ['class' => 'form-group company_info', ], 'template' => "{input}{label}\n{hint}\n{error}"]) | ||
152 | + ->label ('<span></span>не публиковать Email') | ||
153 | + ->checkbox (['checked'=>'checked', 'class'=> 'custom-check'], false); | ||
154 | ?> | 154 | ?> |
155 | </div> | 155 | </div> |
156 | </div> | 156 | </div> |
157 | + | ||
158 | + <div class="input-blocks-wrapper"> | ||
159 | + <div class="input-blocks"> | ||
160 | + <div class="general-who-title gen-admin-title">Кто вы:</div> | ||
157 | <?= $form->field ($user_info, 'busy') | 161 | <?= $form->field ($user_info, 'busy') |
158 | - ->label ('Статус') | ||
159 | - ->radioList ([0 => 'Свободен', 1 => 'Занят']); | 162 | + ->label (false) |
163 | + ->radioList ( | ||
164 | + [0 => 'Свободен', 1 => 'Занят'], | ||
165 | + [ | ||
166 | + 'item' => function($index, $label, $name, $checked, $value) { | ||
167 | + $return = '<div class="admin-who-check">'; | ||
168 | + $return .= '<input class="custom-radio" id="select_admin_status'.$value.'" type="radio" name="' . $name . '" value="' . $value . '" '.($checked ? "checked" :"").' >'; | ||
169 | + $return .= '<label for="select_admin_status'.$value.'" >'; | ||
170 | + $return .= '<span></span>' . ucwords($label); | ||
171 | + $return .= '</label>'; | ||
172 | + $return .= '</div>'; | ||
173 | + return $return; | ||
174 | + } | ||
175 | + ] | ||
176 | + ); | ||
160 | ?> | 177 | ?> |
178 | + </div> | ||
179 | + </div> | ||
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
161 | <?= $form->field ($user_info, 'member') | 196 | <?= $form->field ($user_info, 'member') |
162 | ->label ('Членство в МФП') | 197 | ->label ('Членство в МФП') |
163 | ->hint ('Выберите если хотите стать членом МФП и наш менеджер свяжется с Вами.') | 198 | ->hint ('Выберите если хотите стать членом МФП и наш менеджер свяжется с Вами.') |
frontend/web/css/style.css
@@ -4957,13 +4957,7 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | @@ -4957,13 +4957,7 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | ||
4957 | } | 4957 | } |
4958 | 4958 | ||
4959 | .input-blocks .has-success:before { | 4959 | .input-blocks .has-success:before { |
4960 | - display: block; | ||
4961 | - content: "*"; | ||
4962 | - color: #D40000; | ||
4963 | - position: absolute; | ||
4964 | - top: 32px; | ||
4965 | - left: -15px; | ||
4966 | - width: 15px; | 4960 | + |
4967 | } | 4961 | } |
4968 | 4962 | ||
4969 | .form-group.required:after { | 4963 | .form-group.required:after { |
@@ -5143,3 +5137,25 @@ ul.menu-admin li.logout-li, ul.menu-admin li.logout-li a, ul.menu-admin li:last- | @@ -5143,3 +5137,25 @@ ul.menu-admin li.logout-li, ul.menu-admin li.logout-li a, ul.menu-admin li:last- | ||
5143 | .admin-who-check input.custom-radio + label span{ | 5137 | .admin-who-check input.custom-radio + label span{ |
5144 | margin-top: 5px; | 5138 | margin-top: 5px; |
5145 | } | 5139 | } |
5140 | +.input-blocks.home-input { | ||
5141 | + width: 80px; | ||
5142 | + margin-left: 20px; | ||
5143 | +} | ||
5144 | +.input-blocks.home-input input{ | ||
5145 | + width: 80px; | ||
5146 | +} | ||
5147 | +.input-blocks.street-input {margin-left: 20px} | ||
5148 | +.input-blocks.hide-mail-check {height: 15px; margin-top: 30px;} | ||
5149 | +.input-blocks.hide-mail-check input.custom-check + label{ | ||
5150 | + color: #b7b7b7; | ||
5151 | + font-weight: normal; | ||
5152 | +} | ||
5153 | +.input-blocks.hide-mail-check input.custom-check:checked + label { | ||
5154 | + color: #b7b7b7; | ||
5155 | + border-bottom: none; | ||
5156 | +} | ||
5157 | +.input-blocks.hide-mail-check input.custom-check + label span { | ||
5158 | + margin-left: 20px; | ||
5159 | + margin-top: 5px; | ||
5160 | +} | ||
5161 | +.custom-input-2[disabled="disabled"] {background: #f1f1f1} | ||
5146 | \ No newline at end of file | 5162 | \ No newline at end of file |