add template for profile update form

This commit is contained in:
glyph 2022-02-11 10:32:59 +02:00
parent 68c926609e
commit fe1da62058
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{%- extends "nav" -%}
{%- block card %}
{# ASSIGN VARIABLES #}
{# ---------------- #}
<!-- SSB PROFILE UPDATE FORM -->
<div class="card center">
<form id="profileInfo" class="center" action="/scuttlebutt/profile/update" method="post">
<div style="display: flex; flex-direction: column">
<label for="name" class="label-small font-gray">NAME</label>
<input style="margin-bottom: 1rem;" type="text" id="name" name="new_name" placeholder="Choose a name for your profile..." value="{{ name }}">
<label for="description" class="label-small font-gray">DESCRIPTION</label>
<textarea id="description" class="message-input" style="margin-bottom: 1rem;" name="new_description" placeholder="Write a description for your profile...">{{ description }}</textarea>
</div>
<input type="hidden" name="current_name" value="{{ name }}">
<input type="hidden" name="current_description" value="{{ description }}">
<div id="buttonDiv">
<input id="updateProfile" class="button button-primary center" title="Publish" type="submit" value="Publish">
<a class="button button-secondary center" href="/scuttlebutt/profile" title="Cancel">Cancel</a>
</div>
</form>
<!-- FLASH MESSAGE -->
{% include "snippets/flash_message" %}
</div>
{%- endblock card -%}