templates: update after merging branch 118-design

This commit is contained in:
Chris Tactic 2024-01-22 07:07:14 +01:00
parent 72cd24083a
commit c9ddd38b9b
4 changed files with 11 additions and 44 deletions

View File

@ -3,18 +3,6 @@
{% 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>&nbsp;
<span>{% translate "Edit" %}</span>
</a>
{% endif %}
{% endblock %}
{% block content-container %}
<a-episode :page="{title: &quot;{{ page.title }}&quot;, podcasts: {{ object.podcasts|json }}}">

View File

@ -9,16 +9,11 @@
{% block init-scripts %}
{% endblock %}
{% block top-nav-tools %}
<a class="navbar-item" href="{% url 'episode-detail' object.slug %}" target="_self">
<span class="icon is-small">
<i class="fa fa-eye"></i>
</span>&nbsp;
<span>{% translate "View" %}</span>
</a>
{% block comments %}
{% endblock %}
{% block main %}
{% block content-container %}
<section class="container">
<form method="post" enctype="multipart/form-data">{% csrf_token %}
<table>
{{ form.as_table }}
@ -27,4 +22,5 @@
<br/>
<input type="submit" value="Update" class="button is-success">
</form>
</section>
{% endblock %}

View File

@ -10,21 +10,6 @@ Context:
- related_url: url to the full list of related_objects
{% 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>&nbsp;
<span>{% translate "Edit" %}</span>
</a>
{% endif %}
{% endblock %}
{% block breadcrumbs %}
{% if parent %}
{% include "./widgets/breadcrumbs.html" with page=parent %}

View File

@ -1,4 +1,4 @@
{% extends "aircox/basepage_detail.html" %}
{% extends "aircox/page_detail.html" %}
{% load static i18n humanize honeypot aircox %}
@ -9,16 +9,12 @@
{% block init-scripts %}
{% endblock %}
{% block top-nav-tools %}
<a class="navbar-item" href="{% url 'program-detail' object.slug %}" target="_self">
<span class="icon is-small">
<i class="fa fa-eye"></i>
</span>&nbsp;
<span>{% translate "View" %}</span>
</a>
{% block comments %}
{% endblock %}
{% block main %}
{% block content-container %}
<section class="container">
<div>
<form method="post" enctype="multipart/form-data">{% csrf_token %}
<table>
{{ form.as_table }}
@ -27,4 +23,6 @@
<br/>
<input type="submit" value="Update" class="button is-success">
</form>
</div>
</section>
{% endblock %}