Private
Public Access
1
0

Solves #536 Image upload possible directly in Manual

This commit is contained in:
Sander Roosendaal
2020-04-29 20:56:00 +02:00
parent f556254aa6
commit 2a0b0dd7bf
2 changed files with 31 additions and 5 deletions

View File

@@ -22,12 +22,12 @@ $( document ).ready(function() {
|| $(this).val() == 'churchboat'
) {
$('#id_boattype').toggle(true);
} else {
} else {
$('#id_boattype').toggle(false);
$('#id_boattype').val('1x');
$('#id_boattype').val('1x');
}
});
$('#id_workouttype').change();
$('#id_workouttype').change();
});
</script>
{% endblock %}
@@ -41,13 +41,17 @@ $('#id_workouttype').change();
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<form id="importantform"
enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
{{ metricsform.as_table }}
</table>
Optional, add image (PM screenshot):
<table>
{{ iform.as_table }}
</table>
{% csrf_token %}
<p>
<input class="button green" type="submit" value="Save">
@@ -56,7 +60,7 @@ $('#id_workouttype').change();
</li>
</ul>
{% endblock %}