|
|
@@ -4,7 +4,7 @@
|
|
4
|
4
|
</div>
|
|
5
|
5
|
<div class="container-fluid">
|
|
6
|
6
|
<div class="row" id="my-counter">
|
|
7
|
|
- <div class="col-sm-12">
|
|
|
7
|
+ <div class="col-sm-6">
|
|
8
|
8
|
<div class="panel panel-primary">
|
|
9
|
9
|
<div class="panel-heading">
|
|
10
|
10
|
<a class="counter-link" href="{% url 'counter' id_counter=myCounter.id %}">
|
|
|
@@ -13,35 +13,68 @@
|
|
13
|
13
|
</h2>
|
|
14
|
14
|
</a>
|
|
15
|
15
|
</div>
|
|
16
|
|
- <div class="seum-counter panel-body" id="container{{myCounter.id}}" style="height:125px">
|
|
17
|
|
- {% if myCounter.lastReset.noSeum %}
|
|
18
|
|
- <strong>N'a pas encore eu le seum.</strong>
|
|
19
|
|
- <br> {% else %}
|
|
20
|
|
- <strong>
|
|
|
16
|
+ <div class="primary-counter panel-body" id="container{{myCounter.id}}">
|
|
|
17
|
+ <div style="width:100%;">
|
|
|
18
|
+ {% if myCounter.lastReset.noSeum %}
|
|
|
19
|
+ <strong>N'a pas encore eu le seum.</strong>
|
|
|
20
|
+ <br> {% else %}
|
|
|
21
|
+ <strong>
|
|
21
|
22
|
{% if myCounter.lastReset.selfSeum %}
|
|
22
|
23
|
J'ai eu le seum il y a {{ myCounter.lastReset.formatted_delta }}.
|
|
23
|
24
|
{% else %}
|
|
24
|
25
|
{{myCounter.lastReset.who.trigramme}} m'a foutu le seum il y a {{ myCounter.lastReset.formatted_delta }}.
|
|
25
|
26
|
{% endif %}
|
|
26
|
27
|
</strong>
|
|
27
|
|
- <br> {% endif %}
|
|
|
28
|
+ <br> {% endif %}
|
|
28
|
29
|
|
|
29
|
|
- <p>{{ myCounter.lastReset.reason }}</p>
|
|
30
|
|
- <div class="text-center" id="button{{myCounter.id}}">
|
|
31
|
|
- <button class="btn btn-default btn-danger" type="button" onclick="revealSeumForm({{myCounter.id}})">Remettre à zéro</button>
|
|
|
30
|
+ <p>{{ myCounter.lastReset.reason }}</p>
|
|
|
31
|
+ <div class="text-center" id="button{{myCounter.id}}">
|
|
|
32
|
+ <button class="btn btn-default btn-danger" type="button" onclick="revealSeumForm({{myCounter.id}})">Remettre à zéro</button>
|
|
|
33
|
+ </div>
|
|
|
34
|
+ <form style="display:none" id="counter{{myCounter.id}}" action="{% url 'reset-counter' %}" method="post">
|
|
|
35
|
+ {% csrf_token %}
|
|
|
36
|
+ <div class="form-group">
|
|
|
37
|
+ <label for="reason">Motif du seum</label>
|
|
|
38
|
+ <input id="reason{{myCounter.id}}" type="text" class="form-control" name="reason"></input>
|
|
|
39
|
+ </div>
|
|
|
40
|
+ <input type="hidden" name="counter" value="{{myCounter.id}}"></input>
|
|
|
41
|
+ <input type="hidden" name="redirect" value="{% url 'home' %}"></input>
|
|
|
42
|
+ <input type="hidden" name="who" value="{{myCounter.id}}"></input>
|
|
|
43
|
+ <div class="text-center">
|
|
|
44
|
+ <button type="submit" class="btn btn-default btn-success">J'ai le seum</button>
|
|
|
45
|
+ </div>
|
|
|
46
|
+ </form>
|
|
32
|
47
|
</div>
|
|
33
|
|
- <form style="display:none" id="counter{{myCounter.id}}" action="{% url 'reset-counter' %}" method="post">
|
|
|
48
|
+ </div>
|
|
|
49
|
+ </div>
|
|
|
50
|
+ </div>
|
|
|
51
|
+ <div class="col-sm-6">
|
|
|
52
|
+ <div class="panel panel-primary">
|
|
|
53
|
+ <div class="panel-heading">
|
|
|
54
|
+ <h2 class="panel-title">QuickSeum™ <small>Brise le mur du seum</small></h2>
|
|
|
55
|
+ </div>
|
|
|
56
|
+ <div class="primary-counter panel-body">
|
|
|
57
|
+ <form class="form-horizontal" action="{% url 'reset-counter'%}" method="POST">
|
|
34
|
58
|
{% csrf_token %}
|
|
35
|
59
|
<div class="form-group">
|
|
36
|
|
- <label for="reason">Motif du seum :</label>
|
|
37
|
|
- <input id="reason{{myCounter.id}}" type="text" class="form-control" name="reason"></input>
|
|
|
60
|
+ <label for="id_quicktrigramme" class="col-sm-3 control-label">Trigramme</label>
|
|
|
61
|
+ <div class="col-sm-9">
|
|
|
62
|
+ <input id="id_quicktrigramme" maxlength="3" type="text" class="form-control text-uppercase" name="trigramme" onkeyup="this.value=this.value.toUpperCase();" required />
|
|
|
63
|
+ </div>
|
|
|
64
|
+ </div>
|
|
|
65
|
+ <div class="form-group">
|
|
|
66
|
+ <label for="id_quickreason" class="col-sm-3 control-label">Motif</label>
|
|
|
67
|
+ <div class="col-sm-9">
|
|
|
68
|
+ <input type="text" class="form-control" id="id_quickreason" name="reason" />
|
|
|
69
|
+ </div>
|
|
|
70
|
+ </div>
|
|
|
71
|
+ <div class="form-group">
|
|
|
72
|
+ <div class="col-sm-offset-3 col-sm-9">
|
|
|
73
|
+ <button type="submit" class="btn btn-danger">Foutre le seum</button>
|
|
|
74
|
+ </div>
|
|
38
|
75
|
</div>
|
|
39
|
76
|
<input type="hidden" name="counter" value="{{myCounter.id}}"></input>
|
|
40
|
77
|
<input type="hidden" name="redirect" value="{% url 'home' %}"></input>
|
|
41
|
|
- <input type="hidden" name="who" value="{{myCounter.id}}"></input>
|
|
42
|
|
- <div class="text-center">
|
|
43
|
|
- <button type="submit" class="btn btn-default btn-success">J'ai le seum</button>
|
|
44
|
|
- </div>
|
|
45
|
78
|
</form>
|
|
46
|
79
|
</div>
|
|
47
|
80
|
</div>
|