add missing templates
This commit is contained in:
parent
131d8d7033
commit
d3871bb113
|
@ -0,0 +1,33 @@
|
|||
{% extends 'cfp/admin/base.html' %}
|
||||
|
||||
{% load bootstrap3 i18n %}
|
||||
|
||||
{% block categoriestab %} class="active"{% endblock %}
|
||||
|
||||
{% block css %}
|
||||
{{ block.super }}
|
||||
{{ form.media.css }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>
|
||||
{% if tag %}
|
||||
{% trans "Edit category" %}
|
||||
{% else %}
|
||||
{% trans "New category" %}
|
||||
{% endif %}
|
||||
</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
{% include "_form.html" %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_end %}
|
||||
{{ block.super }}
|
||||
{{ form.media.js }}
|
||||
{% endblock %}
|
|
@ -0,0 +1,26 @@
|
|||
{% extends 'cfp/admin/base.html' %}
|
||||
|
||||
{% load bootstrap3 cfp_tags i18n %}
|
||||
|
||||
{% block categoriestab %} class="active"{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>{% trans "Categories" %}</h1>
|
||||
|
||||
<p><a href="{% url 'category-add' %}" class="btn btn-success">{% trans "Add a category" %}</a><p>
|
||||
|
||||
<ul class="list-group">
|
||||
{% for category in talkcategory_list %}
|
||||
<div class="list-group-item">
|
||||
<a href="{{ category.get_filter_url }}" class="btn btn-primary">{{ category.name }}</a>
|
||||
<a href="{% url 'category-edit' category.pk %}" class="btn btn-success pull-right">{% bootstrap_icon "pencil" %} {% trans "Edit" %}</a>
|
||||
</div>
|
||||
{% empty %}
|
||||
<li class="list-group-item">
|
||||
<i>{% trans "No categories." %}</li>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
|
@ -0,0 +1,33 @@
|
|||
{% extends 'cfp/admin/base.html' %}
|
||||
|
||||
{% load bootstrap3 i18n %}
|
||||
|
||||
{% block tagstab %} class="active"{% endblock %}
|
||||
|
||||
{% block css %}
|
||||
{{ block.super }}
|
||||
{{ form.media.css }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>
|
||||
{% if tag %}
|
||||
{% trans "Edit tag" %}
|
||||
{% else %}
|
||||
{% trans "New tag" %}
|
||||
{% endif %}
|
||||
</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
{% include "_form.html" %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_end %}
|
||||
{{ block.super }}
|
||||
{{ form.media.js }}
|
||||
{% endblock %}
|
|
@ -0,0 +1,26 @@
|
|||
{% extends 'cfp/admin/base.html' %}
|
||||
|
||||
{% load bootstrap3 cfp_tags i18n %}
|
||||
|
||||
{% block tagstab %} class="active"{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h1>{% trans "Tags" %}</h1>
|
||||
|
||||
<p><a href="{% url 'tag-add' %}" class="btn btn-success">{% trans "Add a tag" %}</a><p>
|
||||
|
||||
<ul class="list-group">
|
||||
{% for tag in tag_list %}
|
||||
<div class="list-group-item">
|
||||
<a href="{{ tag.get_filter_url }}" class="btn" style="{{ tag.style }}">{{ tag.name }}</a>
|
||||
<a href="{% url 'tag-edit' tag.slug %}" class="btn btn-success pull-right">{% bootstrap_icon "pencil" %} {% trans "Edit" %}</a>
|
||||
</div>
|
||||
{% empty %}
|
||||
<li class="list-group-item">
|
||||
<i>{% trans "No tags." %}</li>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue