8fe0bbc by Anon Ray at 2014-05-10 | 1 | {% extends "layout.html" %} |
2 | ||
3 | {% block body %} |
|
4 | ||
5 | {% if sweets|length > 0 %} |
|
6 | ||
48b7772 by Anon Ray at 2014-06-03 | 7 | <ul class="list-group"> |
8fe0bbc by Anon Ray at 2014-05-10 | 8 | {% for sweet in sweets %} |
48b7772 by Anon Ray at 2014-06-03 | 9 | <li class="list-group-item"> |
8fe0bbc by Anon Ray at 2014-05-10 | 10 | <span class="who"> |
11 | <a href="#"> |
|
48b7772 by Anon Ray at 2014-06-03 | 12 | @{{ sweet.who }} |
8fe0bbc by Anon Ray at 2014-05-10 | 13 | </a> |
14 | </span> |
|
15 | <span class="what"> |
|
48b7772 by Anon Ray at 2014-06-03 | 16 | <b> #{{ sweet.what }} </b> |
8fe0bbc by Anon Ray at 2014-05-10 | 17 | </span> |
18 | <span class="where"> |
|
19 | {{ sweet.where }} |
|
20 | </span> |
|
21 | <p></p> |
|
22 | <span class="how"> |
|
23 | {{ sweet.how|tojson }} |
|
24 | </span> |
|
25 | ||
26 | <small><i>created: {{sweet.created }}</i></small> |
|
27 | ||
28 | <span class="pull-right permalink"> |
|
29 | <a href="#"> |
|
30 | <i class="glyphicon glyphicon-share"></i> |
|
31 | </a> |
|
32 | </span> |
|
33 | <span class="pull-right edit-sweet" for="{{ sweet.id }}"> |
|
34 | <a href="#"> |
|
35 | <i class="glyphicon glyphicon-edit"></i> |
|
36 | </a> |
|
37 | </span> |
|
38 | </li> |
|
39 | {% endfor %} |
|
40 | </ul> |
|
41 | ||
42 | {% else %} |
|
43 | <div class="row"> |
|
44 | <div class="col-md-5"> |
|
45 | <h4><em>Unbelievable! No sweets yet!!</em></h4> |
|
46 | </div> |
|
47 | </div> |
|
48 | {% endif %} |
|
49 | ||
50 | <div class="modal fade" id="edit-sweet-modal"> |
|
51 | <div class="modal-dialog"> |
|
52 | <div class="modal-content"> |
|
53 | <div class="modal-header"> |
|
54 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
|
55 | <h4 class="modal-title">Edit Sweet </h4> |
|
56 | </div> |
|
57 | <div class="modal-body"></div> |
|
58 | <div |
|
59 | class="modal-footer"> |
|
60 | <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
|
61 | <button type="button" class="btn btn-primary" id="save-edited-sweet">Save changes</button> |
|
62 | </div> |
|
63 | </div><!-- /.modal-content --> |
|
64 | </div><!-- /.modal-dialog --> |
|
65 | </div><!-- /.modal --> |
|
66 | ||
67 | {% endblock %} |
|
68 |