gpp/port/templates/new_stay/new_stay-0.html

31 lines
827 B
HTML
Raw Normal View History

{% extends "index.html" %}
{% block form %}
2019-06-24 18:10:45 +02:00
<div class="search" id="search_boat">
{{ boat_search_form }}
{% if search_name %}
<label for="id_search_results_none">
<input type="radio"
name="search_results"
value="-1"
id="id_search_results_none"/>
None ( create a new boat )
</label>
{% endif %}
2019-06-24 18:10:45 +02:00
<input type="submit" value="Search boat" />
</div>
{% endblock %}
{% block formnew %}
2019-08-03 22:44:57 +02:00
<form action="{% url 'index:new_boat' %}" method="post" name="boat_add">
{% csrf_token %}
<div class="new hidden" id="new_boat">
<a
id="switch_boat_search"
href="#search_boat">
Switch to boat search
</a>
2019-06-24 18:10:45 +02:00
{{ boat_form }}
<input type="submit" value="Add boat" />
</div>
2019-06-24 18:10:45 +02:00
</form>
{% endblock %}