diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-28 16:11:39 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-28 16:11:39 +0100 |
commit | 520a9deb13f93c689443c0339b1c96a67f0c15a1 (patch) | |
tree | 67390297bcd02b2481f5673629227dfea0884215 /ctrack | |
parent | c7413b7bd4a5b6d4b66aa453f82397137933f31f (diff) |
added new base.html for stakeholders
Diffstat (limited to 'ctrack')
-rw-r--r-- | ctrack/templates/base_stakeholder.html | 115 | ||||
-rw-r--r-- | ctrack/templates/pages/stakeholder_home.html | 40 |
2 files changed, 142 insertions, 13 deletions
diff --git a/ctrack/templates/base_stakeholder.html b/ctrack/templates/base_stakeholder.html new file mode 100644 index 0000000..c2e8cbe --- /dev/null +++ b/ctrack/templates/base_stakeholder.html @@ -0,0 +1,115 @@ +{% load static i18n %}<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta http-equiv="x-ua-compatible" content="ie=edge"> + <title>{% block title %}ctrack - Department for Transport{% endblock title %}</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="description" content=""> + <meta name="author" content=""> + + <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> + <!--[if lt IE 9]> + <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script> + <![endif]--> + + <link rel="icon" href="{% static 'images/favicons/favicon.ico' %}"> + + {% block css %} + + <!-- Latest compiled and minified Bootstrap CSS --> + <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> + + + <!-- Your stuff: Third-party CSS libraries go here --> + + <!-- This file stores project-specific CSS --> + + <link href="{% static 'css/project.css' %}" rel="stylesheet"> +{# <link rel="stylesheet" type="text/css" href="css/DataTables/datatables.min.css"/>#} + <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.20/af-2.3.4/b-1.6.1/b-print-1.6.1/cr-1.5.2/r-2.2.3/datatables.min.css"/> + + {% endblock %} + + </head> + + <body> + + <div class="mb-1"> + <nav class="navbar lemon-bar navbar-expand-md navbar-light bg-light"> + <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> + <span class="navbar-toggler-icon"></span> + </button> + <a id="_title" class="navbar-brand" href="{% url 'core:home' %}">ctrack</a> + + <div class="collapse navbar-collapse" id="navbarSupportedContent"> + <ul class="navbar-nav mr-auto"> + <li class="nav-item active"> + <a class="nav-link" href="{% url 'core:home' %}">Home <span class="sr-only">(current)</span></a> + </li> + + {% if request.user.is_authenticated %} + <li class="nav-item"> + {# URL provided by django-allauth/account/urls.py #} + <a class="nav-link" href="{% url 'users:detail' request.user.username %}">{% trans "My Profile" %}</a> + </li> + <li class="nav-item"> + {# URL provided by django-allauth/account/urls.py #} + <a class="nav-link" href="{% url 'account_logout' %}">{% trans "Sign Out" %}</a> + </li> + {% else %} + <li class="nav-item"> + {# URL provided by django-allauth/account/urls.py #} + <a id="sign-up-link" class="nav-link" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a> + </li> + <li class="nav-item"> + {# URL provided by django-allauth/account/urls.py #} + <a id="log-in-link" class="nav-link" href="{% url 'account_login' %}">{% trans "Sign In" %}</a> + </li> + {% endif %} + </ul> + </div> + </nav> + + </div> + + <div class="container"> + + {% if messages %} + {% for message in messages %} + <div class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %}">{{ message }}<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button></div> + {% endfor %} + {% endif %} + + {% block content %} + <p>Use this document as a way to quick start any new project.</p> + {% endblock content %} + + </div> <!-- /container --> + + {% block modal %}{% endblock modal %} + + <!-- Le javascript + ================================================== --> + <!-- Placed at the end of the document so the pages load faster --> + {% block javascript %} + + <!-- Bootstrap JS and its dependencies--> + <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> + + <!-- Your stuff: Third-party javascript libraries go here --> + + + <!-- place project specific Javascript in this file --> + + <script src="{% static 'js/project.js' %}"></script> +{# <script src="{% static 'js/DataTables/datatables.min.js' %}"></script>#} + <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.20/af-2.3.4/b-1.6.1/b-print-1.6.1/cr-1.5.2/r-2.2.3/datatables.min.js"></script> + + + {% endblock javascript %} + </body> +</html> + diff --git a/ctrack/templates/pages/stakeholder_home.html b/ctrack/templates/pages/stakeholder_home.html index 0d292da..fd40c7a 100644 --- a/ctrack/templates/pages/stakeholder_home.html +++ b/ctrack/templates/pages/stakeholder_home.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base_stakeholder.html" %} {% load static %} @@ -17,10 +17,10 @@ <div class="row"> <div class="col-12"> <div class="border border-success p-2 rounded bg-light"> - <h5>INFORMATION NOTICE:</h5> + <h5>KEY INFORMATION:</h5> <p>Please note that important notices go in here. This is the NIS Directive portal for DfT. Etc.</p> - <p>Your lead inspector is <strong><a href="#">Bob McKinnon</a></strong>.</p> + <p>Your lead inspector is <a href="#">Bob McKinnon</a>.</p> <p>Other important messages will appear here when we deem it necessary. Please ensure you remain in touch with what appears in this box because it <strong>WILL</strong> be updated periodically.</p> @@ -70,7 +70,7 @@ <hr> <div class="row"> <div class="col md-12"> - <h2>Audits and Inspections</h2> + <h2>Compliance Events</h2> <table class="table"> <thead> <th scope="col">Date</th> @@ -79,31 +79,45 @@ <th scope="col">Notes</th> <th scope="col">CAF scope</th> <th scope="col">Status</th> + <th scope="col">Report</th> </thead> <tr> - <td>23/10/2020</td> + <td>23 October 2020</td> <td>Inspection</td> - <td>Hammersmith Warehouse</td> - <td>Follow up to <a href="#">July telephone call</a></td> + <td>Hammersmith</td> + <td>Follow up to <a href="#">July call</a></td> <td> <span class="badge badge-warning">A2.c</span> <span class="badge badge-danger">B2.a</span> </td> <td><span class="badge badge-warning">SCHEDULED</span></td> + <td></td> </tr> <tr> - <td>5/6/2020</td> - <td>Inspection</td> - <td>Hammersmith Warehouse</td> + <td>5 June 2020</td> + <td>Audit</td> + <td>Hammersmith</td> <td>NA</td> <td> - <span class="badge badge-secondary">A3.a</span> + <span class="badge badge-danger">A2.c</span> <span class="badge badge-secondary">B5.c</span> <span class="badge badge-secondary">B6</span> <span class="badge badge-secondary">B7</span> </td> <td><span class="badge badge-success">RESOLVED</span></td> - <etr> + <td><a href="#">DfT-NIS-2302A</a></td> + <tr> + <tr> + <td>19 January 2020</td> + <td>Meeting</td> + <td>Video</td> + <td>NA</td> + <td> + <span class="badge badge-secondary">Obj C</span> + </td> + <td><span class="badge badge-success">RESOLVED</span></td> + <td></td> + <tr> </table> </div> </div> @@ -125,7 +139,7 @@ <tr> <td>{{ system.name }}</td> <td>{{ system.description }}</td> - <td>{{ system.caf }}</td> + <td>{{ system.caf }} | <small><a href="#">Update WebCAF</a></small></td> </tr> {% endfor %} </table> |