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

38 lines
1.1 KiB
Plaintext
Raw Normal View History

{% extends "base" %}
{% block content %}
<script src="https://cdn.jsdelivr.net/npm/protobufjs@6.10.2/dist/protobuf.min.js"></script>
<script type="text/javascript" src="/scripts/characters/new-character.js"></script>
<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 %}