| lombardofr | 93770e2 | 2019-08-30 19:37:56 +0200 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright 2019 EveryUP srl |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 17 | {% extends "base.html" %} |
| 18 | |
| 19 | {% load staticfiles %} |
| 20 | |
| 21 | {% block head_block %} |
| 22 | {{ block.super }} |
| lombardofr | e5a130a | 2019-07-15 09:17:59 +0200 | [diff] [blame] | 23 | <link rel="stylesheet" href="/static/node_modules/datatables.net-bs/css/dataTables.bootstrap.min.css"> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 24 | {% endblock %} |
| 25 | {% block title_header_big %} |
| 26 | |
| 27 | {% endblock %} |
| 28 | |
| 29 | {% block left_sidebar %} |
| 30 | |
| 31 | {% endblock %} |
| 32 | |
| 33 | {% block breadcrumb_body %} |
| lombardofr | e5a130a | 2019-07-15 09:17:59 +0200 | [diff] [blame] | 34 | {{ block.super }} |
| 35 | {% if user.is_admin %} |
| 36 | <li><a href="{% url 'projects:projects_list' %}">Projects</a></li> |
| 37 | {% else%} |
| 38 | <li><a href="#">Projects</a></li> |
| 39 | {% endif %} |
| 40 | |
| 41 | |
| 42 | |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 43 | {% endblock %} |
| 44 | |
| 45 | {% block content_body %} |
| 46 | {{ block.super }} |
| 47 | {% if alert_message %} |
| lombardofr | f577644 | 2018-06-26 10:37:40 +0200 | [diff] [blame] | 48 | {% if alert_message.success == True %} |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 49 | <div class="alert alert-success alert-dismissible fade in"> |
| 50 | <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
| 51 | <h4><i class="icon fa fa-check"></i> Success</h4> |
| 52 | {{alert_message.message}} |
| 53 | </div> |
| 54 | {% endif %} |
| lombardofr | f577644 | 2018-06-26 10:37:40 +0200 | [diff] [blame] | 55 | {% if alert_message.success == False %} |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 56 | <div class="alert alert-danger alert-dismissible fade in"> |
| 57 | <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
| 58 | <h4><i class="icon fa fa-ban"></i> Alert!</h4> |
| 59 | {{alert_message.message}} |
| 60 | </div> |
| 61 | {% endif %} |
| 62 | {% endif %} |
| 63 | |
| 64 | {% endblock %} |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | {% block resource_block %} |
| 70 | {{ block.super }} |
| 71 | |
| lombardofr | e5a130a | 2019-07-15 09:17:59 +0200 | [diff] [blame] | 72 | <script src="/static/node_modules/datatables.net/js/jquery.dataTables.min.js"></script> |
| 73 | <script src="/static/node_modules/datatables.net-bs/js/dataTables.bootstrap.min.js"></script> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 74 | |
| 75 | {% endblock %} |
| 76 | |