Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add some style to the AJAX form elements for exercise settings
Roland Geidere8de7dc33c3c
diff --git a/manager/static/css/yaml401/custom-yaml.css b/manager/static/css/yaml401/custom-yaml.cssindex 794ccefee..390a90707 100644--- a/manager/static/css/yaml401/custom-yaml.css+++ b/manager/static/css/yaml401/custom-yaml.css@@ -129,3 +129,16 @@ body{footer{border-bottom: 1px solid black;}++/*+ * Use similar formatting for input elements in the AJAX edit+ * set forms on the workout page+ */+.ajax-form-element {+ border: 1px solid #DDDDDD;+ font-family:Arial, Helvetica, sans-serif;+ -webkit-box-shadow: inset 0 0 4px #eee;+ -moz-box-shadow: inset 0 0 4px #eee;+ box-shadow: inset 0 0 4px #eee;++}diff --git a/manager/templates/setting/ajax_edit.html b/manager/templates/setting/ajax_edit.htmlindex c196a0bdd..c650a6e94 100644--- a/manager/templates/setting/ajax_edit.html+++ b/manager/templates/setting/ajax_edit.html@@ -33,7 +33,7 @@ $(document).ready(function() {<input type="text"name="exercise_name"value="{{exercise.name}}"- class="ajax-form-exercise-list"+ class="ajax-form-exercise-list ajax-form-element"id="set-{{set.id}}-exercercise-id">:</span>@@ -54,7 +54,8 @@ $(document).ready(function() {name="setting-{{setting.id}}"value="{{ setting.reps }}"maxlength="2"- style="width: 2em;">+ style="width: 2em;"+ class="ajax-form-element">{% endfor %}{% for setting in new_settings %}@@ -62,7 +63,8 @@ $(document).ready(function() {name="new-setting-{{setting}}"value=""maxlength="2"- style="width: 2em;">+ style="width: 2em;"+ class="ajax-form-element">{% endfor %}