diff --git a/static/js/admin/skill.js b/static/js/admin/skill.js index e87190efd6..a98b0250e4 100644 --- a/static/js/admin/skill.js +++ b/static/js/admin/skill.js @@ -6,13 +6,15 @@ if (!$) { $(function(){ - $('#id_departure').val('1'); - $('#id_landing').val('1'); - $('#id_rotation').val('0'); - $('#id_twist').val('0'); - $('#id_is_competitive').prop("checked", true); - $('#id_age_boy').val('6'); - $('#id_age_girl').val('6'); + if(!$('#id_rotation').val()) { + $('#id_rotation').val('0'); + } + + if(!$('#id_twist').val()) { + $('#id_twist').val('0'); + } + + // $('#id_is_competitive').prop("checked", true); $('#id_long_label').keyup(function(){ $('#id_short_label').val($('#id_long_label').val()); @@ -52,7 +54,7 @@ $(function(){ }); $('#id_notation').keyup(function(){ - $('#id_simplyNotation').val($('#id_notation').val()); + $('#id_simplified_notation').val($('#id_notation').val()); }); /* From boy to boy & girl */ diff --git a/templates/objectives/skills/details.html b/templates/objectives/skills/details.html index 1e3722700d..006c5a9e15 100644 --- a/templates/objectives/skills/details.html +++ b/templates/objectives/skills/details.html @@ -89,10 +89,12 @@ {% endif %}
+

From {{ skill.departure }} to {{ skill.landing }} with {% if skill.rotation %} {{ skill.rotation }} quart of {{ skill.get_rotation_type_display }} rotation {% endif %}{% if skill.twist %} and {{ skill.twist }} half-twist {% endif %} in a {{ skill.get_position_display }} position.

+
{% if skill.informations %} {{ skill.to_markdown | safe }} {% else %} -

No information provided for this skill.

+

No more informations provided for this skill.

{% endif %}