9 lines
466 B
Twig
9 lines
466 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="handleImageChange(this.files[0], '{{ url }}', '{{ query }}')">
|
||
|
</label>
|
||
|
<button class="uploader__button uploader__button--delete fa fa-trash" onclick="handleImageDelete('{{ url }}', '{{ query }}')"></button>
|
||
|
</div>
|
||
|
{% endmacro %}
|