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

View File

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

View File

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

View File

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

View File

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