user-settings.html
HTML document, ASCII text
1{% extends "default.html" %} 2{% block title %} 3{% trans %}User settings{% endtrans %} 4{% endblock %} 5{% block breadcrumbs %} 6<li><a href="/settings">{% trans %}Settings{% endtrans %}</a></li> 7{% endblock %} 8{% block content %} 9<x-frame style="--width: 768px;"> 10<h1>{% trans %}User settings{% endtrans %}</h1> 11<article class="card"> 12<section class="card-main"> 13<h2>{% trans %}Basic information{% endtrans %}</h2> 14<p>{% trans username=user.username %}Username: {{ username }}{% endtrans %}</p> 15<x-buttonbox> 16<a class="button" href="password">{% trans %}Change password{% endtrans %}</a> 17</x-buttonbox> 18</section> 19</article> 20<article class="card"> 21<section class="card-main"> 22<h2>{% trans %}Avatar{% endtrans %}</h2> 23<x-vbox> 24<label for="change-avatar" id="change-avatar-label" data-change-label="{% trans %}Change{% endtrans %}"> 25<img src="/info/{{ user.username }}/avatar" alt="{{ user.username }}" class="avatar" style="width: 100%;"> 26</label> 27<form method="post" enctype="multipart/form-data" action="/info/{{ user.username }}/avatar"> 28<input type="file" name="avatar" accept="image/*" style="display: none;" id="change-avatar"> 29<button type="submit">{% trans %}Update{% endtrans %}</button> 30</form> 31</x-vbox> 32</section> 33</article> 34<article class="card"> 35<section class="card-main"> 36<form method="post"> 37<h2>{% trans %}Profile{% endtrans %}</h2> 38<x-vbox> 39<x-vbox class="nopad"> 40<label for="email">{% trans %}Email address{% endtrans %}</label> 41<input id="email" name="email" type="email" value="{% if user.email %}{{ user.email }}{% endif %}"> 42</x-vbox> 43<x-vbox class="nopad"> 44<label><input name="showmail" value="showmail" {% if user.show_mail %}checked{% endif %} type="checkbox">{% trans %}Show email on my profile{% endtrans %}</label> 45</x-vbox> 46<x-vbox class="nopad"> 47<label for="displayname">{% trans %}Friendly name{% endtrans %}</label> 48<input id="displayname" name="displayname" value="{% if user.display_name %}{{ user.display_name }}{% endif %}" placeholder="{{ user.username }}"> 49</x-vbox> 50<x-vbox class="nopad"> 51<label for="url">{% trans %}Link to your website{% endtrans %}</label> 52<input id="url" name="url" value="{% if user.url %}{{ user.url }}{% endif %}" type="url"> 53</x-vbox> 54<x-vbox class="nopad"> 55<x-hbox style="width: 100%; align-items: space-between;"> 56<x-vbox style="flex-grow: 1;" class="nopad"> 57<label for="company">{% trans %}Company or school{% endtrans %}</label> 58<input id="company" name="company" value="{% if user.company %}{{ user.company }}{% endif %}"> 59</x-vbox> 60<x-vbox style="flex-grow: 1;" class="nopad"> 61<label for="companyurl">{% trans %}Link to the company's website{% endtrans %}</label> 62<input id="companyurl" name="companyurl" value="{% if user.company_url %}{{ user.company_url }}{% endif %}" type="url"> 63</x-vbox> 64</x-hbox> 65</x-vbox> 66<x-vbox class="nopad"> 67<label for="location">{% trans %}Location{% endtrans %}</label> 68<input id="location" name="location" value="{% if user.location %}{{ user.location }}{% endif %}" type="text"> 69</x-vbox> 70<x-vbox class="nopad"> 71<label for="bio">{% trans %}Bio{% endtrans %}</label> 72<textarea id="bio" name="bio" rows="4">{% if user.bio %}{{ user.bio }}{% endif %}</textarea> 73</x-vbox> 74<button type="submit">{% trans %}Update profile{% endtrans %}</button> 75</x-vbox> 76</form> 77</section> 78</article> 79</x-frame> 80{% endblock %} 81