Commit 93e3bd3145ba179deb8d4a1c51e37253459401f5

Authored by Виталий
1 parent a33b71b5

tokar commit

frontend/views/accounts/_projects_form.php
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </div> 41 </div>
42 42
43 <div class="input-blocks-wrapper"> 43 <div class="input-blocks-wrapper">
44 - <div class="input-blocks"> 44 + <div class="input-blocks admin-project-list admin-currency-second">
45 <?= $form->field($project, 'project_pid') 45 <?= $form->field($project, 'project_pid')
46 ->dropDownList($projects, [ 'prompt' => 'Родительский проект' ]) ?> 46 ->dropDownList($projects, [ 'prompt' => 'Родительский проект' ]) ?>
47 </div> 47 </div>
@@ -121,28 +121,45 @@ @@ -121,28 +121,45 @@
121 </div> 121 </div>
122 122
123 <div class="input-blocks-wrapper"> 123 <div class="input-blocks-wrapper">
124 - <div class="input-blocks">  
125 - <?= $form->field($project, 'budget')  
126 - ->textInput (['class'=> 'custom-input-2','type'=>'number']) ?> 124 + <div class="input-blocks admin-project-list-two admin-currency-first">
  125 + <?= $form->field($project, 'budget', [
  126 + 'template' => "{label}<br />{input}\n{hint}\n{error}"
  127 + ])
  128 + ->textInput (['class'=> 'custom-input-2 custom-input-2-date','type'=>'number']) ?>
127 </div> 129 </div>
128 - <div class="input-blocks home-input"> 130 + <div class="input-blocks admin-project-list-two admin-currency-second">
129 <?= 131 <?=
130 $form->field($project, 'budget_currency')->label(false)->dropDownList(Currency::getCurrencyDropdown(), ['class'=> 'custom-input-2']); 132 $form->field($project, 'budget_currency')->label(false)->dropDownList(Currency::getCurrencyDropdown(), ['class'=> 'custom-input-2']);
131 ?> 133 ?>
132 </div> 134 </div>
133 - <div class="input-blocks home-input">  
134 - <?= $form->field($project, 'contractual')  
135 - ->checkbox() ?> 135 + <div class="input-blocks admin-who-check-payment admin-project-contractual">
  136 + <?= $form->field($project, 'contractual', ['template' => "{input}{label}\n{hint}\n{error}"])
  137 + ->checkbox (['class'=> 'custom-check'], false)
  138 + ->label ('<span></span>Договорной')
  139 + ?>
136 </div> 140 </div>
137 141
138 </div> 142 </div>
139 143
  144 +<div class="input-blocks-wrapper">
  145 + <?= $form->field($project, 'payment_variant')
  146 + ->radioList([
  147 + 1 => 'Без предоплаты',
  148 + 2 => 'Предоплата возможна',
  149 + ],[
  150 + 'item' => function($index, $label, $name, $checked, $value) {
  151 + $return = '<div class="admin-who-check">';
  152 + $return .= '<input class="custom-radio" id="select_admin_mfp'.$value.'" type="radio" name="' . $name . '" value="' . $value . '" '.($checked ? "checked" :"").' >';
  153 + $return .= '<label for="select_admin_mfp'.$value.'" >';
  154 + $return .= '<span></span>' . ucwords($label);
  155 + $return .= '</label>';
  156 + $return .= '</div>';
  157 + return $return;
  158 + }
  159 + ]) ?>
  160 +</div>
  161 +
140 162
141 -<?= $form->field($project, 'payment_variant')  
142 - ->radioList([  
143 - 1 => 'Без предоплаты',  
144 - 2 => 'Предоплата возможна',  
145 - ]) ?>  
146 163
147 <?= $form->field($project, 'paymentInput') 164 <?= $form->field($project, 'paymentInput')
148 ->checkboxList($payment) ?> 165 ->checkboxList($payment) ?>
@@ -191,3 +208,21 @@ @@ -191,3 +208,21 @@
191 <?php 208 <?php
192 $form->end(); 209 $form->end();
193 ?> 210 ?>
  211 +<script>
  212 + $(document).ready(function(){
  213 + $('.input-blocks.admin-currency-second select').change(function(){
  214 + $(this).blur()
  215 + })
  216 +
  217 + if($('.admin-project-contractual input[type="checkbox"]').prop("checked")) {
  218 + $('.admin-project-list-two input, .admin-project-list-two select').attr('disabled', 'disabled')
  219 + }
  220 + $('.admin-project-contractual input[type="checkbox"]').change(function(){
  221 + if($(this).prop("checked")) {
  222 + $('.admin-project-list-two input, .admin-project-list-two select').attr('disabled','disabled')
  223 + } else {
  224 + $('.admin-project-list-two input, .admin-project-list-two select').removeAttr('disabled')
  225 + }
  226 + })
  227 + })
  228 +</script>
194 \ No newline at end of file 229 \ No newline at end of file
frontend/views/accounts/_vacancy_form.php
@@ -78,14 +78,27 @@ @@ -78,14 +78,27 @@
78 </div> 78 </div>
79 79
80 <div class="input-blocks-wrapper"> 80 <div class="input-blocks-wrapper">
81 - <div class="input-blocks">  
82 - <?= $form->field($vacancy, 'salary')  
83 - ->textInput (['class'=> 'custom-input-2']); ?>  
84 - <?= $form->field($vacancy, 'salary_currency')  
85 - ->label(false)->dropDownList($currencies); ?> 81 + <div class="input-blocks admin-currency-first">
  82 + <?= $form->field($vacancy, 'salary', [
  83 + 'template' => "{label}<br /><span class='admn-input-txt'>от</span>{input}\n{hint}\n{error}",
  84 + 'options' => [ 'class' => 'form-inline' ],
  85 + ])
  86 + ->label('Заработная плата')
  87 + ->textInput (['class'=> 'custom-input-2 custom-input-2-date','type'=>'number']);
  88 + ?>
  89 + </div>
  90 + <div class="input-blocks admin-currency-second">
  91 + <?=
  92 + $form->field($vacancy, 'salary_currency', [
  93 + 'template' => "{input}<span class='admn-input-txt' style='padding-top: 7px; display: block'>за час</span>\n{hint}\n{error}",
  94 + ])
  95 + ->label(false)
  96 + ->dropDownList($currencies)
  97 + ?>
86 </div> 98 </div>
87 </div> 99 </div>
88 100
  101 +
89 <div class="input-blocks-wrapper"> 102 <div class="input-blocks-wrapper">
90 <ul class="content-menu-first"> 103 <ul class="content-menu-first">
91 <?php foreach($specializations as $specialization): ?> 104 <?php foreach($specializations as $specialization): ?>
@@ -183,3 +196,10 @@ @@ -183,3 +196,10 @@
183 <?php 196 <?php
184 $form->end(); 197 $form->end();
185 ?> 198 ?>
  199 +<script>
  200 + $(document).ready(function(){
  201 + $('.input-blocks.admin-currency-second select').change(function(){
  202 + $(this).blur()
  203 + })
  204 + })
  205 +</script>
186 \ No newline at end of file 206 \ No newline at end of file
frontend/views/accounts/service.php
@@ -88,7 +88,7 @@ @@ -88,7 +88,7 @@
88 <?php endforeach; ?> 88 <?php endforeach; ?>
89 </ul> 89 </ul>
90 </div> 90 </div>
91 - <div class="input-blocks-wrapper"> 91 + <div class="input-blocks-wrapper admin-city-array">
92 <div class="input-blocks"> 92 <div class="input-blocks">
93 <?= $form->field($user_info, 'geographies') 93 <?= $form->field($user_info, 'geographies')
94 ->widget(Select2::classname(), [ 94 ->widget(Select2::classname(), [
@@ -249,7 +249,8 @@ @@ -249,7 +249,8 @@
249 <?php 249 <?php
250 $form->end(); 250 $form->end();
251 ?> 251 ?>
252 -</div><script> 252 +</div>
  253 +<script>
253 $(document).ready(function(){ 254 $(document).ready(function(){
254 $('.input-blocks.admin-currency-second select').change(function(){ 255 $('.input-blocks.admin-currency-second select').change(function(){
255 $(this).blur() 256 $(this).blur()
frontend/web/css/style.css
@@ -4620,7 +4620,7 @@ input.custom-radio + label, input.custom-check + label { @@ -4620,7 +4620,7 @@ input.custom-radio + label, input.custom-check + label {
4620 font-weight: normal; 4620 font-weight: normal;
4621 } 4621 }
4622 input.custom-radio:checked + label, input.custom-check:checked + label { 4622 input.custom-radio:checked + label, input.custom-check:checked + label {
4623 - color: #0072bc; 4623 + color: #0072bc !important;
4624 /*border-bottom: 1px solid #0072bc;*/ 4624 /*border-bottom: 1px solid #0072bc;*/
4625 border:none !important; 4625 border:none !important;
4626 } 4626 }
@@ -6037,4 +6037,59 @@ a {color: #0072bc} @@ -6037,4 +6037,59 @@ a {color: #0072bc}
6037 } 6037 }
6038 .input-blocks.admin-currency-second .has-success select { 6038 .input-blocks.admin-currency-second .has-success select {
6039 border: 1px solid #dcdcdc; 6039 border: 1px solid #dcdcdc;
  6040 +}
  6041 +.admin-city-array .select2-selection {border-radius: 0; position: relative}
  6042 +.admin-city-array .select2-selection:before {
  6043 + height: 28px;
  6044 + width: 25px;
  6045 + background: url("/images/sets-ico/select-arrow.jpg") no-repeat !important;
  6046 + content: '';
  6047 + display: block;
  6048 + position: absolute;
  6049 + top: 0;
  6050 + right: 0;
  6051 +}
  6052 +.admin-city-array .select2-container--focus .select2-selection:before, .admin-city-array .select2-container--open .select2-selection:before {
  6053 + background: url("/images/sets-ico/select-arrow-up.png") no-repeat !important;
  6054 +}
  6055 +.admin-city-array .select2-container--krajee .select2-selection--multiple {
  6056 + min-height: 28px;
  6057 +}
  6058 +.admin-city-array .select2-container--krajee .select2-selection--multiple .select2-search--inline .select2-search__field {
  6059 + height: 28px;
  6060 +}
  6061 +.admin-city-array .select2-container--krajee .select2-selection--multiple .select2-selection__clear {
  6062 + margin-right: 30px;
  6063 +}
  6064 +.admin-city-array .select2-container--krajee .select2-selection--multiple .select2-selection__choice {
  6065 + font-size: 13px; margin-top: 4px;
  6066 + background: #0072bc;
  6067 + color: #fff;
  6068 +}
  6069 +.admin-city-array .select2-container--krajee .select2-selection--multiple .select2-selection__choice__remove {
  6070 + text-shadow: none;
  6071 + margin-top: 3px;
  6072 + color: #fff;
  6073 + opacity: 1;
  6074 +}
  6075 +.input-blocks.admin-project-list.admin-currency-second {
  6076 + margin-left: 0;
  6077 + padding-top: 0;
  6078 +}
  6079 +.input-blocks.admin-project-list.admin-currency-second select {width: 100%}
  6080 +.input-blocks.admin-project-list-two.admin-currency-second {
  6081 + margin-left:0;
  6082 + padding-top: 18px;
  6083 + width: 80px;
  6084 +}
  6085 +.input-blocks.admin-project-list-two.admin-currency-first {
  6086 + width: 76px;
  6087 +}
  6088 +.input-blocks.admin-project-list-two.admin-currency-first input{margin-left: 0 !important;}
  6089 +.admin-project-contractual {
  6090 + margin-top: 29px;
  6091 +}
  6092 +input[disabled], select[disabled] {
  6093 + cursor: default;
  6094 + background: #f1f1f1;
6040 } 6095 }
6041 \ No newline at end of file 6096 \ No newline at end of file