fix names of titles

This commit is contained in:
Cayo Puigdefabregas 2023-03-20 17:32:58 +01:00
parent ad52bad3f6
commit a7aae591aa
9 changed files with 13 additions and 12 deletions

View File

@ -1149,7 +1149,7 @@ class ExportsView(View):
n_computers = len({x.parent for x in erasures} - erasures_host)
params = {
'title': 'Erasure Certificate',
'title': 'Device Sanitization',
'erasures': tuple(erasures),
'url_pdf': '',
'date_report': '{:%c}'.format(datetime.datetime.now()),

View File

@ -138,7 +138,7 @@ class DocumentView(DeviceView):
url_pdf = boltons.urlutils.URL(flask.request.url)
url_pdf.query_params['format'] = 'PDF'
params = {
'title': 'Erasure Certificate',
'title': 'Device Sanitization',
'erasures': tuple(erasures()),
'url_pdf': url_pdf.to_text(),
}

View File

@ -73,7 +73,7 @@
</li>
<li>
<a class="dropdown-item d-flex align-items-center" href="{{ url_for('inventory.device_erasure_list') }}">
<i class="bi bi-tag"></i><span>Data Storage Erasures</span>
<i class="bi bi-eraser-fill"></i><span>Drives Sanitization</span>
</a>
</li>
</ul>

View File

@ -37,7 +37,7 @@
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#profile-change-password">Change Password</button>
</li>
<li class="nav-item">
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#profile-sanitization-entity">Sanitization Entity</button>
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#profile-sanitization-entity">Sanitization Certificate</button>
</li>
</ul>
<div class="tab-content pt-2">
@ -71,7 +71,7 @@
</div>
<div class="tab-pane fade pt-3" id="profile-sanitization-entity">
<!-- Sanitization Entity datas Form -->
<!-- Sanitization Certificate datas Form -->
<form action="{{ url_for('core.set-sanitization') }}" method="post">
{% for f in sanitization_form %}
{% if f == sanitization_form.csrf_token %}
@ -95,7 +95,7 @@
<div class="text-center">
<button type="submit" class="btn btn-primary">Change sanitization data</button>
</div>
</form><!-- End Sanitization Entity datas Form -->
</form><!-- End Sanitization Certificate datas Form -->
</div>
</div><!-- End Bordered Tabs -->

View File

@ -256,7 +256,7 @@
<li>
<a href="javascript:export_file('certificates')" class="dropdown-item">
<i class="bi bi-eraser-fill"></i>
Erasure Certificate
Device Sanitization
</a>
</li>
</ul>

View File

@ -6,7 +6,7 @@
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ url_for('inventory.devicelist')}}">Inventory</a></li>
<li class="breadcrumb-item active">Erasures disks</li>
<li class="breadcrumb-item active">Drive Sanitization</li>
</ol>
</nav>
</div><!-- End Page Title -->
@ -82,7 +82,7 @@
<li>
<a href="javascript:export_file('certificates')" class="dropdown-item">
<i class="bi bi-eraser-fill"></i>
Erasure Certificate
Device Sanitization
</a>
</li>
</ul>

View File

@ -172,7 +172,7 @@
<li>
<a href="javascript:export_file('certificates')" class="dropdown-item">
<i class="bi bi-eraser-fill"></i>
Erasure Certificate
Device Sanitization
</a>
</li>
</ul>

View File

@ -20,12 +20,13 @@
<div class="pt-6 pb-2">
<div class="row pt-3">
<div class="col">
<h5 class="card-title">Sanitization servers</h5>
<form method="post">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">PHID</th>
<th scope="col" class="text-center">Erasure Host</th>
<th scope="col" class="text-center">Sanitization Host</th>
</tr>
</thead>
<tbody>

View File

@ -23,7 +23,7 @@ class SettingsView(GenericMixin):
decorators = [login_required]
methods = ['GET', 'POST']
template_name = 'workbench/settings.html'
page_title = "Snapshots"
page_title = "Setup"
def dispatch_request(self):
self.get_context()