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,27 +21,27 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot class="buttons">
|
<tfoot>
|
||||||
<tr>
|
{% block buttons %}
|
||||||
<td colspan="2">
|
<tr>
|
||||||
<label for="addmore">{% translate "Add another" %}</label>
|
<td colspan="2">
|
||||||
<input type="checkbox"
|
<label for="addmore">{% translate "Add another" %}</label>
|
||||||
name="addmore"
|
<input type="checkbox"
|
||||||
id="addmore"
|
name="addmore"
|
||||||
{% if form.instance.adding %}checked{% endif %} />
|
id="addmore"
|
||||||
</td>
|
{% if form.instance.adding %}checked{% endif %} />
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td colspan="2">
|
<tr class="buttons">
|
||||||
{% block buttons %}
|
<td colspan="2">
|
||||||
{% 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">
|
||||||
<input hidden value="{{ next }}" name="next" />
|
<td colspan="2">
|
||||||
<input type="reset" />
|
<input hidden value="{{ next }}" name="next" />
|
||||||
<input type="submit" value="{% translate "Log in" %}" />
|
<input type="reset" />
|
||||||
</div>
|
<input type="submit" value="{% translate "Log in" %}" />
|
||||||
|
</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">
|
||||||
<input type="submit" value="{% translate "Search" %}" />
|
<td colspan="2">
|
||||||
</div>
|
<input type="reset" />
|
||||||
|
<input type="submit" value="{% translate "Search" %}" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue