Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add IDs to some elements for easier location with selenium
Roland Geidere5f98478ae09
diff --git a/manager/templates/form.html b/manager/templates/form.htmlindex d8e357131..677751cd6 100644--- a/manager/templates/form.html+++ b/manager/templates/form.html@@ -42,7 +42,9 @@{% endif %}{% endfor %}<tr>- <td colspan="2"><input type="submit" value="{% trans 'Save' %}"></td>+ <td colspan="2">+ <input type="submit" value="{% trans 'Save' %}" id="form-save">+ </td></tr></table></form>diff --git a/weight/templates/edit.html b/weight/templates/edit.htmlindex 6ad911fd9..10efae097 100644--- a/weight/templates/edit.html+++ b/weight/templates/edit.html@@ -36,7 +36,7 @@ $(document).ready(function () {{% include "form_snippet.html" with field=weight_form.weight %}{% include "form_snippet.html" with field=weight_form.creation_date %}<tr>- <td><input type="submit" value="{% trans "Save" %}" /></td>+ <td><input type="submit" value="{% trans "Save" %}" id="form-save"></td><td></td></tr></table>diff --git a/weight/templates/weight_overview.html b/weight/templates/weight_overview.htmlindex d1422f0d0..077a57e26 100644--- a/weight/templates/weight_overview.html+++ b/weight/templates/weight_overview.html@@ -81,7 +81,7 @@ $(document).ready(function () {<h2>{% trans "Weight overview" %}</h2>{% if not min_date %}-<div class="box warning">+<div class="box warning" id="weight-box-warning">{% trans "There is no chart here because there are no weight entries." %}{% trans "Use link to add one." %}</div>@@ -90,7 +90,9 @@ $(document).ready(function () {<div id="weight_diagram"></div><p>-<a href="{% url weight.views.add None %}" class="modal-dialog">{% trans "Add weight entry" %}</a>+<a href="{% url weight.views.add None %}"+ class="modal-dialog"+ id="add-weight-entry">{% trans "Add weight entry" %}</a></p><p>