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/user/profile_macros.twig

9 lines
465 B
Twig
Raw Normal View History

2016-12-18 22:00:24 +00:00
{% macro profile_image_changer(url, query) %}
<div class="uploader">
<label class="uploader__button uploader__button--change fa fa-edit">
2016-12-23 19:18:02 +00:00
<input type="file" class="uploader__change" onchange="Yuuno.Image.Set(this.files[0], '{{ url }}', '{{ query }}')">
2016-12-18 22:00:24 +00:00
</label>
2016-12-23 19:18:02 +00:00
<button class="uploader__button uploader__button--delete fa fa-trash" onclick="Yuuno.Image.Delete('{{ url }}', '{{ query }}')"></button>
2016-12-18 22:00:24 +00:00
</div>
{% endmacro %}