Commit 8f1a5501f620863786fbc55a3efaededc2601182
Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
49 additions
and
2 deletions
Show diff stats
common/modules/fileloader/resources/handler.js
| @@ -23,6 +23,7 @@ $(function() { | @@ -23,6 +23,7 @@ $(function() { | ||
| 23 | data.result.result.input + '<p class="fileloader-item-name">'+ | 23 | data.result.result.input + '<p class="fileloader-item-name">'+ |
| 24 | '<a href="'+data.result.result.file_href+'" target="_blank">'+data.result.result.file_name+'</a></p>'+'<span class="fileloader-item-remove glyphicon glyphicon-remove"></span>'+ | 24 | '<a href="'+data.result.result.file_href+'" target="_blank">'+data.result.result.file_name+'</a></p>'+'<span class="fileloader-item-remove glyphicon glyphicon-remove"></span>'+ |
| 25 | '</div>'; | 25 | '</div>'; |
| 26 | + $('#modal_form_contacts .contacts-form-help span').css({display:'none'}); | ||
| 26 | if(!multiple) { | 27 | if(!multiple) { |
| 27 | var inputs = $(wrapper).find('.fileloader-item-remove'); | 28 | var inputs = $(wrapper).find('.fileloader-item-remove'); |
| 28 | $.each(inputs, function(i, v) { | 29 | $.each(inputs, function(i, v) { |
| @@ -47,6 +48,7 @@ $(function() { | @@ -47,6 +48,7 @@ $(function() { | ||
| 47 | }, | 48 | }, |
| 48 | function(data) {} | 49 | function(data) {} |
| 49 | ); | 50 | ); |
| 51 | + $('#modal_form_contacts .contacts-form-help span').css({display:'block'}); | ||
| 50 | $(wrapper).remove(); | 52 | $(wrapper).remove(); |
| 51 | }); | 53 | }); |
| 52 | }); | 54 | }); |
frontend/views/ajax/feedback_form.php
| @@ -34,7 +34,7 @@ | @@ -34,7 +34,7 @@ | ||
| 34 | ->label(false) | 34 | ->label(false) |
| 35 | ->widget(FileloaderWidget::className(), [ | 35 | ->widget(FileloaderWidget::className(), [ |
| 36 | 'labelOptions' => [ | 36 | 'labelOptions' => [ |
| 37 | - 'label' => '<div class="contacts-form-wrapper style"><div class="contacts-form style"><span>Прикрепить файл</span></div><div class="contacts-form-help style"><span>Максимальный размер файла 5 МБ</span></div></div>', | 37 | + 'label' => '<div class="contacts-form-wrapper style"><div class="contacts-form style"><span style="font-weight: normal">Прикрепить файл</span></div><div class="contacts-form-help style"><span>Максимальный размер файла 5 МБ</span></div></div>', |
| 38 | ], | 38 | ], |
| 39 | 'inputOptions' => [ | 39 | 'inputOptions' => [ |
| 40 | 'multiple' => false, | 40 | 'multiple' => false, |
frontend/web/css/style.css
| @@ -2393,6 +2393,9 @@ input[type=file]::-webkit-file-upload-button { | @@ -2393,6 +2393,9 @@ input[type=file]::-webkit-file-upload-button { | ||
| 2393 | font-size: 24px; | 2393 | font-size: 24px; |
| 2394 | color: #fff; | 2394 | color: #fff; |
| 2395 | margin-bottom: 1px; | 2395 | margin-bottom: 1px; |
| 2396 | + width: 415px; | ||
| 2397 | + overflow: hidden; | ||
| 2398 | + height: 28px; | ||
| 2396 | } | 2399 | } |
| 2397 | 2400 | ||
| 2398 | .performance-vacancy-sidebar-company-job ul li { | 2401 | .performance-vacancy-sidebar-company-job ul li { |
| @@ -2629,7 +2632,7 @@ input[type=file]::-webkit-file-upload-button { | @@ -2629,7 +2632,7 @@ input[type=file]::-webkit-file-upload-button { | ||
| 2629 | .section-box-16 { | 2632 | .section-box-16 { |
| 2630 | height: 380px; | 2633 | height: 380px; |
| 2631 | } | 2634 | } |
| 2632 | -.section-box-16:before { | 2635 | +.section-box-16:before, .section-box-14:before { |
| 2633 | position: absolute; | 2636 | position: absolute; |
| 2634 | top:0; | 2637 | top:0; |
| 2635 | left: 0; | 2638 | left: 0; |
| @@ -12378,3 +12381,45 @@ li.active-menu-admin:hover a .ico_num { | @@ -12378,3 +12381,45 @@ li.active-menu-admin:hover a .ico_num { | ||
| 12378 | font-size: 13px; | 12381 | font-size: 13px; |
| 12379 | } | 12382 | } |
| 12380 | .left-proektant-cabinet .summary {color: inherit;margin-top: 0} | 12383 | .left-proektant-cabinet .summary {color: inherit;margin-top: 0} |
| 12384 | +#modal_form_contacts .fileloader-list { | ||
| 12385 | + position: absolute; | ||
| 12386 | + top: 34px; | ||
| 12387 | + left: 0; | ||
| 12388 | + width: 100%; | ||
| 12389 | + height: 19px; | ||
| 12390 | + text-align: right; | ||
| 12391 | +} | ||
| 12392 | +#modal_form_contacts .fileloader-item-name { | ||
| 12393 | + width: 100%; | ||
| 12394 | + height: 19px; | ||
| 12395 | + overflow: hidden; | ||
| 12396 | + position: relative; | ||
| 12397 | + box-sizing: border-box; | ||
| 12398 | + padding-left: 20px; | ||
| 12399 | +} | ||
| 12400 | +#modal_form_contacts .fileloader-item-name a { | ||
| 12401 | + position: relative; | ||
| 12402 | + font-size: 13px; | ||
| 12403 | + color: #333 !important; | ||
| 12404 | + border-bottom: 0 !important; | ||
| 12405 | +} | ||
| 12406 | +#modal_form_contacts .fileloader-item-name a:before { | ||
| 12407 | + position: absolute; | ||
| 12408 | + content: ''; | ||
| 12409 | + width: 10px; | ||
| 12410 | + height: 8px; | ||
| 12411 | + background: url("/images/tender/ico-3.png") no-repeat; | ||
| 12412 | + top: 4px; | ||
| 12413 | + left: -17px; | ||
| 12414 | +} | ||
| 12415 | +#modal_form_contacts .fileloader-item-remove { | ||
| 12416 | + position: absolute; | ||
| 12417 | + top: 50%; | ||
| 12418 | + margin-top: -6px; | ||
| 12419 | + right: -20px; | ||
| 12420 | + width: 12px; | ||
| 12421 | + height: 12px; | ||
| 12422 | + background: url("/images/delet-file.png") no-repeat; | ||
| 12423 | + padding-left: 0 !important; | ||
| 12424 | +} | ||
| 12425 | +#modal_form_contacts .fileloader-item-remove:before {display:none;} | ||
| 12381 | \ No newline at end of file | 12426 | \ No newline at end of file |