|
1 | | -{% extends "base/module_base.html" %} |
2 | | -{% set active_page = "admin" %} |
3 | | -{% block pagehead %} |
4 | | -<title>{{active_page.capitalize()}}</title> |
5 | | -<style> |
6 | | - .hidden { |
7 | | - display: none; |
8 | | - } |
| 1 | +{% extends get_active_back_theme()+"/base.html" %} |
9 | 2 |
|
10 | | - .show { |
11 | | - display: inline-block; |
12 | | - } |
13 | | - |
14 | | - .active { |
15 | | - width: 6rem; |
16 | | - color: white; |
17 | | - background-color: #34ce57; |
18 | | - } |
19 | | - |
20 | | - .inactive { |
21 | | - width: 6rem; |
22 | | - color: white; |
23 | | - background-color: #ff253a; |
24 | | - } |
25 | | - |
26 | | - .all_inactive { |
27 | | - display: none; |
28 | | - } |
29 | | - </style> |
30 | | -{% endblock %} |
31 | | -{% block sidebar %} |
32 | | -{%include 'appadmin/blocks/sidebar.html'%} |
| 3 | +{%block head%} |
| 4 | + <script src="{{url_for('static', filename='jquery_3.2.1.min.js')}}"></script> |
33 | 5 | {%endblock%} |
| 6 | + |
34 | 7 | {% block content %} |
35 | | -<br> |
36 | | -<div class="container col-md-6 off-set-3"> |
37 | | - <div class="card"> |
38 | | - <div class="card-body"> |
39 | | - <form action="/appadmin/add" method="post"> |
40 | | - <div class="input-group mb-3"> |
41 | | - <div class="input-group-prepend"> |
42 | | - <span class="input-group-text"><i class="fa fa-user"></i></span> |
| 8 | +<div class="container"> |
| 9 | + <br> |
| 10 | + <a href="{{ url_for('appadmin.user_list') }}"> |
| 11 | + <button type="button" class="btn rounded-pill btn-icon btn-primary"> |
| 12 | + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgb(255, 255, 255);transform: ;msFilter:;"><path d="M21 11H6.414l5.293-5.293-1.414-1.414L2.586 12l7.707 7.707 1.414-1.414L6.414 13H21z"></path></svg> |
| 13 | + </button> |
| 14 | + </a> |
| 15 | + <br> |
| 16 | + <div class="container col-md-6 off-set-3"> |
| 17 | + <div class="card"> |
| 18 | + <div class="card-body"> |
| 19 | + <form action="/appadmin/add" method="post"> |
| 20 | + <div class="input-group mb-3"> |
| 21 | + <input type="email" name="email" class="form-control" id="email" placeholder="Email" required autocomplete="off"> |
43 | 22 | </div> |
44 | | - <input type="email" name="email" class="form-control" id="email" placeholder="Email" required autocomplete="off"> |
45 | | - </div> |
46 | | - <div class="input-group mb-3"> |
47 | | - <div class="input-group-prepend"> |
48 | | - <span class="input-group-text"><i class="fa fa-key"></i></span> |
| 23 | + <div class="input-group mb-3"> |
| 24 | + <input type="password" name="password" class="form-control" id="user_password" placeholder="Password" required autocomplete="off"> |
49 | 25 | </div> |
50 | | - <input type="password" name="password" class="form-control" id="user_password" placeholder="Password" required autocomplete="off"> |
51 | | - </div> |
52 | | - <div class="input-group mb-3"> |
53 | | - <div class="input-group-prepend"> |
54 | | - <span class="input-group-text"><i class="fa fa-key"></i></span> |
| 26 | + <div class="input-group mb-3"> |
| 27 | + <input type="text" name="first_name" class="form-control" placeholder="First Name" autocomplete="off"> |
55 | 28 | </div> |
56 | | - <input type="text" name="first_name" class="form-control" placeholder="First Name" autocomplete="off"> |
57 | | - </div> |
58 | | - <div class="input-group mb-3"> |
59 | | - <div class="input-group-prepend"> |
60 | | - <span class="input-group-text"><i class="fa fa-key"></i></span> |
| 29 | + <div class="input-group mb-3"> |
| 30 | + |
| 31 | + <input type="text" name="last_name" class="form-control" placeholder="Last Name" autocomplete="off"> |
61 | 32 | </div> |
62 | | - <input type="text" name="last_name" class="form-control" placeholder="Last Name" autocomplete="off"> |
63 | | - </div> |
64 | | - <div class="input-group mb-3"> |
65 | | - <div class="custom-control custom-checkbox"> |
66 | | - <input type="checkbox" name="is_admin" class="custom-control-input" id="is_admin" value="True" checked> |
67 | | - <label for="is_admin" class="custom-control-label">Admin User</label> |
| 33 | + <div class="input-group mb-3"> |
| 34 | + <div class="custom-control custom-checkbox"> |
| 35 | + <input type="checkbox" name="is_admin" class="custom-control-input" id="is_admin" value="True" checked> |
| 36 | + <label for="is_admin" class="custom-control-label">Admin User</label> |
| 37 | + </div> |
68 | 38 | </div> |
69 | | - </div> |
70 | | - <table class="table"> |
71 | | - <tbody> |
72 | | - {%for role in roles%} |
73 | | - <tr> |
74 | | - <td><input type="checkbox" name="role_{{role.id}}"></td> |
75 | | - <td>{{role.name}}</td> |
76 | | - </tr> |
77 | | - {%endfor%} |
78 | | - </tbody> |
79 | | - </table> |
80 | | - <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> |
81 | | - <input type="submit" class="btn btn-info" value="add" required> |
82 | | - </form> |
| 39 | + <table class="table"> |
| 40 | + <tbody> |
| 41 | + {%for role in roles%} |
| 42 | + <tr> |
| 43 | + <td><input type="checkbox" name="role_{{role.id}}"></td> |
| 44 | + <td>{{role.name}}</td> |
| 45 | + </tr> |
| 46 | + {%endfor%} |
| 47 | + </tbody> |
| 48 | + </table> |
| 49 | + <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> |
| 50 | + <input type="submit" class="btn btn-info" value="add" required> |
| 51 | + </form> |
| 52 | + </div> |
83 | 53 | </div> |
84 | 54 | </div> |
85 | 55 | </div> |
| 56 | + |
86 | 57 | {% endblock %} |
0 commit comments