cleand up form media

This commit is contained in:
vabene1111
2018-05-16 00:14:54 +02:00
parent 890956e8a1
commit f2edbbcdd6
8 changed files with 38 additions and 34 deletions

View File

@@ -5,6 +5,10 @@
{% block title %}{% trans 'New' %} - {{ title }}{% endblock %}
{% block extra_head %}
{{ form.media }}
{% endblock %}
{% block content %}
<h3>{% trans 'New' %} {{ title }} </h3>
@@ -15,15 +19,4 @@
<input type="submit" value="Submit" class="btn btn-success">
</form>
<script>
//TODO clean this up
//converts multiselct in recipe edit to searchable multiselect
//shitty solution that needs to be redone at some point
$(document).ready(function () {
$('#id_keywords').select2();
$('#id_icon').emojioneArea();
});
</script>
{% endblock %}