From 2d6738ad30d40f48285c77e65ec022a4922c445e Mon Sep 17 00:00:00 2001 From: icemate Date: Wed, 17 Feb 2016 15:08:25 +0200 Subject: [PATCH] tokar commit --- frontend/views/accounts/_gallery_form.php | 27 +++++++++++++++++---------- frontend/web/css/style.css | 35 ++++++++++++++++++++++++++++++++++- frontend/web/images/galeryclosebig.png | Bin 0 -> 1195 bytes 3 files changed, 51 insertions(+), 11 deletions(-) create mode 100644 frontend/web/images/galeryclosebig.png diff --git a/frontend/views/accounts/_gallery_form.php b/frontend/views/accounts/_gallery_form.php index 3577c86..1e29a62 100644 --- a/frontend/views/accounts/_gallery_form.php +++ b/frontend/views/accounts/_gallery_form.php @@ -38,19 +38,26 @@ 'name' => 'Загрузить главное фото', ]); ?> - $gallery, - 'field' => 'photo', - 'width' => 152, - 'height' => 108, - 'multi' => true, - 'gallery' => $gallery->photo, - 'name' => 'Загрузить фото галереи', -]); ?> + - +
+
+ 'input-blocks-wrapper button']) ?> +
+
+ end(); diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index 5ecd742..ae8d53e 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -5958,5 +5958,38 @@ a {color: #0072bc} .input-blocks-wrapper.amin-team-foto .admin-ava-wr{width: auto; height: auto;background: none; display: block; text-align: left} .admin-gallery-photo-edit {margin-top: 3px} - +.admin-gallery-photos-load-wr .gallery_image{float: left; position: relative; width: 152px; height: 108px; margin-right: 20px; margin-top: 20px} +.admin-gallery-photos-load-wr .gallery_image img{width: 100%; height: 100%} +.admin-gallery-photos-load-wr .gallery_image:hover .glyphicon {display: block} +.admin-gallery-photos-load-wr .glyphicon-trash:before { + content: '' !important; + width: 21px; + height: 21px; + cursor: pointer; + background: #fff url("/images/galeryclosebig.png") 50% 50% no-repeat; + display: block; +} +.admin-gallery-photos-load-wr .glyphicon { + position: absolute; + top: 0; + right: 0; + width: 100%; + height: 100%; + background: #000; + opacity: 0.6; + cursor: pointer; + display: none; +} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} +.admin-gallery-photos-load-wr {} diff --git a/frontend/web/images/galeryclosebig.png b/frontend/web/images/galeryclosebig.png new file mode 100644 index 0000000..a2ec6f3 Binary files /dev/null and b/frontend/web/images/galeryclosebig.png differ -- libgit2 0.21.4