parent
5b603b69bf
commit
e1be03f25a
9 changed files with 114 additions and 60 deletions
@ -1,15 +1,34 @@ |
|||||||
{% extends "templates/lilcity/index.html" %} |
{% extends "templates/lilcity/index.html" %} |
||||||
|
{% load static %} |
||||||
|
|
||||||
|
{% block head %} |
||||||
|
{{ block.super }} |
||||||
|
<style> |
||||||
|
.kit__photo { |
||||||
|
width: 140px; |
||||||
|
height: 140px; |
||||||
|
} |
||||||
|
</style> |
||||||
|
{% endblock head %} |
||||||
|
|
||||||
{% block pre_app_js %} |
{% block pre_app_js %} |
||||||
<script> |
<script> |
||||||
window.LIL_STORE.components['block-images'] = '../components/BlockImages.vue'; |
|
||||||
window.LIL_STORE._user_gallery_images = [{% for img in user.gallery.gallery_images.all %}{ |
window.LIL_STORE._user_gallery_images = [{% for img in user.gallery.gallery_images.all %}{ |
||||||
image_thumbnail_url: '{{ img.image_thumbnail_url }}', |
id: {{ img.id }}, |
||||||
image_id: {{ img.id }}, |
image_thumbnail_url: '{{ img.img.image_thumbnail.url }}', |
||||||
|
image_id: {{ img.img.id }}, |
||||||
},{% endfor %}]; |
},{% endfor %}]; |
||||||
</script> |
</script> |
||||||
|
<script src="{% static 'userGalleryEdit.js' %}"></script> |
||||||
{% endblock pre_app_js %} |
{% endblock pre_app_js %} |
||||||
|
|
||||||
{% block content %} |
{% block content %} |
||||||
<block-images :images="$root.store._user_gallery_images" :access-token="$root.store.accessToken"/> |
<div class="section section_gray"> |
||||||
|
<div class="section__center center center_sm"> |
||||||
|
<div> |
||||||
|
<block-images :images="$root.store._user_gallery_images" :access-token="$root.store.accessToken" no-title="1"/> |
||||||
|
</div> |
||||||
|
<a href="#" id="gallery-save" class="btn">Сохранить</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
|||||||
Loading…
Reference in new issue