mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
57 lines
2.5 KiB
Django/Jinja
57 lines
2.5 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 s5">
|
|
<div class="row">
|
|
<div class="col s1"></div>
|
|
<div class="col s10">
|
|
{% if current_user.avatar %}
|
|
<img src="{{ url_for('profile.avatar_download', user_id=user.id, 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 %}
|
|
</div>
|
|
<div class="col s1"></div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col s12">
|
|
{{wtf.render_field(edit_profile_settings_form.avatar, accept='image/jpeg, image/png, image/gif', placeholder="Choose an image file")}}
|
|
</div>
|
|
</div>
|
|
</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 %}
|