Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Clean up the formatting

Roland Geidera31c773d49f2
diff --git a/manager/templates/setting/ajax_edit.html b/manager/templates/setting/ajax_edit.html
index 3ff8c4658..67c11e25c 100644
--- a/manager/templates/setting/ajax_edit.html
+++ b/manager/templates/setting/ajax_edit.html
@@ -4,12 +4,10 @@
<script>
$(document).ready(function() {
- // Call the setup function to allow the sets to be sortable again after loading this
- // view via AJAX
+ // Call the setup function to allow the sets to be sortable again after
+ // loading this view via AJAX
setup_inplace_editing();
-
-
-})
+});
</script>
<form action="{% url manager.views.api_edit_set %}?do=edit_set&amp;set={{set.id}}&amp;exercise={{exercise.id}}"
@@ -44,11 +42,19 @@ $(document).ready(function() {
{% for setting in exercise|get_current_settings:set.id %}
- <input type="text" name="setting-{{setting.id}}" value="{{ setting.reps }}" maxlength="2" style="width: 2em;">
+ <input type="text"
+ name="setting-{{setting.id}}"
+ value="{{ setting.reps }}"
+ maxlength="2"
+ style="width: 2em;">
{% endfor %}
{% for setting in new_settings %}
- <input type="text" name="new-setting-{{setting}}" value="" maxlength="2" style="width: 2em;">
+ <input type="text"
+ name="new-setting-{{setting}}"
+ value=""
+ maxlength="2"
+ style="width: 2em;">
{% endfor %}
@@ -58,4 +64,4 @@ $(document).ready(function() {
<input type="submit"
value="{% trans 'Cancel' %}"
class="ajax-form-cancel" />
-</form>
\ No newline at end of file
+</form>