Update JS Skill admin and Skill details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Gregory Trullemans 2022-01-08 18:28:05 +01:00
parent 8202330500
commit 128ace335d
2 changed files with 13 additions and 9 deletions

View File

@ -6,13 +6,15 @@ if (!$) {
$(function(){ $(function(){
$('#id_departure').val('1'); if(!$('#id_rotation').val()) {
$('#id_landing').val('1'); $('#id_rotation').val('0');
$('#id_rotation').val('0'); }
$('#id_twist').val('0');
$('#id_is_competitive').prop("checked", true); if(!$('#id_twist').val()) {
$('#id_age_boy').val('6'); $('#id_twist').val('0');
$('#id_age_girl').val('6'); }
// $('#id_is_competitive').prop("checked", true);
$('#id_long_label').keyup(function(){ $('#id_long_label').keyup(function(){
$('#id_short_label').val($('#id_long_label').val()); $('#id_short_label').val($('#id_long_label').val());
@ -52,7 +54,7 @@ $(function(){
}); });
$('#id_notation').keyup(function(){ $('#id_notation').keyup(function(){
$('#id_simplyNotation').val($('#id_notation').val()); $('#id_simplified_notation').val($('#id_notation').val());
}); });
/* From boy to boy & girl */ /* From boy to boy & girl */

View File

@ -89,10 +89,12 @@
{% endif %} {% endif %}
</div> </div>
<div class="col-md-6 alert {% if request.session.template == 0 %}skill-info{% else %}alert-secondary{% endif %} mr-0"> <div class="col-md-6 alert {% if request.session.template == 0 %}skill-info{% else %}alert-secondary{% endif %} mr-0">
<p>From <a href="#">{{ skill.departure }}</a> to <a href="#">{{ skill.landing }}</a> with {% if skill.rotation %} <a href="#">{{ skill.rotation }}</a> quart of <a href="#">{{ skill.get_rotation_type_display }}</a> rotation {% endif %}{% if skill.twist %} and <a href="#">{{ skill.twist }} half-twist</a> {% endif %} in a <a href="#">{{ skill.get_position_display }}</a> position.</p>
<br />
{% if skill.informations %} {% if skill.informations %}
{{ skill.to_markdown | safe }} {{ skill.to_markdown | safe }}
{% else %} {% else %}
<p class="text-muted">No information provided for this skill.</p> <p class="text-muted">No more informations provided for this skill.</p>
{% endif %} {% endif %}
</div> </div>
</div> </div>