import process

This commit is contained in:
vabene1111
2018-05-06 22:12:40 +02:00
parent 8d4506da54
commit c9f0192a2c
8 changed files with 76 additions and 52 deletions

View File

@@ -0,0 +1,24 @@
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load i18n %}
{% block title %}{% trans 'Import new Recipe' %}{% endblock %}
{% block content %}
<h3>{% trans 'Import new Recipe' %}</h3>
<form action="." method="post">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
</form>
<script>
//converts multiselct in recipe edit to searchable multiselect
//shitty solution that needs to be redone at some point
$(document).ready(function () {
$('#id_keywords').select2();
});
</script>
{% endblock %}