gnu-social/templates/settings/avatar.html.twig

24 lines
681 B
Twig
Raw Normal View History

{% extends 'settings/profile.html.twig' %}
{% block title %}Avatar Settings{% endblock %}
{% block stylesheets %}
2021-04-30 02:51:03 +01:00
{{ parent() }}
<link href="{{ asset('assets/css/cropperjs/cropper.css') }}" rel="stylesheet">
<script src="{{ asset('assets/javascript/cropperjs/cropper.js') }}"></script>
{% endblock %}
{% block form %}
2021-04-30 02:51:03 +01:00
<div class='form'>
<h1>Settings / Profile</h1>
2021-04-30 02:51:03 +01:00
{{ form(avatar) }}
<div id="img-container">
<img id="img-cropped">
</div>
</div>
{% endblock form %}
{% block javascripts %}
2021-04-30 02:51:03 +01:00
<script type="text/javascript" src="{{ asset('assets/javascript/cropping.js') }}"></script>
{% endblock javascripts %}