calebasse / calebasse / templates / calebasse / simple-form.html @ 74f4567d
| 1 |
{% extends "calebasse/base.html" %}
|
|---|---|
| 2 |
|
| 3 |
{% block appbar %}
|
| 4 |
<h2></h2>
|
| 5 |
<a href=".."></a> |
| 6 |
{% endblock %}
|
| 7 |
|
| 8 |
{% block content %}
|
| 9 |
<form method="post"> |
| 10 |
<div id="form-content"> |
| 11 |
{% csrf_token %}
|
| 12 |
{{ form.as_p }}
|
| 13 |
</div>
|
| 14 |
{% block buttons %}
|
| 15 |
<button>Modifier</button> |
| 16 |
{% endblock %}
|
| 17 |
<a href="..">{% block back-link %}{% endblock %}</a> |
| 18 |
</form>
|
| 19 |
{% endblock %}
|
| 20 |
|
| 21 |
{% block page-end %}
|
| 22 |
<script>
|
| 23 |
$('form button').prop('disabled', 'true'); |
| 24 |
$(function () { |
| 25 |
$('form input, form select').on('change', function () { |
| 26 |
$('form button').enable(); |
| 27 |
})
|
| 28 |
});
|
| 29 |
</script>
|
| 30 |
{% endblock %}
|
| 31 |
|
| 32 |
|
- « Previous
- 1
- 2
- 3
- 4
- Next »