Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Start migration to bootstrap 4

Roland62100019a51f
diff --git a/wger/core/templates/base.html b/wger/core/templates/base.html
index a8812d8bc..ca3492721 100644
--- a/wger/core/templates/base.html
+++ b/wger/core/templates/base.html
@@ -1,4 +1,4 @@
-{% extends request.user_agent.is_mobile|yesno:"mobile/template.html,template.html" %}
+{% extends "template.html" %}
{% load i18n wger_extras django_bootstrap_breadcrumbs %}
{% block template %}
diff --git a/wger/core/templates/navigation.html b/wger/core/templates/navigation.html
index e61945042..df4738e6b 100644
--- a/wger/core/templates/navigation.html
+++ b/wger/core/templates/navigation.html
@@ -1,252 +1,244 @@
{% load i18n cache wger_extras %}
-<nav id="nav">
- <div>
- <div class="navbar {% if request.user_agent.is_pc %}navbar-inverse{% else %}navbar-default{% endif %}">
- <div class="container">
- <div class="navbar-header" >
- <a class="navbar-toggle hidden-xs" data-toggle="collapse" data-target="#main-navbar-navigation">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- </div>
- <div class="navbar-collapse {% if request.user_agent.is_pc %}collapse{% endif %}" id="main-navbar-navigation">
- <ul class="nav navbar-nav">
- {# #}
- {# User tab #}
- {# #}
- <li {% if active_tab == 'user' %}class="active"{% endif %}>
- <a href="{% url 'core:index' %}">
- {% if not user.is_authenticated %}
- {% trans "Features" %}
- {% else %}
- {% trans "Dashboard" %}
- {% endif %}
- </a>
- </li>
-
+ <nav class="navbar navbar-expand-lg navbar-light bg-light">
+ <div class="container">
+ <a class="navbar-brand" href="#">wger</a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-navbar-navigation" aria-controls="main-navbar-navigation" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <div class="collapse navbar-collapse" id="main-navbar-navigation">
+ <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
+ {# #}
+ {# User tab #}
+ {# #}
+ <li class="nav-item {% if active_tab == 'user' %}active{% endif %}">
+ <a class="nav-link" href="{% url 'core:index' %}">
+ {% if not user.is_authenticated %}
+ {% trans "Features" %}
+ {% else %}
+ {% trans "Dashboard" %}
+ {% endif %}
+ </a>
+ </li>
- {# #}
- {# Workout tab #}
- {# #}
- {% if user.is_authenticated %}
- <li class="dropdown {% if active_tab == 'workout' %}active{% endif %}">
- <a href="{% url 'manager:workout:overview' %}"
- rel="nofollow"
- class="dropdown-toggle"
- data-toggle="dropdown">{% trans "Workouts" %} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="{% url 'manager:workout:overview' %}" rel="nofollow">{% trans "Workouts" %}</a></li>
- <li><a href="{% url 'manager:workout:calendar' user.username %}" rel="nofollow">{% trans "Calendar" %}</a></li>
- <li><a href="{% url 'manager:schedule:overview' %}" rel="nofollow">{% trans "Workouts schedules" %}</a></li>
- </ul>
- </li>
- {% endif %}
+ {# #}
+ {# Workout tab #}
+ {# #}
+ {% if user.is_authenticated %}
+ <li class="nav-item dropdown {% if active_tab == 'workout' %}active{% endif %}">
+ <a href="{% url 'manager:workout:overview' %}"
+ rel="nofollow"
+ class="dropdown-toggle nav-link"
+ data-toggle="dropdown">{% trans "Workouts" %} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a class="dropdown-item" href="{% url 'manager:workout:overview' %}" rel="nofollow">{% trans "Workouts" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'manager:workout:calendar' user.username %}" rel="nofollow">{% trans "Calendar" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'manager:schedule:overview' %}" rel="nofollow">{% trans "Workouts schedules" %}</a></li>
+ </ul>
+ </li>
+ {% endif %}
- {# #}
- {# Exercises tab #}
- {# #}
- <li class="dropdown {% if active_tab == 'exercises' %}active{% endif %}">
- <a href="{% url 'exercise:exercise:overview' %}"
- class="dropdown-toggle"
- data-toggle="dropdown">{% trans "Exercises" %} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="{% url 'exercise:exercise:overview' %}">{% trans "Exercises" %}</a></li>
- <li><a href="{% url 'exercise:muscle:overview' %}">{% trans "Muscle overview" %}</a></li>
- <li><a href="{% url 'exercise:equipment:overview' %}">{% trans "Equipment overview" %}</a></li>
- {% if user.is_authenticated and not user.userprofile.is_temporary and not trainer_identity %}
- <li class="divider"></li>
- <li><a href="{% url 'exercise:exercise:add' %}">{% trans "Add new exercise" %}</a><li>
- {% endif %}
- {% if perms.exercises %}
- <li class="divider"></li>
- <li class="dropdown-header">{% trans "Administration" %}</li>
- <li><a href="{% url 'exercise:exercise:pending' %}">{% trans "Exercises pending review" %}</a></li>
- <li><a href="{% url 'exercise:equipment:list' %}">{% trans "Equipment" %}</a></li>
- <li><a href="{% url 'exercise:muscle:admin-list' %}">{% trans "Muscles" %}</a></li>
- <li><a href="{% url 'exercise:category:list' %}">{% trans "Categories" %}</a></li>
- {% endif %}
- </ul>
- </li>
+ {# #}
+ {# Exercises tab #}
+ {# #}
+ <li class="nav-item dropdown {% if active_tab == 'exercises' %}active{% endif %}">
+ <a href="{% url 'exercise:exercise:overview' %}"
+ class="dropdown-toggle nav-link"
+ data-toggle="dropdown">{% trans "Exercises" %} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a class="dropdown-item" href="{% url 'exercise:exercise:overview' %}">{% trans "Exercises" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'exercise:muscle:overview' %}">{% trans "Muscle overview" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'exercise:equipment:overview' %}">{% trans "Equipment overview" %}</a></li>
+ {% if user.is_authenticated and not user.userprofile.is_temporary and not trainer_identity %}
+ <li class="dropdown-divider"></li>
+ <li><a class="dropdown-item" href="{% url 'exercise:exercise:add' %}">{% trans "Add new exercise" %}</a><li>
+ {% endif %}
+ {% if perms.exercises %}
+ <li class="dropdown-divider"></li>
+ <li class="dropdown-header">{% trans "Administration" %}</li>
+ <li><a class="dropdown-item" href="{% url 'exercise:exercise:pending' %}">{% trans "Exercises pending review" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'exercise:equipment:list' %}">{% trans "Equipment" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'exercise:muscle:admin-list' %}">{% trans "Muscles" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'exercise:category:list' %}">{% trans "Categories" %}</a></li>
+ {% endif %}
+ </ul>
+ </li>
+
+
+ {# #}
+ {# Weight tab #}
+ {# #}
+ {% if user.is_authenticated %}
+ <li class="nav-item dropdown{% if active_tab == 'weight' %} active{% endif %}">
+
+ <a href="{% url 'weight:overview' user.username %}"
+ class="dropdown-toggle nav-link"
+ data-toggle="dropdown"
+ rel="nofollow">{% trans "Weight" %} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a class="dropdown-item" href="{% url 'weight:overview' user.username %}" rel="nofollow">{% trans "Weight overview" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'weight:add' %}" rel="nofollow">{% trans "Add weight entry" %}</a></li>
+ </ul>
+ </li>
+ {% endif %}
- {# #}
- {# Weight tab #}
- {# #}
- {% if user.is_authenticated %}
- <li class="dropdown{% if active_tab == 'weight' %} active{% endif %}">
- <a href="{% url 'weight:overview' user.username %}"
- class="dropdown-toggle"
- data-toggle="dropdown"
- rel="nofollow">{% trans "Weight" %} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="{% url 'weight:overview' user.username %}" rel="nofollow">{% trans "Weight overview" %}</a></li>
- <li><a href="{% url 'weight:add' %}" rel="nofollow">{% trans "Add weight entry" %}</a></li>
- </ul>
- </li>
- {% endif %}
-
-
- {# #}
- {# Nutrition tab #}
- {# #}
- {% if user.is_authenticated %}
- <li class="dropdown {% if active_tab == 'nutrition' %}active{% endif %}">
- <a href="{% url 'nutrition:plan:overview' %}"
- class="dropdown-toggle"
- data-toggle="dropdown"
- rel="nofollow">{% trans "Nutrition" %} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="{% url 'nutrition:plan:overview' %}" rel="nofollow">{% trans "Nutrition plans" %}</a></li>
- <li><a href="{% url 'nutrition:ingredient:list' %}">{% trans "Ingredient overview" %}</a></li>
- <li><a href="{% url 'nutrition:bmi:view' %}" rel="nofollow">{% trans "BMI calculator" %}</a></li>
- <li><a href="{% url 'nutrition:calories:view' %}" rel="nofollow">{% trans "Daily calories calculator" %}</a></li>
+ {# #}
+ {# Nutrition tab #}
+ {# #}
+ {% if user.is_authenticated %}
+ <li class="nav-item dropdown {% if active_tab == 'nutrition' %}active{% endif %}">
+ <a href="{% url 'nutrition:plan:overview' %}"
+ class="dropdown-toggle nav-link"
+ data-toggle="dropdown"
+ rel="nofollow">{% trans "Nutrition" %} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a class="dropdown-item" href="{% url 'nutrition:plan:overview' %}" rel="nofollow">{% trans "Nutrition plans" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'nutrition:ingredient:list' %}">{% trans "Ingredient overview" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'nutrition:bmi:view' %}" rel="nofollow">{% trans "BMI calculator" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'nutrition:calories:view' %}" rel="nofollow">{% trans "Daily calories calculator" %}</a></li>
{% if perms.nutrition %}
- <li class="divider"></li>
+ <li class="dropdown-divider"></li>
<li class="dropdown-header">{% trans "Administration" %}</li>
- <li><a href="{% url 'nutrition:weight_unit:list' %}">{% trans "Ingredient weight units" %}</a></li>
- <li><a href="{% url 'nutrition:ingredient:pending' %}">{% trans "Ingredients pending review" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'nutrition:weight_unit:list' %}">{% trans "Ingredient weight units" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'nutrition:ingredient:pending' %}">{% trans "Ingredients pending review" %}</a></li>
{% endif %}
- </ul>
- </li>
- {% endif %}
+ </ul>
+ </li>
+ {% endif %}
- {# #}
- {# Software tab #}
- {# #}
- <li class="dropdown {% if active_tab == 'software' %}active{% endif %}">
- <a href=""
- class="dropdown-toggle"
- data-toggle="dropdown">{% trans "About this software" %} <b class="caret"></b></a>
+ {# #}
+ {# Software tab #}
+ {# #}
+ <li class="nav-item dropdown {% if active_tab == 'software' %}active{% endif %}">
+ <a href=""
+ class="dropdown-toggle nav-link"
+ data-toggle="dropdown">{% trans "About this software" %} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a class="dropdown-item" href="{% url 'software:features' %}">{% trans "Features" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'software:contribute' %}">{% trans "Contribute!" %} </a></li>
+ <li><a class="dropdown-item" href="{% url 'software:issues' %}">{% trans "Problems and wishes" %} </a></li>
+ <li><a class="dropdown-item" href="{% url 'software:tos' %}">{% trans "Terms of service" %} </a></li>
+ <li class="dropdown-divider"></li>
+ <li><a class="dropdown-item" href="{% url 'software:api' %}">{% trans "REST API" %} </a></li>
+ <li><a class="dropdown-item" href="{% url 'software:license' %}">{% trans "License" %} </a></li>
+ <li>
+ <a class="dropdown-item" href="https://wger.readthedocs.io/">
+ <span class="fa fa-external-link" aria-hidden="true"></span>
+ {% trans "Developer documentation" %}
+ </a>
+ </li>
+ <li>
+ <a class="dropdown-item" href="https://github.com/wger-project/wger">
+ <span class="fa fa-external-link" aria-hidden="true"></span>
+ {% trans "Get the code" %} (Github)
+ </a>
+ </li>
+ <li>
+ <a class="dropdown-item" href="https://www.transifex.com/rge/wger-workout-manager/">
+ <span class="fa fa-external-link" aria-hidden="true"></span>
+ {% trans "Translate with Transifex" %}
+ </a>
+ </li>
+ </ul>
+ </li>
+
+ {# #}
+ {# Options and contact #}
+ {# #}
+ <li class="dropdown nav-item">
+ <a href=""
+ class="dropdown-toggle nav-link"
+ data-toggle="dropdown">{% trans "Options" %} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+
+ {# Contact #}
+ <li><a class="dropdown-item" href="{% url 'core:contact' %}">{% trans "Get in touch" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'core:about' %}">{% trans "About" %}</a></li>
+
+ {# Language #}
+ <li><a class="dropdown-item" href="#language-options" data-toggle="modal">{% trans "Language" %}</a></li>
+ </ul>
+ </li>
+ </ul>
+
+
+ {# #}
+ {# Options tab #}
+ {# #}
+ {% if not user.is_authenticated or user.userprofile.is_temporary %}
+ <ul class="navbar-nav my-2 my-lg-0">
+ <li class="dropdown nav-item">
+ <a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
+ {% trans "Login" %} / {% trans "Register" %}
+ <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a class="dropdown-item" href="{% url 'core:user:login' %}">{% trans "Login" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'core:user:registration' %}">{% trans "Register" %}</a></li>
+ <li><a class="dropdown-item" href="{% url 'core:user:password_reset' %}">{% trans "Reset password" %}</a></li>
+ </ul>
+ </li>
+ </ul>
+ {% else %}
+ <ul class="navbar-nav my-2 my-lg-0">
+ <li class="dropdown nav-item">
+ <a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
+ {{user|format_username}}
+ <span class="caret"></span>
+ </a>
<ul class="dropdown-menu">
- <li><a href="{% url 'software:features' %}">{% trans "Features" %}</a></li>
- <li><a href="{% url 'software:contribute' %}">{% trans "Contribute!" %} </a></li>
- <li><a href="{% url 'software:issues' %}">{% trans "Problems and wishes" %} </a></li>
- <li><a href="{% url 'software:tos' %}">{% trans "Terms of service" %} </a></li>
- <li class="divider"></li>
- <li><a href="{% url 'software:api' %}">{% trans "REST API" %} </a></li>
- <li><a href="{% url 'software:license' %}">{% trans "License" %} </a></li>
<li>
- <a href="https://wger.readthedocs.io/">
- <span class="fa fa-external-link" aria-hidden="true"></span>
- {% trans "Developer documentation" %}
- </a>
+ <a class="dropdown-item" href="{% url 'core:user:preferences' %}">{% trans "My preferences" %}</a>
</li>
+ {% if not trainer_identity %}
+ <li class="dropdown-divider"></li>
<li>
- <a href="https://github.com/wger-project/wger">
- <span class="fa fa-external-link" aria-hidden="true"></span>
- {% trans "Get the code" %} (Github)
+ <a class="dropdown-item" href="{% url 'core:user:logout' %}">
+ <span class="{% fa_class 'sign-out' %}"></span>
+ {% trans "Logout" %}
</a>
</li>
- <li>
- <a href="https://www.transifex.com/rge/wger-workout-manager/">
- <span class="fa fa-external-link" aria-hidden="true"></span>
- {% trans "Translate with Transifex" %}
- </a>
- </li>
- </ul>
- </li>
-
- {# #}
- {# Options and contact #}
- {# #}
- <li class="dropdown visible-xs-block visible-sm-block">
- <a href=""
- class="dropdown-toggle"
- data-toggle="dropdown">{% trans "Options" %} <b class="caret"></b></a>
- <ul class="dropdown-menu">
+ {% endif %}
- {# Contact #}
- <li><a href="{% url 'core:contact' %}">{% trans "Get in touch" %}</a></li>
- <li><a href="{% url 'core:about' %}">{% trans "About" %}</a></li>
+ {# #}
+ {# Adminstration #}
+ {# #}
+ {% if perms.exercises or perms.gym.manage_gyms or perms.gym.manage_gym or perms.gym.gym_trainer %}
+ <li class="dropdown-divider"></li>
+ <li class="dropdown-header">{% trans "Administration" %}</li>
+ {% if perms.core.change_language %}
+ <li><a class="dropdown-item" href="{% url 'core:language:overview' %}">{% trans "Languages" %} </a></li>
+ {% endif %}
+ {% if perms.core.change_license %}
+ <li><a class="dropdown-item" href="{% url 'core:license:list' %}">{% trans "Licenses" %} </a></li>
+ {% endif %}
+ {% if perms.core.change_repetitionunit %}
+ <li><a class="dropdown-item" href="{% url 'core:repetition-unit:list' %}">{% trans "Repetition units" %} </a></li>
+ {% endif %}
+ {% if perms.core.change_weightunit %}
+ <li><a class="dropdown-item" href="{% url 'core:weight-unit:list' %}">{% trans "Weight units" %} </a></li>
+ {% endif %}
+ {% if perms.gym.manage_gyms %}
+ <li><a class="dropdown-item" href="{% url 'core:user:list' %}">{% trans "User list" %} </a></li>
+ <li><a class="dropdown-item" href="{% url 'gym:gym:list' %}">{% trans "Gyms" %} </a></li>
+ {% endif %}
- {# Language #}
- <li><a href="#language-options" data-toggle="modal">{% trans "Language" %}</a></li>
+ {# it's not possible to group expressions '(a or b) and c' #}
+ {% if perms.gym.gym_trainer or perms.gym.manage_gym %}
+ {% if user.userprofile.gym %}
+ <li><a class="dropdown-item" href="{% url 'gym:gym:user-list' user.userprofile.gym.pk %}">{{user.userprofile.gym}}</a></li>
+ {% endif %}
+ {% endif %}
+ {% endif %}
</ul>
</li>
</ul>
-
-
- {# #}
- {# Options tab #}
- {# #}
- {% if not user.is_authenticated or user.userprofile.is_temporary %}
- <ul class="nav navbar-nav pull-right">
- <li class="divider-vertical"></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">
- {% trans "Login" %} / {% trans "Register" %}
- <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <li><a href="{% url 'core:user:login' %}">{% trans "Login" %}</a></li>
- <li><a href="{% url 'core:user:registration' %}">{% trans "Register" %}</a></li>
- <li><a href="{% url 'core:user:password_reset' %}">{% trans "Reset password" %}</a></li>
- </ul>
- </li>
- </ul>
- {% else %}
- <ul class="nav navbar-nav navbar-right">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">
- {{user|format_username}}
- <span class="caret"></span>
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="{% url 'core:user:preferences' %}">{% trans "My preferences" %}</a>
- </li>
- {% if not trainer_identity %}
- <li class="divider"></li>
- <li>
- <a href="{% url 'core:user:logout' %}">
- <span class="{% fa_class 'sign-out' %}"></span>
- {% trans "Logout" %}
- </a>
- </li>
- {% endif %}
-
- {# #}
- {# Adminstration #}
- {# #}
- {% if perms.exercises or perms.gym.manage_gyms or perms.gym.manage_gym or perms.gym.gym_trainer %}
- <li class="divider"></li>
- <li class="dropdown-header">{% trans "Administration" %}</li>
- {% if perms.core.change_language %}
- <li><a href="{% url 'core:language:overview' %}">{% trans "Languages" %} </a></li>
- {% endif %}
- {% if perms.core.change_license %}
- <li><a href="{% url 'core:license:list' %}">{% trans "Licenses" %} </a></li>
- {% endif %}
- {% if perms.core.change_repetitionunit %}
- <li><a href="{% url 'core:repetition-unit:list' %}">{% trans "Repetition units" %} </a></li>
- {% endif %}
- {% if perms.core.change_weightunit %}
- <li><a href="{% url 'core:weight-unit:list' %}">{% trans "Weight units" %} </a></li>
- {% endif %}
- {% if perms.gym.manage_gyms %}
- <li><a href="{% url 'core:user:list' %}">{% trans "User list" %} </a></li>
- <li><a href="{% url 'gym:gym:list' %}">{% trans "Gyms" %} </a></li>
- {% endif %}
-
- {# it's not possible to group expressions '(a or b) and c' #}
- {% if perms.gym.gym_trainer or perms.gym.manage_gym %}
- {% if user.userprofile.gym %}
- <li><a href="{% url 'gym:gym:user-list' user.userprofile.gym.pk %}">{{user.userprofile.gym}}</a></li>
- {% endif %}
- {% endif %}
- {% endif %}
- </ul>
- </li>
- </ul>
- {% endif %}
- </div><!--/.nav-collapse -->
- </div>
+ {% endif %}
+ </div><!--/.nav-collapse -->
</div>
- </div>
-</nav>
+ </nav>
diff --git a/wger/core/templates/rest_framework/api.html b/wger/core/templates/rest_framework/api.html
index 41d45c849..e40be2f31 100644
--- a/wger/core/templates/rest_framework/api.html
+++ b/wger/core/templates/rest_framework/api.html
@@ -130,7 +130,7 @@
{% render_form_field field %}
{% endfor %}
<div class="form-group">
- <div class="col-md-offset-3 col-md-9">
+ <div class="offset-md-3 col-md-9">
{% if raw_data_put_form %}
<button class="btn btn-default btn-block js-tooltip" name="{{ api_settings.FORM_METHOD_OVERRIDE }}" value="PUT" title="Make a PUT request on the {{ name }} resource">PUT</button>
{% endif %}
diff --git a/wger/core/templates/tags/render_form_submit.html b/wger/core/templates/tags/render_form_submit.html
index 60d47f366..2d22f9d60 100644
--- a/wger/core/templates/tags/render_form_submit.html
+++ b/wger/core/templates/tags/render_form_submit.html
@@ -1,7 +1,7 @@
{% load i18n %}
<div class="form-group">
- <div class="col-md-offset-3 col-md-9">
+ <div class="offset-md-3 col-md-9">
<input type="submit" value="{% trans save_text %}" id="form-save" class="btn btn-{{button_class}} btn-block">
</div>
-</div>
\ No newline at end of file
+</div>
diff --git a/wger/core/templates/template.html b/wger/core/templates/template.html
index 2da3cc3a1..67fc7dde2 100644
--- a/wger/core/templates/template.html
+++ b/wger/core/templates/template.html
@@ -25,7 +25,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="Roland Geider">
<!-- OpenGraph -->
@@ -61,7 +61,7 @@
{% compress js %}
<script src="{% static 'bower_components/jquery/dist/jquery.js' %}"></script>
- <script src="{% static 'bower_components/bootstrap/dist/js/bootstrap.min.js' %}"></script>
+ <script src="{% static 'bower_components/bootstrap/dist/js/bootstrap.bundle.min.js' %}"></script>
<script src="{% static 'bower_components/Sortable/Sortable.min.js' %}"></script>
<script src="{% static 'bower_components/d3/d3.js' %}"></script>
<script src="{% static 'bower_components/metrics-graphics/dist/metricsgraphics.min.js' %}"></script>
diff --git a/wger/exercises/templates/exercise/overview.html b/wger/exercises/templates/exercise/overview.html
index 2b9e8ed92..a6559e575 100644
--- a/wger/exercises/templates/exercise/overview.html
+++ b/wger/exercises/templates/exercise/overview.html
@@ -87,7 +87,7 @@ $(document).ready(function() {
</a>
{% empty %}
<a href="#" class="list-group-item">
- <div class="col-md-offset-1 col-md-10" >
+ <div class="offset-md-1 col-md-10" >
{% trans "No exercises in this category. Add or edit an exercise and set its category" %}
</div>
</a>
diff --git a/wger/manager/templates/mobile/set/add.html b/wger/manager/templates/mobile/set/add.html
index d049828fa..981ab29a4 100644
--- a/wger/manager/templates/mobile/set/add.html
+++ b/wger/manager/templates/mobile/set/add.html
@@ -33,7 +33,7 @@ $(document).ready(function() {
{% render_form_field form.categories_list %}
{% render_form_field form.exercise_list %}
<div class="form-group">
- <div class="col-md-offset-3 col-md-9">
+ <div class="offset-md-3 col-md-9">
<div id="exercise-search-log"></div>
</div>
</div>
diff --git a/wger/manager/templates/set/formset.html b/wger/manager/templates/set/formset.html
index b7a88813c..2feba58e2 100644
--- a/wger/manager/templates/set/formset.html
+++ b/wger/manager/templates/set/formset.html
@@ -2,7 +2,7 @@
{% load i18n %}
<div id="formset-exercise-{{exercise.id}}" style="margin-top: 1em;">
<div class="row">
- <div class="col-md-offset-2 col-md-10">
+ <div class="offset-md-2 col-md-10">
<label class="control-label">
{{exercise}}
</label>
diff --git a/wger/settings_global.py b/wger/settings_global.py
index f0f56d5f4..12d8084e0 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -92,7 +92,7 @@ INSTALLED_APPS = (
# added list of external libraries to be installed by bower
BOWER_INSTALLED_APPS = (
- 'bootstrap#3.x',
+ 'bootstrap#4.x',
'components-font-awesome#4.7.x',
'd3',
'DataTables',
diff --git a/wger/software/templates/api.html b/wger/software/templates/api.html
index 6afed01fe..9898979d0 100644
--- a/wger/software/templates/api.html
+++ b/wger/software/templates/api.html
@@ -194,7 +194,7 @@ it in the header, see the link on the sidebar for details.</p>
<code>api/v2/workout/&lt;id&gt;/canonical_representation/</code>
</div>
<div class="row">
- <div class="col-md-offset-1 col-md-10">
+ <div class="offset-md-1 col-md-10">
This is a complete representation of a workout, including all objects
like workout days, exercises, etc. This form used by the django application
to render workouts or perform other operations. The data is cached so,
@@ -207,7 +207,7 @@ it in the header, see the link on the sidebar for details.</p>
<code>api/v2/exerciseimage/&lt;id&gt;/thumbnails/</code>
</div>
<div class="row">
- <div class="col-md-offset-1 col-md-10">
+ <div class="offset-md-1 col-md-10">
Returns a list of available thumbnails for this image. The 'settings' key
refers to the settings used by the thumbnailing application to generate
that image. The special key 'original' is simply a downloadable link to
@@ -220,7 +220,7 @@ it in the header, see the link on the sidebar for details.</p>
<code>api/v2/exerciseiinfo/&lt;id&gt;/</code>
</div>
<div class="row">
- <div class="col-md-offset-1 col-md-10">
+ <div class="offset-md-1 col-md-10">
A convenience function that returns all the information about an exercise,
including, muscles, equipment, etc. This can be used to avoid having to call
the other endpoints individually.
@@ -233,7 +233,7 @@ it in the header, see the link on the sidebar for details.</p>
<code>api/v2/mealitem/&lt;id&gt;/nutritional_values/</code>
</div>
<div class="row">
- <div class="col-md-offset-1 col-md-10">
+ <div class="offset-md-1 col-md-10">
Returns the total nutritional values for a nutritional plan, a meal or
an individual meal item. The nutritional plan lists this under the
'total' key, the other two return a flat list.