Commit d245df5a4d9d23cfc3f346a2182ea56990dbb57d
1 parent
b4a4de0b
Exists in
master
and in
2 other branches
Modified window_view of the bulletin to display other data
Showing
1 changed file
with
108 additions
and
1 deletions
Show diff stats
bulletin/templates/bulletin/window_view.html
1 | -{{ bulletin.content|safe }} | |
1 | +<!DOCTYPE html> | |
2 | + | |
3 | +{% load static i18n util_tags %} | |
4 | +{% load widget_tweaks %} | |
5 | + | |
6 | +<html> | |
7 | +<head> | |
8 | + <title>{{ title }} | {{ theme.title }}</title> | |
9 | + | |
10 | + <script type="text/javascript" src="{% static 'js/jquery-3.1.0.min.js' %}"></script> | |
11 | + | |
12 | + <meta http-equiv="Cache-Control" content="no-cache, no-store" /> | |
13 | + <link href="{{ theme.favicon_url }}" rel="shortcut icon" /> | |
14 | + | |
15 | + <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-3.3.7/css/bootstrap.css' %}"> | |
16 | + <link rel="stylesheet" type="text/css" href="{% static 'material/css/bootstrap-material-design.min.css' %}"> | |
17 | + <link rel="stylesheet" type="text/css" href="{% static 'material/css/ripples.css' %}"> | |
18 | + <link rel="stylesheet" type="text/css" href="{% static 'material/css/ripples.min.css' %}"> | |
19 | + <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap-slider.css' %}"> | |
20 | + <link rel="stylesheet" type="text/css" href="{% static 'font-awesome-4.6.3/css/font-awesome.min.css' %}"> | |
21 | + | |
22 | + <!-- Custom styles --> | |
23 | + <link rel="stylesheet" type="text/css" href="{% static 'css/base/amadeus_responsive.css' %}"> | |
24 | + <link rel="stylesheet" type="text/css" href="{% static 'css/base/amadeus.css' %}"> | |
25 | + | |
26 | + {% with 'css/themes/'|add:theme.css_style|add:'.css' as theme_selected %} | |
27 | + <link rel="stylesheet" type="text/css" href="{% static theme_selected %}"> | |
28 | + {% endwith %} | |
29 | + | |
30 | + <script type="text/javascript" src="{% static 'js/bootstrap-slider.js' %} "></script> | |
31 | +</head> | |
32 | +<body style="background: #FFF"> | |
33 | + <div class="container-fluid" style="padding-top: 20px"> | |
34 | + {% autoescape off %} | |
35 | + {{ bulletin.content }} | |
36 | + {% endautoescape %} | |
37 | + | |
38 | + <hr /> | |
39 | + | |
40 | + <div class="row"> | |
41 | + <div class="col-md-12"> | |
42 | + <b><h5> {% trans "Check your goals" %}:</b></h5> | |
43 | + <table class="table table-bordered"> | |
44 | + <thead> | |
45 | + <tr> | |
46 | + <th style="text-align:center;vertical-align:middle" colspan="1" rowspan="2">Meta</th> | |
47 | + <th style="text-align:center;vertical-align:middle" colspan="1" rowspan="2">Média da Turma</th> | |
48 | + <th style="text-align:center" colspan="3">Dados Individuais</th> | |
49 | + </tr> | |
50 | + <tr> | |
51 | + <th style="text-align:center">Desejada</th> | |
52 | + <th style="text-align:center">Estabelecida</th> | |
53 | + <th style="text-align:center">Alcançada</th> | |
54 | + </tr> | |
55 | + </thead> | |
56 | + <tbody> | |
57 | + {% for meta in metas%} | |
58 | + <tr> | |
59 | + <td>{{ meta.description }}</td> | |
60 | + <td></td> | |
61 | + <td style="text-align:center">{{ meta.desejada }} %</td> | |
62 | + <td style="text-align:center">{{ meta.estabelecida }} %</td> | |
63 | + <td style="text-align:center">%</td> | |
64 | + </tr> | |
65 | + | |
66 | + {% endfor %} | |
67 | + </tbody> | |
68 | + </table> | |
69 | + </div> | |
70 | + </div> | |
71 | + | |
72 | + <div class="row"> | |
73 | + <div class="col-md-8 col-md-offset-2 alert-warning bulletin-warning"> | |
74 | + <div class="col-md-2"> | |
75 | + <img src="{% static 'img/warning.png' %}" class="img-responsive" /> | |
76 | + </div> | |
77 | + <div class="col-md-10 col-sm-10"> | |
78 | + <h4>{% trans 'There are obstructions to your activities?' %}</h4> | |
79 | + <p><a data-toggle="modal" data-target="#bulletin-difficulties-modal" href="">{% trans 'Click here' %}</a> {% trans 'to communicate the difficulties that may decrease your performance.' %}</p> | |
80 | + </div> | |
81 | + </div> | |
82 | + </div> | |
83 | + </div> | |
84 | + <div class="modal fade" tabindex="-1" role="dialog" id="bulletin-difficulties-modal"> | |
85 | + <div class="modal-dialog" role="document"> | |
86 | + <div class="modal-content"> | |
87 | + <div class="modal-header"> | |
88 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
89 | + <h4 class="modal-title">{% trans 'Inform difficulties' %}</h4> | |
90 | + </div> | |
91 | + <div class="modal-body"> | |
92 | + <form id="bulletin-difficulties" action="" method="POST" enctype="multipart/form-data"> | |
93 | + {% csrf_token %} | |
94 | + | |
95 | + <textarea class="form-control" id="dificulties" name="difficulties" placeholder="{% trans 'Type here the dificulties that may harm your performance' %}"></textarea> | |
96 | + </form> | |
97 | + </div> | |
98 | + <div class="modal-footer"> | |
99 | + <button type="button" class="btn btn-default btn-raised" data-dismiss="modal">{% trans "Close" %}</button> | |
100 | + <button type="submit" class="btn btn-success btn-raised erase-button" form="bulletin-difficulties">{% trans "Send" %}</button> | |
101 | + </div> | |
102 | + </div> | |
103 | + </div> | |
104 | + </div> | |
105 | + | |
106 | + | |
107 | +</body> | |
108 | +</html> | ... | ... |