nopaque/app/templates/profile/edit_profile.html.j2

57 lines
2.5 KiB
Plaintext
Raw Normal View History

2022-11-30 13:36:42 +00:00
{% extends "base.html.j2" %}
{% import "materialize/wtf.html.j2" as wtf %}
{% block page_content %}
<div class="container">
<div class="row">
<div class="col s12">
2022-12-05 08:40:02 +00:00
<h1 id="title">{{ title }}</h1>
</div>
2022-11-30 13:36:42 +00:00
<div class="col s12">
2022-12-05 08:40:02 +00:00
<div class="card">
<form method="POST" enctype="multipart/form-data">
2022-11-30 13:36:42 +00:00
<div class="card-content">
2022-12-05 08:40:02 +00:00
{{ edit_profile_settings_form.hidden_tag() }}
2022-11-30 13:36:42 +00:00
<div class="row">
2022-12-05 15:25:54 +00:00
<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>
2022-11-30 13:36:42 +00:00
</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>
2022-12-05 08:40:02 +00:00
</form>
</div>
2022-11-30 13:36:42 +00:00
</div>
</div>
</div>
{% endblock page_content %}