Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use jquerymobile's button markup

Roland Geiderd5e91bce3180
diff --git a/wger/manager/templates/mobile/base.html b/wger/manager/templates/mobile/base.html
index 0aefb79a0..be871365f 100644
--- a/wger/manager/templates/mobile/base.html
+++ b/wger/manager/templates/mobile/base.html
@@ -5,7 +5,11 @@
<div data-role="popup" id="popupGuestUser" class="ui-content">
{% trans "You are using a guest account, data entered will be deleted after a week."%}
{% if not has_demo_data %}
- <a href="{% url 'demo-entries' %}" rel="nofollow" data-role="button" data-mini="true">{% trans "Create some demo entries" %} »</a>
+ <a href="{% url 'demo-entries' %}"
+ rel="nofollow"
+ data-role="button"
+ data-mini="true"
+ data-ajax="false">{% trans "Create some demo entries" %} »</a>
{% endif %}
</div>
{% endif %}
diff --git a/wger/manager/templates/mobile/schedule/overview.html b/wger/manager/templates/mobile/schedule/overview.html
index 00d612a9b..a2f6d90bc 100644
--- a/wger/manager/templates/mobile/schedule/overview.html
+++ b/wger/manager/templates/mobile/schedule/overview.html
@@ -43,9 +43,9 @@ function custom_modal_init()
{% empty %}
<tr>
<td colspan="3">
- <a href="{% url 'schedule-add' %}" class="modal-dialog btn btn-block">
+ <a href="{% url 'schedule-add' %}" data-role="button">
{% trans "No schedules found." %} {% trans "Add one now." %}
- </a>
+ </a>
</td>
</tr>
{% endfor %}
diff --git a/wger/manager/templates/mobile/schedule/view.html b/wger/manager/templates/mobile/schedule/view.html
index 7a03b78db..897ce6176 100644
--- a/wger/manager/templates/mobile/schedule/view.html
+++ b/wger/manager/templates/mobile/schedule/view.html
@@ -110,7 +110,7 @@ $(function() {
{% empty %}
<tr>
<td colspan="4">
- <a href="{% url 'step-add' schedule.id %}" class="modal-dialog btn btn-block">
+ <a href="{% url 'step-add' schedule.id %}" data-role="button">
{% trans "No workouts found." %} {% trans "Add one now." %}
</a>
</td>
diff --git a/wger/manager/templates/mobile/workout/view.html b/wger/manager/templates/mobile/workout/view.html
index 1cfaa035c..e974bad14 100644
--- a/wger/manager/templates/mobile/workout/view.html
+++ b/wger/manager/templates/mobile/workout/view.html
@@ -23,12 +23,12 @@
{% render_day day %}
</div>
{% empty %}
-<div class="box warning">
- {% trans "No days for this workout." %}
- <a href="{% url 'day-add' workout.id %}" class="modal-dialog">
- {% trans "Add training day." %}
- </a>
-</div>
+
+<a href="{% url 'day-add' workout.id %}"
+ data-role="button">
+{% trans "No days for this workout." %}<br>
+{% trans "Add training day." %}
+</a>
{% endfor %}
@@ -145,5 +145,4 @@
alt="{% trans 'Delete this workout' %}">
{% trans "Delete this workout" %}
</a>
-
{% endblock %}