|
9 | 9 | <meta charset="utf-8"> |
10 | 10 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
11 | 11 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
12 | | - <title>Django CRM</title> |
| 12 | + <title>{{ settings.APPLICATION_NAME }}</title> |
13 | 13 | <link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet"> |
14 | 14 | <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"> |
15 | 15 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" /> |
|
50 | 50 | {% block header %} |
51 | 51 | <header> |
52 | 52 | <nav class="navbar navbar-expand-lg navbar-dark fixed-top"> |
53 | | - |
| 53 | + |
54 | 54 | <div class="dropdown"> |
55 | 55 |
|
56 | 56 | {% if request.user.is_superuser or request.user.role == 'ADMIN' %} |
57 | 57 | <a class="dropdown-toggle navbar-brand" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" |
58 | 58 | aria-haspopup="true" aria-expanded="false" style="color:#44535c"> |
59 | | - Django CRM |
| 59 | + {{ settings.APPLICATION_NAME }} |
60 | 60 | </a> |
61 | 61 | {% else %} |
62 | 62 | {% if request.user.has_sales_access and request.user.has_marketing_access %} |
63 | 63 | <a class="dropdown-toggle navbar-brand" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" |
64 | 64 | aria-haspopup="true" aria-expanded="false" style="color:#44535c"> |
65 | | - Django CRM |
| 65 | + {{ settings.APPLICATION_NAME }} |
66 | 66 | </a> |
67 | 67 | {% elif request.user.has_sales_access and not request.user.has_marketing_access %} |
68 | 68 | <a class="navbar-brand" href="{% url 'common:home' %}" role="button" id="dropdownMenuLink" data-toggle="" |
69 | 69 | aria-haspopup="true" aria-expanded="false" style="color:#44535c"> |
70 | | - Django CRM |
| 70 | + {{ settings.APPLICATION_NAME }} |
71 | 71 | </a> |
72 | 72 | {% elif not request.user.has_sales_access and request.user.has_marketing_access %} |
73 | 73 | <a class="navbar-brand" href="{% url 'marketing:dashboard' %}" role="button" id="dropdownMenuLink" data-toggle="" |
74 | 74 | aria-haspopup="true" aria-expanded="false" style="color:#44535c"> |
75 | | - Django CRM |
| 75 | + {{ settings.APPLICATION_NAME }} |
76 | 76 | </a> |
77 | 77 | {% else %} |
78 | 78 | {{''}} |
79 | 79 | {% endif %} |
80 | 80 | {% endif %} |
81 | 81 |
|
82 | | - |
| 82 | + |
83 | 83 |
|
84 | 84 | <div class="dropdown-menu mt-2" aria-labelledby="dropdownMenuLink"> |
85 | 85 | {% if user.is_superuser or user.role == 'ADMIN' %} |
|
97 | 97 | {{''}} |
98 | 98 | {% endif %} |
99 | 99 | {% endif %} |
100 | | - |
| 100 | + |
101 | 101 | </div> |
102 | 102 | </div> |
103 | 103 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" |
|
215 | 215 | /* |
216 | 216 | Usage is very simple; to block user activity for the page: |
217 | 217 | $.blockUI(); |
218 | | - |
| 218 | +
|
219 | 219 | Blocking with a custom message: |
220 | 220 | $.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' }); |
221 | | - |
| 221 | +
|
222 | 222 | Blocking with custom style: |
223 | 223 | $.blockUI({ css: { backgroundColor: '#f00', color: '#fff'} }); |
224 | | - |
| 224 | +
|
225 | 225 | To unblock the page: |
226 | 226 | $.unblockUI(); |
227 | | - |
| 227 | +
|
228 | 228 | If you want to use the default settings and have the UI blocked for all ajax requests, it's as easy as this: |
229 | 229 | $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI); |
230 | 230 | */ |
|
0 commit comments