mirror of https://github.com/logos-co/open-law.git
36 lines
2.1 KiB
HTML
36 lines
2.1 KiB
HTML
<!-- prettier-ignore -->
|
|
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<!-- component -->
|
|
<section>
|
|
<div class="w-full lg:w-4/12 px-4 mx-auto pt-6">
|
|
<div>
|
|
<!-- prettier-ignore -->
|
|
<div class="w-full lg:max-w-xl p-6 space-y-8 sm:p-8 bg-white rounded-lg shadow-xl dark:bg-gray-800">
|
|
<!-- prettier-ignore -->
|
|
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">Edit your profile</h2>
|
|
|
|
<!-- prettier-ignore -->
|
|
<form class="mt-8 space-y-6 from" role="form" action="{{ url_for('user.profile') }}" method="post" enctype="multipart/form-data">
|
|
{{ form.hidden_tag() }}
|
|
<div>
|
|
<!-- prettier-ignore -->
|
|
{{form.name.label(class='block mb-2 text-sm font-medium text-gray-900 dark:text-white')}}
|
|
{{form.name(autocomplete="off", class='bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500')}}
|
|
</div>
|
|
<!-- prettier-ignore -->
|
|
<div class="mb-3">
|
|
{{form.avatar_img.label(class='block mb-2 text-sm font-medium text-gray-900 dark:text-white')}}
|
|
{{form.avatar_img(type='file', class='bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500', id="avatar_img",
|
|
value=current_user.avatar_img if current_user.avatar_img else "")}}
|
|
</div>
|
|
<button type="submit" class="w-full px-5 py-3 text-base font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 sm:w-auto dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Save changes</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% block right_sidebar %}{% endblock %}
|
|
<!-- prettier-ignore -->
|
|
{% endblock %}
|