mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
basic import management page
This commit is contained in:
@@ -1,21 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load i18n %}
|
||||
{% load django_tables2 %}
|
||||
|
||||
{% block title %}{% trans 'Import Recipes' %}{% endblock %}
|
||||
{% block title %}{% trans 'Imported Recipes' %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h3>
|
||||
{% trans 'Import Recipes' %}
|
||||
<small class="text-muted">{% trans 'Manage all paths that should be imported' %}</small>
|
||||
</h3>
|
||||
<h3>{% trans 'Update imported Recipes' %}</h3>
|
||||
<br>
|
||||
<button class="btn btn-primary">Auto-Import all</button>
|
||||
<br>
|
||||
|
||||
<form method="POST" class="post-form">{% csrf_token %}
|
||||
{% crispy form %}
|
||||
</form>
|
||||
|
||||
{% render_table monitored_paths %}
|
||||
{% render_table imported_recipes %}
|
||||
|
||||
{% endblock %}
|
||||
21
cookbook/templates/batch/monitor.html
Normal file
21
cookbook/templates/batch/monitor.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends "base.html" %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load i18n %}
|
||||
{% load django_tables2 %}
|
||||
|
||||
{% block title %}{% trans 'Sync' %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h3>{% trans 'Manage watched Folders' %}</h3>
|
||||
|
||||
{% 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/>
|
||||
<form method="POST" class="post-form">{% csrf_token %}
|
||||
{% crispy form %}
|
||||
</form>
|
||||
|
||||
{% render_table monitored_paths %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user