templates: update after merging branch 118-design
This commit is contained in:
		@ -3,18 +3,6 @@
 | 
				
			|||||||
{% load i18n aircox %}
 | 
					{% load i18n aircox %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block top-nav-tools %}
 | 
					 | 
				
			||||||
{% has_perm page page.program.change_permission_codename simple=True as can_edit %}
 | 
					 | 
				
			||||||
{% if can_edit %}
 | 
					 | 
				
			||||||
<a class="navbar-item" href="{% url 'episode-edit' page.pk %}" target="_self">
 | 
					 | 
				
			||||||
    <span class="icon is-small">
 | 
					 | 
				
			||||||
        <i class="fa fa-pen"></i>
 | 
					 | 
				
			||||||
    </span> 
 | 
					 | 
				
			||||||
    <span>{% translate "Edit" %}</span>
 | 
					 | 
				
			||||||
</a>
 | 
					 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
{% endblock %}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
{% block content-container %}
 | 
					{% block content-container %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<a-episode :page="{title: "{{ page.title }}", podcasts: {{ object.podcasts|json }}}">
 | 
					<a-episode :page="{title: "{{ page.title }}", podcasts: {{ object.podcasts|json }}}">
 | 
				
			||||||
 | 
				
			|||||||
@ -9,16 +9,11 @@
 | 
				
			|||||||
{% block init-scripts %}
 | 
					{% block init-scripts %}
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block top-nav-tools %}
 | 
					{% block comments %}
 | 
				
			||||||
<a class="navbar-item" href="{% url 'episode-detail' object.slug %}" target="_self">
 | 
					 | 
				
			||||||
    <span class="icon is-small">
 | 
					 | 
				
			||||||
        <i class="fa fa-eye"></i>
 | 
					 | 
				
			||||||
    </span> 
 | 
					 | 
				
			||||||
    <span>{% translate "View" %}</span>
 | 
					 | 
				
			||||||
</a>
 | 
					 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block main %}
 | 
					{% block content-container %}
 | 
				
			||||||
 | 
					<section class="container">
 | 
				
			||||||
<form method="post" enctype="multipart/form-data">{% csrf_token %}
 | 
					<form method="post" enctype="multipart/form-data">{% csrf_token %}
 | 
				
			||||||
    <table>
 | 
					    <table>
 | 
				
			||||||
        {{ form.as_table }}
 | 
					        {{ form.as_table }}
 | 
				
			||||||
@ -27,4 +22,5 @@
 | 
				
			|||||||
    <br/>
 | 
					    <br/>
 | 
				
			||||||
    <input type="submit" value="Update" class="button is-success">
 | 
					    <input type="submit" value="Update" class="button is-success">
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
 | 
					</section>
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
				
			|||||||
@ -10,21 +10,6 @@ Context:
 | 
				
			|||||||
- related_url: url to the full list of related_objects
 | 
					- related_url: url to the full list of related_objects
 | 
				
			||||||
{% endcomment %}
 | 
					{% endcomment %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block top-nav-tools %}
 | 
					 | 
				
			||||||
{% has_perm page "change" as can_edit %}
 | 
					 | 
				
			||||||
{% if can_edit %}
 | 
					 | 
				
			||||||
<a class="navbar-item" href="{{ page|admin_url:'change' }}"
 | 
					 | 
				
			||||||
    target="new">
 | 
					 | 
				
			||||||
    <span class="icon is-small">
 | 
					 | 
				
			||||||
        <i class="fa fa-pen"></i>
 | 
					 | 
				
			||||||
    </span> 
 | 
					 | 
				
			||||||
    <span>{% translate "Edit" %}</span>
 | 
					 | 
				
			||||||
</a>
 | 
					 | 
				
			||||||
{% endif %}
 | 
					 | 
				
			||||||
{% endblock %}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
{% block breadcrumbs %}
 | 
					{% block breadcrumbs %}
 | 
				
			||||||
{% if parent %}
 | 
					{% if parent %}
 | 
				
			||||||
    {% include "./widgets/breadcrumbs.html" with page=parent %}
 | 
					    {% include "./widgets/breadcrumbs.html" with page=parent %}
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
{% extends "aircox/basepage_detail.html" %}
 | 
					{% extends "aircox/page_detail.html" %}
 | 
				
			||||||
{% load static i18n humanize honeypot aircox %}
 | 
					{% load static i18n humanize honeypot aircox %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -9,16 +9,12 @@
 | 
				
			|||||||
{% block init-scripts %}
 | 
					{% block init-scripts %}
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block top-nav-tools %}
 | 
					{% block comments %}
 | 
				
			||||||
<a class="navbar-item" href="{% url 'program-detail' object.slug %}" target="_self">
 | 
					 | 
				
			||||||
    <span class="icon is-small">
 | 
					 | 
				
			||||||
        <i class="fa fa-eye"></i>
 | 
					 | 
				
			||||||
    </span> 
 | 
					 | 
				
			||||||
    <span>{% translate "View" %}</span>
 | 
					 | 
				
			||||||
</a>
 | 
					 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block main %}
 | 
					{% block content-container %}
 | 
				
			||||||
 | 
					<section class="container">
 | 
				
			||||||
 | 
					<div>
 | 
				
			||||||
<form method="post" enctype="multipart/form-data">{% csrf_token %}
 | 
					<form method="post" enctype="multipart/form-data">{% csrf_token %}
 | 
				
			||||||
    <table>
 | 
					    <table>
 | 
				
			||||||
        {{ form.as_table }}
 | 
					        {{ form.as_table }}
 | 
				
			||||||
@ -27,4 +23,6 @@
 | 
				
			|||||||
    <br/>
 | 
					    <br/>
 | 
				
			||||||
    <input type="submit" value="Update" class="button is-success">
 | 
					    <input type="submit" value="Update" class="button is-success">
 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					</section>
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user