2020-12-08 22:26:47 +00:00
|
|
|
{% extends "base" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div>
|
|
|
|
New character page.
|
|
|
|
|
2020-12-09 21:25:31 +00:00
|
|
|
{% if error_message %}
|
|
|
|
<p>Error: {{ error_message }}</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-12-08 22:26:47 +00:00
|
|
|
<form action="/characters/new" method="post">
|
|
|
|
<div>
|
|
|
|
<label for="name">Name:</label>
|
2020-12-09 21:25:31 +00:00
|
|
|
<input id="name" name="name" type="text" value="{{ name }}" />
|
2020-12-08 22:26:47 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label for="system">System:</label>
|
|
|
|
<select id="system" name="system">
|
2020-12-09 21:25:31 +00:00
|
|
|
{% for system in systems %}
|
|
|
|
{% if system == selected_system %}
|
|
|
|
<option value="{{ system }}" selected="true">{{ system }}</option>
|
|
|
|
{% else %}
|
|
|
|
<option value="{{ system }}">{{ system }}</option>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2020-12-08 22:26:47 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<input type="submit" value="Create Character" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock content %}
|