Fix add more checkbox in login and search form
This commit is contained in:
parent
751ddba463
commit
c77b88c2f7
3 changed files with 29 additions and 24 deletions
|
@ -21,7 +21,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot class="buttons">
|
<tfoot>
|
||||||
|
{% block buttons %}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<label for="addmore">{% translate "Add another" %}</label>
|
<label for="addmore">{% translate "Add another" %}</label>
|
||||||
|
@ -31,17 +32,16 @@
|
||||||
{% if form.instance.adding %}checked{% endif %} />
|
{% if form.instance.adding %}checked{% endif %} />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr class="buttons">
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
{% block buttons %}
|
|
||||||
{% if not form.instance.adding %}
|
{% if not form.instance.adding %}
|
||||||
<a class="del" href="{{ form.instance.get_delete_url }}">{% translate "Delete" %}</a>
|
<a class="del" href="{{ form.instance.get_delete_url }}">{% translate "Delete" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<input type="reset" value="{% translate "Reset" %}" />
|
<input type="reset" value="{% translate "Reset" %}" />
|
||||||
<input type="submit" value="{% translate "Save" %}" />
|
<input type="submit" value="{% translate "Save" %}" />
|
||||||
{% endblock %}
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endblock %}
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
{% extends "main/form/base.html" %}
|
{% extends "main/form/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block buttons %}
|
{% block buttons %}
|
||||||
<div class="buttons">
|
<tr class="buttons">
|
||||||
|
<td colspan="2">
|
||||||
<input hidden value="{{ next }}" name="next" />
|
<input hidden value="{{ next }}" name="next" />
|
||||||
<input type="reset" />
|
<input type="reset" />
|
||||||
<input type="submit" value="{% translate "Log in" %}" />
|
<input type="submit" value="{% translate "Log in" %}" />
|
||||||
</div>
|
</td>
|
||||||
|
</tr>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
{% extends "main/form/base.html" %}
|
{% extends "main/form/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block buttons %}
|
{% block buttons %}
|
||||||
<div class="buttons">
|
<tr class="buttons">
|
||||||
|
<td colspan="2">
|
||||||
|
<input type="reset" />
|
||||||
<input type="submit" value="{% translate "Search" %}" />
|
<input type="submit" value="{% translate "Search" %}" />
|
||||||
</div>
|
</td>
|
||||||
|
</tr>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue