Improve freelance tag

This commit is contained in:
2025-01-18 23:02:55 +01:00
parent ddcf06994d
commit 3dd134f132
5 changed files with 36 additions and 30 deletions

View File

@@ -7,10 +7,12 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="row">Company</th>
<th colspan="2" scope="row">
Company
{% if d.item.freelance %}
<th class="text-end" scope="row"><span class="badge text-bg-secondary">Freelance</span></th>
<span class="mt-1 float-end badge text-bg-secondary">Freelance</span>
{% endif %}
</th>
</tr>
</thead>
<tbody class="table-group-divider">
@@ -32,12 +34,6 @@
<th class="w-33" scope="row">Country</th>
<td><img src="{{ d.item.country.flag }}" alt="{{ d.item.country }}"> {{ d.item.country.name }}</td>
</tr>
{% if d.item.freelance %}
<tr>
<th class="w-33" scope="row">Notes</th>
<td>A <em>freelance</em> company</td>
</tr>
{% endif %}
</tbody>
</table>
<div class="d-grid gap-2 mb-1 d-md-block">

View File

@@ -24,10 +24,12 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="row">Consist</th>
<th colspan="2" scope="row">
Consist
{% if d.item.company.freelance %}
<th class="text-end" scope="row"><span class="badge text-bg-secondary">Freelance</span></th>
<span class="mt-1 float-end badge text-bg-secondary">Freelance</span>
{% endif %}
</th>
</tr>
</thead>
<tbody class="table-group-divider">

View File

@@ -22,10 +22,12 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="row">Rolling stock</th>
<th colspan="2" scope="row">
Rolling stock
{% if d.item.rolling_class.company.freelance %}
<th class="text-end" scope="row"><span class="badge text-bg-secondary">Freelance</span></th>
<span class="mt-1 float-end badge text-bg-secondary">Freelance</span>
{% endif %}
</th>
</tr>
</thead>
<tbody class="table-group-divider">

View File

@@ -79,10 +79,12 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="row">Consist</th>
<th colspan="2" scope="row">
Consist
{% if consist.company.freelance %}
<th class="text-end" scope="row"><span class="badge text-bg-secondary">Freelance</span></th>
<span class="mt-1 float-end badge text-bg-secondary">Freelance</span>
{% endif %}
</th>
</tr>
</thead>
<tbody class="table-group-divider">

View File

@@ -73,10 +73,12 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="row">Rolling stock</th>
<th colspan="2" scope="row">
Rolling stock
{% if company.freelance %}
<th class="text-end" scope="row"><span class="badge text-bg-secondary">Freelance</span></th>
<span class="mt-1 float-end badge text-bg-secondary">Freelance</span>
{% endif %}
</th>
</tr>
</thead>
<tbody class="table-group-divider">
@@ -290,10 +292,12 @@
<table class="table table-striped">
<thead>
<tr>
<th scope="row">Company data</th>
<th colspan="2" scope="row">
Company data
{% if company.freelance %}
<th class="text-end" scope="row"><span class="badge text-bg-secondary">Freelance</th>
<span class="mt-1 float-end badge text-bg-secondary">Freelance</span>
{% endif %}
</th>
</tr>
</thead>
<tbody class="table-group-divider">