import all

This commit is contained in:
vabene1111
2018-03-31 00:17:50 +02:00
parent b7fb7e8e9b
commit 69e22c743a
5 changed files with 25 additions and 7 deletions

View File

@@ -8,7 +8,10 @@
<h3>{% trans 'Update imported Recipes' %}</h3>
<br>
<button class="btn btn-primary">Auto-Import all</button>
<form action="{% url 'batch_import_all' %}" method="post">
{% csrf_token %}
<input type="submit" value="{% trans 'Auto import all' %}" class="btn btn-primary"/>
</form>
<br>
{% render_table imported_recipes %}

View File

@@ -12,6 +12,8 @@
{% trans 'On this Page you can manage all DropBox folder locations that should be monitored and synced' %} <br/>
{% trans 'The path must be in the following format' %} <code>/Folder/RecipesFolder</code>
<br/>
<a href="{% url 'api_dropbox_sync' %}" class="btn btn-success">{% trans 'Sync Now!' %}</a>
<br/>
<form method="POST" class="post-form">{% csrf_token %}
{% crispy form %}
</form>