2019-06-23 14:42:06 +02:00
|
|
|
{% extends "index.html" %}
|
|
|
|
{% block form %}
|
2019-06-24 18:10:45 +02:00
|
|
|
<div class="search" id="search_boat">
|
2019-06-23 14:42:06 +02:00
|
|
|
{{ boat_search_form }}
|
2019-08-03 19:32:58 +02:00
|
|
|
{% 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 %}
|
2019-06-23 14:42:06 +02:00
|
|
|
<div class="new hidden" id="new_boat">
|
2019-08-03 19:32:58 +02:00
|
|
|
<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" />
|
2019-06-23 14:42:06 +02:00
|
|
|
</div>
|
2019-06-24 18:10:45 +02:00
|
|
|
</form>
|
2019-06-23 14:42:06 +02:00
|
|
|
{% endblock %}
|