This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/views/yuuno/macros.twig

9 lines
466 B
Twig
Raw Normal View History

2016-12-11 02:12:43 +00:00
{% macro profile_image_changer(url, query) %}
<div class="uploader">
<label class="uploader__button uploader__button--change fa fa-edit">
<input type="file" class="uploader__change" onchange="handleImageChange(this.files[0], '{{ url }}', '{{ query }}')">
</label>
<button class="uploader__button uploader__button--delete fa fa-trash" onclick="handleImageDelete('{{ url }}', '{{ query }}')"></button>
</div>
{% endmacro %}