Self hosted FLOSS fitness/workout, nutrition and weight tracker
Fix PDF download dialog for workout plans
Roland Geider392f52065380
diff --git a/wger/manager/templates/workout/view.html b/wger/manager/templates/workout/view.htmlindex 40af8c5da..0db8acce9 100644--- a/wger/manager/templates/workout/view.html+++ b/wger/manager/templates/workout/view.html@@ -99,13 +99,13 @@ $(document).ready(function () {<div class="row"><div class="col-6"><div id="muscle-front"- class="muscle-background center-block"+ class="muscle-background"style="width: 120px; height: 220px; background-size: 120px; background-image: {% for background in muscle_backgrounds_front %}url({% static background %}){% if not forloop.last %},{% endif %}{% endfor %};"></div></div><div class="col-6"><div id="muscle-back"- class="muscle-background center-block"+ class="muscle-background"style="width: 120px; height: 220px; background-size: 120px; background-image: {% for background in muscle_backgrounds_back %}url({% static background %}){% if not forloop.last %},{% endif %}{% endfor %};"></div></div>@@ -141,48 +141,35 @@ an appointment for each training day with the appropriate exercises.{% endblockt<div class="modal-dialog"><div class="modal-content"><div class="modal-header">- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h4 class="modal-title">{% trans "Download as PDF" %}</h4>+ <button type="button" class="close float-right" data-dismiss="modal" aria-hidden="true">×</button></div><div class="modal-body"><form class="wger-form"><div id="pdf-download-info" data-workout-id="{{ workout.id }}" data-uid="{{ uid }}" data-token="{{ token }}"></div>- <div class="form-group">- <div>- <label for="id_images" class="col-md-3 control-label">- {% trans "Type" %}- </label>- </div>- <div class="col-md-9" style="padding-left: 35px;">- <div class="radio">- <input type="radio" name="pdf_type" id="id_type_log" value="log" checked>- {% trans "Log" %}- </div>- <div class="radio">- <input type="radio" name="pdf_type" id="id_type_table" value="table">- {% trans "Table" %}- </div>- </div>+ <div class="form-group form-check-inline">+ <input type="radio" name="pdf_type" class="form-check-input" id="id_type_log" value="log" checked>+ <label class="form-check-label" for="id_type_log">+ {% trans "Log" %}+ </label>+ </div>+ <div class="form-group form-check-inline">+ <input type="radio" name="pdf_type" id="id_type_table" class="form-check-input" value="table">+ <label class="form-check-label" for="id_type_table">+ {% trans "Table" %}+ </label></div>- <div class="form-group">- <div>- <label for="id_images" class="col-md-3 control-label">- {% trans "with images" %}- </label>- </div>- <div class="col-md-9">- <input type="checkbox" class="checkbox" name="images" id="id_images" checked>- </div>+ <div class="form-group form-check">+ <input type="checkbox" class="form-check-input" name="images" id="id_images" checked>+ <label for="id_images" class="form-check-label">+ {% trans "with images" %}+ </label></div>- <div class="form-group">- <div>- <label for="id_comments" class="col-md-3 control-label">- {% trans "with comments" %}- </label>- </div>- <div class="col-md-9">- <input type="checkbox" class="checkbox" name="comments" id="id_comments" checked>- </div>+ <div class="form-group form-check">+ <input type="checkbox" class="form-check-input" name="comments" id="id_comments" checked>+ <label for="id_comments" class="form-check-label">+ {% trans "with comments" %}+ </label></div></form>