more nice things

This commit is contained in:
vabene1111
2018-02-05 23:59:31 +01:00
parent ede7ddac0b
commit 59641e1af6
10 changed files with 220 additions and 164 deletions

View File

@@ -31,14 +31,26 @@
<a class="nav-link" href="{% url 'index' %}">{% trans 'Cookbook' %}<span
class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'new_recipe' %}">{% trans 'New Recipe' %}</a>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
{% trans 'New' %}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="{% url 'new_recipe' %}">{% trans 'Recipe' %}</a>
<a class="dropdown-item" href="{% url 'new_category' %}">{% trans 'Category' %}</a>
<a class="dropdown-item" href="{% url 'new_keyword' %}">{% trans 'Keyword' %}</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'new_category' %}">{% trans 'New Category' %}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'new_keyword' %}">{% trans 'New Keyword' %}</a>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
{% trans 'Manage Data' %}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="{% url 'batch_import' %}">{% trans 'Import' %}</a>
<a class="dropdown-item" href="{% url 'batch_category' %}">{% trans 'Mass Category' %}</a>
</div>
</li>
</ul>

View File

@@ -0,0 +1,19 @@
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load i18n %}
{% load django_tables2 %}
{% block title %}{% trans 'Batch edit Category' %}{% endblock %}
{% block content %}
<h3>
{% trans 'Batch edit Category' %}
<small class="text-muted">{% trans 'Add the specified category to all recipes containing a word' %}</small>
</h3>
<form method="POST" class="post-form">{% csrf_token %}
{% crispy form %}
</form>
{% endblock %}

View File

@@ -2,10 +2,10 @@
{% load i18n %}
{% block table-wrapper %}
<div class="row">
<div class="col">
<div class="table-responsive">
{% block table %}
<table {% if table.attrs %}
{{ table.attrs.as_html }}{% else %}class="table table-bordered table-hover"{% endif %}>
{{ table.attrs.as_html }}{% else %}class="table table-bordered table-lg"{% endif %}>
{% block table.thead %}
{% if table.show_header %}
<thead>