Self hosted FLOSS fitness/workout, nutrition and weight tracker
Move the exercise comment box to inside the table
Roland Geider952749421a07
diff --git a/exercises/templates/view.html b/exercises/templates/view.htmlindex bfaa66d05..e3ac23778 100644--- a/exercises/templates/view.html+++ b/exercises/templates/view.html@@ -71,24 +71,28 @@ $(document).ready(function() {</tr>{% empty %}<tr>- <td>{% trans "Sorry, no comments for this exercise yet!" %}</td>+ <td>{% trans "No comments for this exercise" %}</td></tr>{% endfor %}-</ul>- </tbody>-</table>-{% if perms.exercises %}-<h3>{% trans "Add new comment" %}</h3>-<form action = "{% url exercises.views.exercise_view exercise.id %}"- method = "post"- id = "new_comment_form">-{% csrf_token %}-{{ comment_form.comment }}-<input type="submit" value="{% trans "Save" %}" />-</form>+<tr>+ <td>+ <strong>{% trans "Add new comment" %}</strong>+ <form action = "{% url exercises.views.exercise_view exercise.id %}"+ method = "post"+ id = "new_comment_form">+ {% csrf_token %}+ {{ comment_form.comment }}+ <input type="submit" value="{% trans "Save" %}" />+ </form>+ </td>+</tr>{% endif %}++ </tbody>+</table>+{% endblock %}