Removed id numbers from page titles for person, venue & organisation detail views

This commit is contained in:
David Taylor
2015-07-19 16:25:41 +01:00
parent 616c9b9e75
commit c4eb855620
4 changed files with 7 additions and 7 deletions

View File

@@ -1,13 +1,13 @@
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
{% load widget_tweaks %}
{% block title %}Organisation {{ object.pk|stringformat:"05d" }} |{{ object.name }}{% endblock %}
{% block title %}Organisation | {{ object.name }}{% endblock %}
{% block content %}
<div class="row">
{% if not request.is_ajax %}
<div class="col-sm-12">
<h1>Organisation {{ object.pk|stringformat:"05d" }} | {{ object.name }}</h1>
<h1>Organisation | {{ object.name }}</h1>
</div>
<div class="col-sm-12 text-right">

View File

@@ -1,7 +1,7 @@
{% extends request.is_ajax|yesno:'base_ajax.html,base.html' %}
{% load widget_tweaks %}
{% block title %}{% if object.pk %}Edit {{ object.name }}{% else %}Add Person{% endif %}{% endblock %}
{% block title %}{% if object.pk %}Edit {{ object.name }}{% else %}Add Organisation{% endif %}{% endblock %}
{% block content %}
<div class="col-sm-offset-1 col-sm-10">

View File

@@ -1,13 +1,13 @@
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
{% load widget_tweaks %}
{% block title %}Person {{ object.pk|stringformat:"05d" }} | {{ object.name }}{% endblock %}
{% block title %}Person | {{ object.name }}{% endblock %}
{% block content %}
<div class="row">
{% if not request.is_ajax %}
<div class="col-sm-12">
<h1>Person {{ object.pk|stringformat:"05d" }} | {{ object.name }}</h1>
<h1>Person | {{ object.name }}</h1>
</div>
<div class="col-sm-12 text-right">

View File

@@ -1,13 +1,13 @@
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
{% load widget_tweaks %}
{% block title %}Venue {{ object.pk|stringformat:"05d" }} | {{ object.name }}{% endblock %}
{% block title %}Venue | {{ object.name }}{% endblock %}
{% block content %}
<div class="row">
{% if not request.is_ajax %}
<div class="col-sm-12">
<h1>Venue {{ object.pk|stringformat:"05d" }} | {{ object.name }}</h1>
<h1>Venue | {{ object.name }}</h1>
</div>
<div class="col-sm-12 text-right">