mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 05:07:50 +02:00
Improve freelance tag
This commit is contained in:
@@ -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">
|
||||
|
@@ -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">
|
||||
|
@@ -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">
|
||||
|
@@ -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">
|
||||
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user