Update JS Skill admin and Skill details
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8202330500
commit
128ace335d
|
@ -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 */
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue