Fixes page titles.
This commit is contained in:
parent
20379a7fff
commit
68dfaf5429
2 changed files with 6 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block titleblock %}
|
{% block titleblock %}
|
||||||
Manage Characters
|
{{ view.page_title }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
@ -12,17 +12,17 @@ Manage Characters
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card mt-3">
|
<div class="card mt-3">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h1 class="card-title">Manage Characters</h1>
|
<h1 class="card-title">{{ view.page_title }}</h1>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
{% for object in object_list %}
|
{% for object in object_list %}
|
||||||
<div class="media mb-4">
|
<div class="media mb-4">
|
||||||
<a href="{{ object.get_absolute_url }}"><img class="d-flex mr-3" src="http://placehold.jp/50x50.png" alt="" /></a>
|
<a href="{{ object.web_detail_url }}"><img class="d-flex mr-3" src="http://placehold.jp/50x50.png" alt="" /></a>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<p class="float-right ml-2">{{ object.db_date_created }}
|
<p class="float-right ml-2">{{ object.db_date_created }}
|
||||||
<br /><a href="{% url 'character-delete' pk=object.id slug=object.name %}">Delete</a>
|
<br /><a href="{% url 'character-delete' pk=object.id slug=object.name %}">Delete</a>
|
||||||
<br /><a href="{% url 'character-update' pk=object.id slug=object.name %}">Edit</a></p>
|
<br /><a href="{% url 'character-update' pk=object.id slug=object.name %}">Edit</a></p>
|
||||||
<h5 class="mt-0"><a href="{{ object.get_absolute_url }}">{{ object }}</a> {% if object.subtitle %}<small class="text-muted" style="white-space:nowrap;">{{ object.subtitle }}</small>{% endif %}</h5>
|
<h5 class="mt-0"><a href="{{ object.web_detail_url }}">{{ object }}</a> {% if object.subtitle %}<small class="text-muted" style="white-space:nowrap;">{{ object.subtitle }}</small>{% endif %}</h5>
|
||||||
<p>{{ object.db.desc }}</p>
|
<p>{{ object.db.desc }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block titleblock %}
|
{% block titleblock %}
|
||||||
Confirm Delete
|
{{ view.page_title }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
@ -12,7 +12,7 @@ Confirm Delete
|
||||||
<div class="col-lg-5 offset-lg-3 col-sm-12">
|
<div class="col-lg-5 offset-lg-3 col-sm-12">
|
||||||
<div class="card mt-3 border border-danger">
|
<div class="card mt-3 border border-danger">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h1 class="card-title">Confirm Delete</h1>
|
<h1 class="card-title">{{ view.page_title }}</h1>
|
||||||
<hr />
|
<hr />
|
||||||
<form method="post" action="?">
|
<form method="post" action="?">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue