Commit f917493812a62b66a7360a32f103b79c5f615d3e
1 parent
cc3ece3f
Exists in
master
and in
5 other branches
Email backend template #211
Showing
3 changed files
with
146 additions
and
4 deletions
Show diff stats
@@ -0,0 +1,135 @@ | @@ -0,0 +1,135 @@ | ||
1 | +{% extends "home.html" %} | ||
2 | + | ||
3 | +{% load static i18n django_bootstrap_breadcrumbs permission_tags %} | ||
4 | + | ||
5 | +{% block breadcrumbs %} | ||
6 | + {{ block.super }} | ||
7 | + {% breadcrumb 'Settings' 'app:settings' %} | ||
8 | +{% endblock %} | ||
9 | + | ||
10 | +{% block content %} | ||
11 | + <!-- Nav tabs --> | ||
12 | + <ul class="nav nav-tabs md-pills pills-ins" role="tablist"> | ||
13 | + <li class="nav-item"> | ||
14 | + <a class="nav-link active" data-toggle="tab" href="#panel1" role="tab"><i class="fa fa-cog"></i> System</a> | ||
15 | + </li> | ||
16 | + <li class="nav-item"> | ||
17 | + <a class="nav-link" data-toggle="tab" href="#panel2" role="tab"><i class="fa fa-envelope"></i> Mail Sender</a> | ||
18 | + </li> | ||
19 | + <li class="nav-item"> | ||
20 | + <a class="nav-link" data-toggle="tab" href="#panel3" role="tab"><i class="fa fa-lock"></i> Security</a> | ||
21 | + </li> | ||
22 | + </ul> | ||
23 | + | ||
24 | + <!-- Tab panels --> | ||
25 | + <div class="tab-content"> | ||
26 | + <!--Panel 1--> | ||
27 | + <div class="tab-pane fade in active" id="panel1" role="tabpanel"> | ||
28 | + <div class="panel panel-default"> | ||
29 | + <div class="panel-body"> | ||
30 | + <h3><b>General</b></h3> | ||
31 | + <div class="panel panel-default"> | ||
32 | + <div class="panel-body"> | ||
33 | + Content | ||
34 | + <hr> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + <!--/.Panel 1--> | ||
41 | + | ||
42 | + <!--Panel 2--> | ||
43 | + <div class="tab-pane fade" id="panel2" role="tabpanel"> | ||
44 | + <div class="panel panel-default"> | ||
45 | + <div class="panel-body"> | ||
46 | + <h3><b>Outgoing Server (SMTP)</b></h3> | ||
47 | + <div class="panel panel-default"> | ||
48 | + <div class="panel-body"> | ||
49 | + <h4><b>Settings</b></b></h4> | ||
50 | + <hr> | ||
51 | + <div class="form-group label-floating"> | ||
52 | + <label class="control-label" for="focusedInput1">Description</label> | ||
53 | + <input class="form-control" id="focusedInput1" type="text"> | ||
54 | + </div> | ||
55 | + <div class="form-group label-floating"> | ||
56 | + <label class="control-label" for="focusedInput1">Server</label> | ||
57 | + <input class="form-control" id="focusedInput1" type="text"> | ||
58 | + </div> | ||
59 | + <div class="form-group label-floating"> | ||
60 | + <label for="number" class="col-md_10 control-label">Port</label> | ||
61 | + <div class="col-md-2"> | ||
62 | + <input type="number" class="form-control" id="inputNumber"> | ||
63 | + </div> | ||
64 | + <div> | ||
65 | + <label for="number">Deafault:</label> 25 | ||
66 | + </div> | ||
67 | + </div> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="panel-body"> | ||
72 | + <div class="panel panel-default"> | ||
73 | + <div class="panel-body"> | ||
74 | + <h4><b>Security and Authentication</b></h4> | ||
75 | + <hr> | ||
76 | + <div class="form-group label-floating"> | ||
77 | + <label class="control-label" for="focusedInput1">User Name</label> | ||
78 | + <input class="form-control" id="focusedInput1" type="text"> | ||
79 | + </div> | ||
80 | + <div class="form-group label-floating"> | ||
81 | + <label class="control-label" for="focusedInput1">Password</label> | ||
82 | + <input class="form-control" id="focusedInput1" type="password"> | ||
83 | + </div> | ||
84 | + <div class="form-group"> | ||
85 | + <p><b>Use safe contection</b></p> | ||
86 | + <div class="col-md-10"> | ||
87 | + <div class="radio radio-primary"> | ||
88 | + <label> | ||
89 | + <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1"> | ||
90 | + No | ||
91 | + </label> | ||
92 | + <label> | ||
93 | + <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"> | ||
94 | + TSL, If available | ||
95 | + </label> | ||
96 | + <label> | ||
97 | + <input type="radio" name="optionsRadios" id="optionsRadios3" value="option3"> | ||
98 | + TSL | ||
99 | + </label> | ||
100 | + <label> | ||
101 | + <input type="radio" name="optionsRadios" id="optionsRadios4" value="option4" checked=""> | ||
102 | + SSL | ||
103 | + </label> | ||
104 | + </div> | ||
105 | + </div> | ||
106 | + </div> | ||
107 | + </div> | ||
108 | + </div> | ||
109 | + <button type="button" class="btn btn-success btn-raised">Save changes</button> | ||
110 | + </div> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | + | ||
114 | + <!--/.Panel 2--> | ||
115 | + | ||
116 | + <!--Panel 3--> | ||
117 | + <div class="tab-pane fade" id="panel3" role="tabpanel"> | ||
118 | + <div class="panel panel-default"> | ||
119 | + <div class="panel-body"> | ||
120 | + <div class="togglebutton"> | ||
121 | + <label> | ||
122 | + <input type="checkbox" checked> <b>Allow users self-enroll.</b> | ||
123 | + </label> | ||
124 | + </div> | ||
125 | + <div class="togglebutton"> | ||
126 | + <label> | ||
127 | + <input type="checkbox"> <b>Put the system in maintenance mode.</b> | ||
128 | + </label> | ||
129 | + </div> | ||
130 | + <button type="button" class="btn btn-primary">Save changes</button> | ||
131 | + </div> | ||
132 | + </div> | ||
133 | + </div> | ||
134 | + </div> | ||
135 | +{% endblock content %} | ||
0 | \ No newline at end of file | 136 | \ No newline at end of file |
app/templates/home.html
@@ -84,6 +84,7 @@ | @@ -84,6 +84,7 @@ | ||
84 | <li><a href="{% url 'core:guest' %}">{% trans 'All Courses' %}</a></li> | 84 | <li><a href="{% url 'core:guest' %}">{% trans 'All Courses' %}</a></li> |
85 | {% if user|has_role:'system_admin' %} | 85 | {% if user|has_role:'system_admin' %} |
86 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> | 86 | <li> <a href="{% url 'users:manage' %}">{% trans 'Manage Users' %}</a></li> |
87 | + <li> <a href="{% url 'app:settings' %}">{% trans 'Settings' %}</a></li> | ||
87 | {% endif %} | 88 | {% endif %} |
88 | {% if user|has_role:'system_admin' or user|has_role:'professor' %} | 89 | {% if user|has_role:'system_admin' or user|has_role:'professor' %} |
89 | <li> | 90 | <li> |
core/templates/base.html
@@ -20,15 +20,21 @@ | @@ -20,15 +20,21 @@ | ||
20 | 20 | ||
21 | <!-- Bootstrap and themes (material) --> | 21 | <!-- Bootstrap and themes (material) --> |
22 | <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-3.3.7/css/bootstrap.css' %}"> | 22 | <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-3.3.7/css/bootstrap.css' %}"> |
23 | - <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/material.min.css' %}"> | ||
24 | - <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/ripples.min.css' %}"> | 23 | + <link rel="stylesheet" type="text/css" href="{% static 'material/css/bootstrap-material-design.css' %}"> |
24 | + <link rel="stylesheet" type="text/css" href="{% static 'material/css/bootstrap-material-design.min.css' %}"> | ||
25 | + <link rel="stylesheet" type="text/css" href="{% static 'material/css/ripples.css' %}"> | ||
26 | + <link rel="stylesheet" type="text/css" href="{% static 'material/css/ripples.min.css' %}"> | ||
27 | + | ||
28 | + | ||
25 | <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/bootstrap-datepicker.standalone.css' %}"> | 29 | <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/bootstrap-datepicker.standalone.css' %}"> |
26 | <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/alertifyjs/alertify.min.css' %}"> | 30 | <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/alertifyjs/alertify.min.css' %}"> |
27 | <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/alertifyjs/themes/bootstrap.css' %}"> | 31 | <link rel="stylesheet" type="text/css" href="{% static 'css/vendor/alertifyjs/themes/bootstrap.css' %}"> |
28 | <script type="text/javascript" src="{% static 'bootstrap-3.3.7/js/bootstrap.js' %}"></script> | 32 | <script type="text/javascript" src="{% static 'bootstrap-3.3.7/js/bootstrap.js' %}"></script> |
29 | <script type="text/javascript" src="{% static 'js/vendor/bootstrap-acessibility.min.js' %}"></script> | 33 | <script type="text/javascript" src="{% static 'js/vendor/bootstrap-acessibility.min.js' %}"></script> |
30 | - <script type="text/javascript" src="{% static 'js/vendor/material.min.js' %}"></script> | ||
31 | - <script type="text/javascript" src="{% static 'js/vendor/ripples.min.js' %}"></script> | 34 | + <script type="text/javascript" src="{% static 'material/js/material.js' %}"></script> |
35 | + <script type="text/javascript" src="{% static 'material/js/material.min.js' %}"></script> | ||
36 | + <script type="text/javascript" src="{% static 'material/js/ripples.js' %}"></script> | ||
37 | + <script type="text/javascript" src="{% static 'material/js/ripples.min.js' %}"></script> | ||
32 | <script type="text/javascript" src="{% static 'js/vendor/bootstrap-datepicker.js' %}"></script> | 38 | <script type="text/javascript" src="{% static 'js/vendor/bootstrap-datepicker.js' %}"></script> |
33 | 39 | ||
34 | {% with "js/vendor/locales/bootstrap-datepicker."|add:LANGUAGE_CODE|add:".js" as locale_datepicker %} | 40 | {% with "js/vendor/locales/bootstrap-datepicker."|add:LANGUAGE_CODE|add:".js" as locale_datepicker %} |