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>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot class="buttons">
|
||||
<tfoot>
|
||||
{% block buttons %}
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<label for="addmore">{% translate "Add another" %}</label>
|
||||
|
@ -31,17 +32,16 @@
|
|||
{% if form.instance.adding %}checked{% endif %} />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="buttons">
|
||||
<td colspan="2">
|
||||
{% block buttons %}
|
||||
{% if not form.instance.adding %}
|
||||
<a class="del" href="{{ form.instance.get_delete_url }}">{% translate "Delete" %}</a>
|
||||
{% endif %}
|
||||
<input type="reset" value="{% translate "Reset" %}" />
|
||||
<input type="submit" value="{% translate "Save" %}" />
|
||||
{% endblock %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endblock %}
|
||||
</tfoot>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{% extends "main/form/base.html" %}
|
||||
{% load i18n %}
|
||||
{% block buttons %}
|
||||
<div class="buttons">
|
||||
<tr class="buttons">
|
||||
<td colspan="2">
|
||||
<input hidden value="{{ next }}" name="next" />
|
||||
<input type="reset" />
|
||||
<input type="submit" value="{% translate "Log in" %}" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{% extends "main/form/base.html" %}
|
||||
{% load i18n %}
|
||||
{% block buttons %}
|
||||
<div class="buttons">
|
||||
<tr class="buttons">
|
||||
<td colspan="2">
|
||||
<input type="reset" />
|
||||
<input type="submit" value="{% translate "Search" %}" />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue