translateable buttons in editor
This commit is contained in:
parent
84dc7986a9
commit
da8d29766c
2 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,10 @@
|
|||
{% load bootstrap3 %}
|
||||
{% load i18n %}
|
||||
|
||||
<a class="btn btn-default btn-sm pull-right" accesskey="n" href="{% url 'editor.section.create' %}">{% trans 'New Section' %}</a>
|
||||
<a class="btn btn-default btn-sm pull-right" accesskey="n" href="{% url 'editor.section.create' %}">
|
||||
{% trans 'Section' as model_title %}
|
||||
{% blocktrans %}New {{ model_title }}{% endblocktrans %}
|
||||
</a>
|
||||
<h3>{% trans 'Sections' %}</h3>
|
||||
<div class="list-group">
|
||||
{% for s in sections %}
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
{% load i18n %}
|
||||
{% include 'editor/fragment_sections.html' %}
|
||||
|
||||
<a class="btn btn-default btn-sm pull-right" accesskey="e" href="{% url 'editor.section.edit' pk=section.id %}">{% trans 'Edit Section' %}</a>
|
||||
<a class="btn btn-default btn-sm pull-right" accesskey="e" href="{% url 'editor.section.edit' pk=section.id %}">
|
||||
{% trans 'Section' as model_title %}
|
||||
{% blocktrans %}Edit {{ model_title }}{% endblocktrans %}
|
||||
</a>
|
||||
<h3>{{ section.title }}</h3>
|
||||
<p>
|
||||
<a href="{% url 'editor.index' %}">« {% trans 'back to overview' %}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue