8 lines
465 B
Twig
8 lines
465 B
Twig
{% 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="Yuuno.Image.Set(this.files[0], '{{ url }}', '{{ query }}')">
|
|
</label>
|
|
<button class="uploader__button uploader__button--delete fa fa-trash" onclick="Yuuno.Image.Delete('{{ url }}', '{{ query }}')"></button>
|
|
</div>
|
|
{% endmacro %}
|