mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-27 20:04:17 +00:00
49 lines
2.2 KiB
Django/Jinja
49 lines
2.2 KiB
Django/Jinja
{% extends "base.html.j2" %}
|
|
{% import "materialize/wtf.html.j2" as wtf %}
|
|
|
|
{% block page_content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<h1 id="title">{{ title }}</h1>
|
|
</div>
|
|
|
|
<div class="col s12">
|
|
<div class="card">
|
|
<form method="POST" enctype="multipart/form-data">
|
|
<div class="card-content">
|
|
{{ edit_profile_settings_form.hidden_tag() }}
|
|
<div class="row">
|
|
<div class="col s1"></div>
|
|
<div class="col s3">
|
|
{% if current_user.avatar %}
|
|
<img src="{{ url_for('profile.avatar_download', avatar_id=current_user.avatar.id) }}" alt="user-image" class="circle responsive-img">
|
|
{% else %}
|
|
<img src="{{ url_for('static', filename='images/user_avatar.png') }}" alt="user-image" class="circle responsive-img">
|
|
{% endif %}
|
|
{{wtf.render_field(edit_profile_settings_form.avatar, accept='image/jpeg, image/png, image/gif', class='file-path validate')}}
|
|
</div>
|
|
<div class="col s1"></div>
|
|
<div class="col s7">
|
|
{{ wtf.render_field(edit_profile_settings_form.username, material_icon='person') }}
|
|
{{ wtf.render_field(edit_profile_settings_form.email, material_icon='email') }}
|
|
{{ wtf.render_field(edit_profile_settings_form.full_name, material_icon='badge') }}
|
|
{{ wtf.render_field(edit_profile_settings_form.about_me, material_icon='description') }}
|
|
{{ wtf.render_field(edit_profile_settings_form.website, material_icon='laptop') }}
|
|
{{ wtf.render_field(edit_profile_settings_form.organization, material_icon='business') }}
|
|
{{ wtf.render_field(edit_profile_settings_form.location, material_icon='location_on') }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-action">
|
|
<div class="right-align">
|
|
{{ wtf.render_field(edit_profile_settings_form.submit, material_icon='send') }}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock page_content %}
|