basic custom media working

This commit is contained in:
vabene1111
2018-05-15 23:57:53 +02:00
parent 0acecba367
commit 890956e8a1
7 changed files with 36 additions and 12 deletions

View File

@@ -4,6 +4,10 @@
{% block title %}{% trans 'Edit' %} - {{ title }}{% endblock %}
{% block extra_head %}
{{ form.media }}
{% endblock %}
{% block content %}
<h3>{% trans 'Edit' %} {{ title }}</h3>
@@ -14,14 +18,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 %}