Self hosted FLOSS fitness/workout, nutrition and weight tracker
Small improvements, use bootstrap's buttons
Roland Geider78c75bc2aef3
diff --git a/wger/manager/templates/index.html b/wger/manager/templates/index.htmlindex 0663dbaf6..bf63b6f4f 100644--- a/wger/manager/templates/index.html+++ b/wger/manager/templates/index.html@@ -88,7 +88,7 @@{% else %}<p><a href="{% url 'wger.nutrition.views.plan.add' %}" class="btn btn-block">- {% trans "No nutrition plans." %} {% trans "Use link to add one." %}+ {% trans "No nutrition plans." %} {% trans "Add one now." %}</a></p>{% endif %}diff --git a/wger/manager/templates/schedule/overview.html b/wger/manager/templates/schedule/overview.htmlindex 2946b0b21..147cf9fd0 100644--- a/wger/manager/templates/schedule/overview.html+++ b/wger/manager/templates/schedule/overview.html@@ -39,7 +39,9 @@{% empty %}<tr><td colspan="3">- {% trans "No schedules found." %} {% trans "Use link to add one." %}+ <a href="{% url 'schedule-add' %}" class="modal-dialog btn btn-block">+ {% trans "No schedules found." %} {% trans "Add one now." %}+ </a></td></tr>{% endfor %}diff --git a/wger/manager/templates/schedule/view.html b/wger/manager/templates/schedule/view.htmlindex c95e52441..57b4759f7 100644--- a/wger/manager/templates/schedule/view.html+++ b/wger/manager/templates/schedule/view.html@@ -97,6 +97,14 @@ $(function() {{{ step.duration }}</td></tr>+ {% empty %}+ <tr>+ <td colspan="4">+ <a href="{% url 'step-add' schedule.id %}" class="modal-dialog btn btn-block">+ {% trans "No workouts found." %} {% trans "Add one now." %}+ </a>+ </td>+ </tr>{% endfor %}{% if schedule.is_loop %}<tr>diff --git a/wger/manager/templates/template.html b/wger/manager/templates/template.htmlindex 10154f9c2..f5fbc7a02 100644--- a/wger/manager/templates/template.html+++ b/wger/manager/templates/template.html@@ -86,6 +86,8 @@{% trans "Logout" %}</a>{% elif user.is_authenticated and user.get_profile.is_temporary %}+ <a href="{% url 'login' %}">{% trans "Login" %}</a>+ |<a href="{% url 'wger.manager.views.user.registration' %}">{% trans "Register" %}</a>{% else %}<a href="{% url 'login' %}">{% trans "Login" %}</a>diff --git a/wger/manager/views/misc.py b/wger/manager/views/misc.pyindex 4ac95e745..2a6076193 100644--- a/wger/manager/views/misc.py+++ b/wger/manager/views/misc.py@@ -150,7 +150,7 @@ class ContactClassView(TemplateView):class FeedbackClass(FormView):template_name = 'form.html'- success_url = reverse_lazy('feedback')+ success_url = reverse_lazy('contact')def get_context_data(self, **kwargs):'''@@ -159,6 +159,7 @@ class FeedbackClass(FormView):context = super(FeedbackClass, self).get_context_data(**kwargs)context['title'] = _('Feedback')context['form_fields'] = kwargs['form']+ context['form_action'] = reverse('feedback')context['submit_text'] = _('Send')context['sidebar'] = 'misc/feedback.html'context['contribute_url'] = reverse('software:contribute')