mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
more nice things
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
19
cookbook/templates/batch/category.html
Normal file
19
cookbook/templates/batch/category.html
Normal 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 %}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user