Remove lingering use of 'page-header'

BS removed that style
This commit is contained in:
2020-10-17 17:59:23 +01:00
parent 0fee753284
commit 848e8c8ccd
6 changed files with 19 additions and 27 deletions

View File

@@ -1,13 +1,7 @@
{% extends 'base_assets.html' %}
{% load widget_tweaks %}
{% block title %}Asset {{ object.asset_id }}{% endblock %}
{% block content %}
<div class="page-header">
<h1>Asset: {{ object.asset_id }}</h1>
</div>
<div class="row">
<div class="col-md-6 mb-3">
{% include 'partials/asset_detail_form.html' %}

View File

@@ -1,15 +1,12 @@
{% extends 'base_assets.html' %}
{% block title %}Supplier List{% endblock %}
{% load paginator from filters %}
{% load button from filters %}
{% load widget_tweaks %}
{% block content %}
<div class="page-header">
<h1>Cable Type List</h1>
</div>
<div class="row">
<div class="col px-0">
<a href="{% url 'cable_type_create' %}" class="btn btn-success float-right my-3">New <span class="fas fa-plus"></span></a>
<div class="row my-2">
<div class="col text-right pr-0">
{% button 'new' 'cable_type_create' %}
</div>
</div>
<div class="row">

View File

@@ -102,6 +102,11 @@ class AssetDetail(LoginRequiredMixin, AssetIDUrlMixin, generic.DetailView):
model = models.Asset
template_name = 'asset_detail.html'
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["page_title"] = "Asset {}".format(self.object.display_id)
return context
class AssetEdit(LoginRequiredMixin, AssetIDUrlMixin, generic.UpdateView):
template_name = 'asset_form.html'
@@ -298,6 +303,11 @@ class CableTypeList(generic.ListView):
paginate_by = 40
# ordering = ['__str__']
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["page_title"] = "Cable Type List"
return context
class CableTypeDetail(generic.DetailView):
model = models.CableType