tenebrous-sheets/templates/characters/new_character.html.tera

36 lines
990 B
Plaintext

{% extends "base" %}
{% block content %}
<div>
New character page.
{% if error_message %}
<p>Error: {{ error_message }}</p>
{% endif %}
<form action="/characters/new" method="post">
<div>
<label for="name">Name:</label>
<input id="name" name="name" type="text" value="{{ name }}" />
</div>
<div>
<label for="system">System:</label>
<select id="system" name="system">
{% for system in systems %}
{% if system == selected_system %}
<option value="{{ system }}" selected="true">{{ system }}</option>
{% else %}
<option value="{{ system }}">{{ system }}</option>
{% endif %}
{% endfor %}
</select>
</div>
<div>
<input type="submit" value="Create Character" />
</div>
</form>
</div>
{% endblock content %}