Commit 2d6738ad30d40f48285c77e65ec022a4922c445e
1 parent
7fe508fb
tokar commit
Showing
3 changed files
with
51 additions
and
11 deletions
Show diff stats
frontend/views/accounts/_gallery_form.php
@@ -38,19 +38,26 @@ | @@ -38,19 +38,26 @@ | ||
38 | 'name' => 'Загрузить главное фото', | 38 | 'name' => 'Загрузить главное фото', |
39 | ]); ?> | 39 | ]); ?> |
40 | </div> | 40 | </div> |
41 | -<?= ImageUploader::widget([ | ||
42 | - 'model' => $gallery, | ||
43 | - 'field' => 'photo', | ||
44 | - 'width' => 152, | ||
45 | - 'height' => 108, | ||
46 | - 'multi' => true, | ||
47 | - 'gallery' => $gallery->photo, | ||
48 | - 'name' => 'Загрузить фото галереи', | ||
49 | -]); ?> | 41 | +<div class="admin-gallery-photos-load-wr style"> |
42 | + <?= ImageUploader::widget([ | ||
43 | + 'model' => $gallery, | ||
44 | + 'field' => 'photo', | ||
45 | + 'width' => 152, | ||
46 | + 'height' => 108, | ||
47 | + 'multi' => true, | ||
48 | + 'gallery' => $gallery->photo, | ||
49 | + 'name' => 'Загрузить фото галереи', | ||
50 | + ]); ?> | ||
51 | +</div> | ||
50 | 52 | ||
51 | 53 | ||
52 | 54 | ||
53 | -<?= Html::submitButton('Добавить') ?> | 55 | +<div class="input-blocks-wrapper"> |
56 | + <div class="admin-save-btn skills-save-btn style"> | ||
57 | + <?= Html::submitButton('Добавить',['class'=>'input-blocks-wrapper button']) ?> | ||
58 | + </div> | ||
59 | +</div> | ||
60 | + | ||
54 | 61 | ||
55 | <?php | 62 | <?php |
56 | $form->end(); | 63 | $form->end(); |
frontend/web/css/style.css
@@ -5958,5 +5958,38 @@ a {color: #0072bc} | @@ -5958,5 +5958,38 @@ a {color: #0072bc} | ||
5958 | .input-blocks-wrapper.amin-team-foto .admin-ava-wr{width: auto; height: auto;background: none; display: block; text-align: left} | 5958 | .input-blocks-wrapper.amin-team-foto .admin-ava-wr{width: auto; height: auto;background: none; display: block; text-align: left} |
5959 | .admin-gallery-photo-edit {margin-top: 3px} | 5959 | .admin-gallery-photo-edit {margin-top: 3px} |
5960 | 5960 | ||
5961 | - | 5961 | +.admin-gallery-photos-load-wr .gallery_image{float: left; position: relative; width: 152px; height: 108px; margin-right: 20px; margin-top: 20px} |
5962 | +.admin-gallery-photos-load-wr .gallery_image img{width: 100%; height: 100%} | ||
5963 | +.admin-gallery-photos-load-wr .gallery_image:hover .glyphicon {display: block} | ||
5964 | +.admin-gallery-photos-load-wr .glyphicon-trash:before { | ||
5965 | + content: '' !important; | ||
5966 | + width: 21px; | ||
5967 | + height: 21px; | ||
5968 | + cursor: pointer; | ||
5969 | + background: #fff url("/images/galeryclosebig.png") 50% 50% no-repeat; | ||
5970 | + display: block; | ||
5971 | +} | ||
5972 | +.admin-gallery-photos-load-wr .glyphicon { | ||
5973 | + position: absolute; | ||
5974 | + top: 0; | ||
5975 | + right: 0; | ||
5976 | + width: 100%; | ||
5977 | + height: 100%; | ||
5978 | + background: #000; | ||
5979 | + opacity: 0.6; | ||
5980 | + cursor: pointer; | ||
5981 | + display: none; | ||
5982 | +} | ||
5983 | +.admin-gallery-photos-load-wr {} | ||
5984 | +.admin-gallery-photos-load-wr {} | ||
5985 | +.admin-gallery-photos-load-wr {} | ||
5986 | +.admin-gallery-photos-load-wr {} | ||
5987 | +.admin-gallery-photos-load-wr {} | ||
5988 | +.admin-gallery-photos-load-wr {} | ||
5989 | +.admin-gallery-photos-load-wr {} | ||
5990 | +.admin-gallery-photos-load-wr {} | ||
5991 | +.admin-gallery-photos-load-wr {} | ||
5992 | +.admin-gallery-photos-load-wr {} | ||
5993 | +.admin-gallery-photos-load-wr {} | ||
5994 | +.admin-gallery-photos-load-wr {} | ||
5962 | 5995 |
1.17 KB