mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-07 05:03:18 +00:00
Fix forms
This commit is contained in:
@ -47,7 +47,7 @@
|
||||
{{ wtf.render_field(form.description, material_icon='description') }}
|
||||
</div>
|
||||
<div class="col s12 l9">
|
||||
{{ wtf.render_field(form.images, accept='image/jpeg, image/png, image/tiff', class_='file-setup-pipeline-color darken', placeholder='Choose JPEG, PNG or TIFF files') }}
|
||||
{{ wtf.render_field(form.images, accept='image/jpeg, image/png, image/tiff', placeholder='Choose JPEG, PNG or TIFF files') }}
|
||||
</div>
|
||||
<div class="col s12 l3">
|
||||
{{ wtf.render_field(form.version, material_icon='apps') }}
|
||||
@ -63,3 +63,18 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endblock page_content %}
|
||||
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script>
|
||||
function initPage() {
|
||||
let createJobFormImagesElement = document.querySelector('#{{ form.images.id }}');
|
||||
createJobFormImagesElement.parentElement.classList.add('service-color', 'darken');
|
||||
|
||||
let createJobFormSubmitElement = document.querySelector('#{{ form.submit.id }}');
|
||||
createJobFormSubmitElement.classList.add('service-color', 'darken');
|
||||
};
|
||||
|
||||
initPage();
|
||||
</script>
|
||||
{% endblock scripts %}
|
||||
|
Reference in New Issue
Block a user