mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 15:48:27 -05:00
import process
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
<form method="POST" class="post-form">{% csrf_token %}
|
||||
{% crispy form %}
|
||||
<input type="submit" value="Submit" class="btn btn-success">
|
||||
</form>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -1,19 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% load django_tables2 %}
|
||||
|
||||
{% block title %}{% trans 'Imported Recipes' %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h3>{% trans 'Imported Recipes' %}</h3>
|
||||
<br>
|
||||
<form action="{% url 'batch_import_all' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="{% trans 'import all' %}" class="btn btn-primary"/>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
{% render_table imported_recipes %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -16,7 +16,9 @@
|
||||
<br/>
|
||||
<form method="POST" class="post-form">{% csrf_token %}
|
||||
{% crispy form %}
|
||||
<input type="submit" value="Submit" class="btn btn-success">
|
||||
</form>
|
||||
<br/><br/>
|
||||
|
||||
{% render_table monitored_paths %}
|
||||
|
||||
|
||||
24
cookbook/templates/forms/edit_import_recipe.html
Normal file
24
cookbook/templates/forms/edit_import_recipe.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user