Self hosted FLOSS fitness/workout, nutrition and weight tracker
Move the edit options for settings next to the repetitions, not on new line
Roland Geider04022497b24e
diff --git a/manager/static/css/yaml401/custom-yaml.css b/manager/static/css/yaml401/custom-yaml.cssindex 28ffd7b83..8a069cbe9 100644--- a/manager/static/css/yaml401/custom-yaml.css+++ b/manager/static/css/yaml401/custom-yaml.css@@ -1,12 +1,12 @@/** Hide the edit options (edit, delete) on tables, only show them when the mouse is over the row*/-div.editoptions+.editoptions{visibility: hidden;}-tr:hover div.editoptions, tbody tr:hover td div.editoptions+tr:hover .editoptions, tbody tr:hover td .editoptions{visibility: visible;}@@ -42,4 +42,4 @@ tr:hover div.editoptions, tbody tr:hover td div.editoptionsbackground-color: #babdb6; /* #888a85;*//*text-align:center;*/border-bottom:1px solid black;-}\ No newline at end of file+}diff --git a/manager/templates/workout/view.html b/manager/templates/workout/view.htmlindex a4cc4ca28..78f6f3ca7 100644--- a/manager/templates/workout/view.html+++ b/manager/templates/workout/view.html@@ -120,24 +120,25 @@ $(document).ready(function() {{% endfor %} <!--for setting in exercise--></span>+ <span class="editoptions">+ <a href="{% url manager.views.edit_setting workout.id set.id exercise.id None %}"+ title="{% trans "Edit" %}">[e]</a>+ <a href="{% url manager.views.edit_setting workout.id set.id exercise.id None %}"+ title="{% trans "Delete" %}">[x]</a>+ </span>- <!-- Comments to the exercise -->- <div class="exercise-comments dimmed">+ <!-- Comments to the exercise -->+ <div class="exercise-comments dimmed"><ul>{% for comment in exercise.exercisecomment_set.all %}<li>{{comment}}</li>{% endfor %}</ul>- </div>+ </div>+- <div class="editoptions">- <a href="{% url manager.views.edit_setting workout.id set.id exercise.id None %}"- title="{% trans "Edit" %}">[e]</a>- <a href="{% url manager.views.edit_setting workout.id set.id exercise.id None %}"- title="{% trans "Delete" %}">[x]</a>- </div></li>{% endfor %} <!--for exercise in set--></ul>