Commit aec595598aa249c7f6be16abe8ca68327c0cf737
1 parent
4d07f46f
Exists in
master
and in
1 other branch
- add mixing template from last commit.
Showing
3 changed files
with
22 additions
and
4 deletions
Show diff stats
static/js/question_disabler.js
| @@ -4,7 +4,4 @@ $(document).ready(function() { | @@ -4,7 +4,4 @@ $(document).ready(function() { | ||
| 4 | // The flip switch is on the bar, and is still accessible. | 4 | // The flip switch is on the bar, and is still accessible. |
| 5 | $(this).parent().parent().next().slideToggle("fast"); | 5 | $(this).parent().parent().next().slideToggle("fast"); |
| 6 | }); | 6 | }); |
| 7 | - // $(function () { | ||
| 8 | - // $('[data-toggle="popover"]').popover(); | ||
| 9 | - // }); | ||
| 10 | }); | 7 | }); |
templates/login.html
| @@ -11,10 +11,12 @@ | @@ -11,10 +11,12 @@ | ||
| 11 | <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css"> | 11 | <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css"> |
| 12 | 12 | ||
| 13 | <!-- Scripts --> | 13 | <!-- Scripts --> |
| 14 | + <script src="/static/jquery.min.js"></script> | ||
| 14 | <script defer src="/static/fontawesome/js/all.min.js"></script> | 15 | <script defer src="/static/fontawesome/js/all.min.js"></script> |
| 15 | - <script defer src="/static/jquery.min.js"></script> | ||
| 16 | <script defer src="/static/popper.min.js"></script> | 16 | <script defer src="/static/popper.min.js"></script> |
| 17 | <script defer src="/static/bootstrap/js/bootstrap.min.js"></script> | 17 | <script defer src="/static/bootstrap/js/bootstrap.min.js"></script> |
| 18 | +</script> | ||
| 19 | + | ||
| 18 | </head> | 20 | </head> |
| 19 | <!-- =================================================================== --> | 21 | <!-- =================================================================== --> |
| 20 | <body> | 22 | <body> |
| @@ -0,0 +1,19 @@ | @@ -0,0 +1,19 @@ | ||
| 1 | +{% autoescape %} | ||
| 2 | + | ||
| 3 | +{% if q['type'] == 'information' %} | ||
| 4 | + <div class="alert alert-info border-info" role="alert"> | ||
| 5 | +{% elif q['type'] == 'success' %} | ||
| 6 | + <div class="alert alert-success border-success" role="alert"> | ||
| 7 | +{% elif q['type'] == 'warning' %} | ||
| 8 | + <div class="alert alert-warning border-warning" role="alert"> | ||
| 9 | +{% else %} | ||
| 10 | + <div class="alert alert-danger border-danger" role="alert"> | ||
| 11 | +{% end %} | ||
| 12 | + <h3> | ||
| 13 | + {{ q['title'] }} | ||
| 14 | + </h3> | ||
| 15 | + | ||
| 16 | + <div id="text"> | ||
| 17 | + {{ md(q['text']) }} | ||
| 18 | + </div> | ||
| 19 | +</div> | ||
| 0 | \ No newline at end of file | 20 | \ No newline at end of file |