Update interface buttons

This commit is contained in:
Gregory Trullemans 2024-05-15 08:51:02 +02:00
parent 270ef34582
commit 60325b2ed3
9 changed files with 36 additions and 35 deletions

View File

@ -27,7 +27,7 @@
<h4 class=""><i class="text-primary fal fa-laugh-wink"></i> Hi {{ user.first_name }} !</h4>
</div>
<div class="card-body text-justify pt-0">
<p>Welcome to Jarvi v1.0.4 <span class="text-muted">(last update : 10 may 2024)</span>.</p>
<p>Welcome to Jarvi v1.0.5 <span class="text-muted">(last update : 14 may 2024)</span>.</p>
<p>This application is designed to assist coaches in managing gymnasts' progress, evaluations, routines, scores, and more. While this tool isn't flawless, please feel free to submit improvement suggestions, bug reports, or any feedback by sending an <a href="mailto:gregory@flyingacrobaticstrampoline.be?subject=Jarvis remarks">email</a>.</p>
</div>
</div>
@ -89,10 +89,11 @@
<td class="text-left"><a href="{% url 'event_details' event.id %}">{{ event.name }}</a></td>
<td>
{% if event.number_of_week_from_today < 0 %}
{{event.number_of_week_from_today}}
{{ event.number_of_week_from_today }}
{% else %}
<span class="text-{% if event.number_of_week_from_today > 12 %}success{% elif event.number_of_week_from_today > 9 %}info{% elif event.number_of_week_from_today > 6 %}warning{% else %}danger{% endif %}">
<b>{{event.number_of_week_from_today}}</b></span>
<b>{{ event.number_of_week_from_today }}</b>
</span>
{% endif %}
</td>
</tr>

View File

@ -16,11 +16,11 @@
</div>
<div class="col-1 ml-auto">
<div class="text-right">
<h3 class="mb-0">
<a href="{% if gymnast %}{% url 'chrono_create_for_gymnast' gymnast.id %}{% else %}{% url 'chrono_create' %}{% endif %}">
<button type="submit" value="add" class="btn btn-icon btn-warning ">
<i class="fas fa-plus"></i>
</button>
<i class="fas fa-plus text-warning"></i>
</a>
</h3>
</div>
</div>
</div>

View File

@ -23,11 +23,11 @@
<div class="col-2 ml-auto pl-0">
<div class="text-right">
{% if request.user|has_group:"trainer" %}
<h3 class="mb-0">
<a href="{% if gymnast %}{% url 'heightweight_create_for_gymnast' gymnast.id %}{% else %}{% url 'height_weight_create' %}{% endif %}">
<button type="submit" value="add" class="btn btn-icon btn-warning ">
<i class="fas fa-plus"></i>
</button>
<i class="fas fa-plus text-warning"></i>
</a>
</h3>
{% endif %}
</div>
</div>

View File

@ -98,7 +98,7 @@
});
$('#injury_table').DataTable({
scrollY: '50vh',
// scrollY: '50vh',
paging: false,
searching: false,
ordering: false,

View File

@ -13,11 +13,11 @@
</div>
<div class="col-1 ml-auto">
<div class="text-right">
<h3 class="mb-0">
<a href="{% if gymnast %}{% url 'intensity_create_for_gymnast' gymnast.id %}{% else %}{% url 'intensity_create' %}{% endif %}">
<button type="submit" value="add" class="btn btn-icon btn-warning ">
<i class="fas fa-plus"></i>
</button>
<i class="fas fa-plus text-warning"></i>
</a>
</h3>
</div>
</div>
</div>

View File

@ -22,11 +22,11 @@
<div class="col-1 ml-auto">
<div class="text-right">
{% if request.user|has_group:"trainer" %}
<h3 class="mb-0">
<a href="{% if gymnast %}{% url 'score_create_for_gymnast' gymnast.id %}{% else %}{% url 'score_create' %}{% endif %}">
<button type="submit" value="add" class="btn btn-icon btn-warning ">
<i class="fas fa-plus"></i>
</button>
<i class="fas fa-plus text-warning"></i>
</a>
</h3>
{% endif %}
</div>
</div>

View File

@ -23,11 +23,11 @@
<div class="col-2 ml-auto pl-0">
<div class="text-right">
{% if request.user|has_group:"trainer" %}
<h3 class="mb-0">
<a href="{% if gymnast %}{% url 'wellbeing_create_for_gymnast' gymnast.id %}{% else %}{% url 'wellbeing_create' %}{% endif %}">
<button type="submit" value="add" class="btn btn-icon btn-warning ">
<i class="fas fa-plus"></i>
</button>
<i class="fas fa-plus text-warning"></i>
</a>
</h3>
{% endif %}
</div>
</div>

View File

@ -11,11 +11,11 @@
<div class="col-1 ml-auto">
<div class="text-right">
{% if request.user|has_group:"trainer" %}
<h3 class="mb-0">
<a href="{% url 'combination_create' %}">
<button type="submit" value="add" class="btn btn-icon btn-warning mb-0">
<i class="fas fa-plus"></i>
</button>
<i class="fas fa-plus text-warning"></i>
</a>
</h3>
{% endif %}
</div>
</div>

View File

@ -116,7 +116,7 @@
<h3 class="mb-0">
{% if ghr_list %}
<a href="{% url 'routine_list_for_gymnast' gymnast_id %}">
<i class="tim-icons icon-components text-warning"></i> <!-- Routines -->
<i class="tim-icons icon-components text-warning"></i>
</a>
{% endif %}