diff options
Diffstat (limited to 'ctrack/templates')
-rw-r--r-- | ctrack/templates/403.html | 2 | ||||
-rw-r--r-- | ctrack/templates/account/login.html | 2 | ||||
-rw-r--r-- | ctrack/templates/base.html | 2 | ||||
-rw-r--r-- | ctrack/templates/base_stakeholder.html | 115 | ||||
-rw-r--r-- | ctrack/templates/pages/home.html | 4 | ||||
-rw-r--r-- | ctrack/templates/pages/stakeholder_home.html | 162 |
6 files changed, 282 insertions, 5 deletions
diff --git a/ctrack/templates/403.html b/ctrack/templates/403.html index 77db8ae..e722dd3 100644 --- a/ctrack/templates/403.html +++ b/ctrack/templates/403.html @@ -5,5 +5,7 @@ {% block content %} <h1>Forbidden (403)</h1> +<p>Sorry. You do not have permission to view this page.</p> + <p>CSRF verification failed. Request aborted.</p> {% endblock content %} diff --git a/ctrack/templates/account/login.html b/ctrack/templates/account/login.html index bb261f4..f395478 100644 --- a/ctrack/templates/account/login.html +++ b/ctrack/templates/account/login.html @@ -38,7 +38,7 @@ for a {{ site_name }} account and sign in below:{% endblocktrans %}</p> <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> {% endif %} <a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a> - <button class="primaryAction btn btn-primary" type="submit">{% trans "Sign In" %}</button> + <button class="primaryAction btn btn-primary" id="sign_in_button" type="submit">{% trans "Sign In" %}</button> </form> {% endblock %} diff --git a/ctrack/templates/base.html b/ctrack/templates/base.html index 4398926..c0ee4cd 100644 --- a/ctrack/templates/base.html +++ b/ctrack/templates/base.html @@ -3,7 +3,7 @@ <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> - <title>{% block title %}ctrack{% endblock title %}</title> + <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=""> 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/home.html b/ctrack/templates/pages/home.html index fbce9ff..324da8e 100644 --- a/ctrack/templates/pages/home.html +++ b/ctrack/templates/pages/home.html @@ -2,8 +2,6 @@ {% block content %} - <h1>User profile page</h1> - - <p>User: {{ object }}</p> + <p>THIS IS A TEMPLATE FOR A REGULAR USER</p> {% endblock content %} diff --git a/ctrack/templates/pages/stakeholder_home.html b/ctrack/templates/pages/stakeholder_home.html new file mode 100644 index 0000000..fd40c7a --- /dev/null +++ b/ctrack/templates/pages/stakeholder_home.html @@ -0,0 +1,162 @@ +{% extends "base_stakeholder.html" %} + +{% load static %} + +{% block content %} + + <div class="container mt-3"> + <div class="row"> + <div class="col-md-12 pl-0 my-2"> + + <h2>{{ org }} <span class="badge badge-light">{{ org.submode }}</span></h2> + + <p><span class="text-muted">{{ org.person_set.first }}</span></p> + + <p>THIS IS A TEMPLATE FOR A STAKEHOLDER USER</p> + + <div class="row"> + <div class="col-12"> + <div class="border border-success p-2 rounded bg-light"> + <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 <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> + <span class="text-muted"><a href="#">Help</a> | + <a href="#">NIS Regulations</a> | + <a href="#">Improvement Plan Information</a> | + <a href="#">Report a problem</a></span> + </div> + </div> + </div> + + <hr> + + <div class="row"> + <div class="col md-12"> + <h2>Incident Reporting</h2> + <table class="table"> + <thead> + <tr> + <th scope="col">Incident</th> + <th scope="col">Date</th> + <th scope="col">Details</th> + <th scope="col">Status</th> + </tr> + </thead> + <tr> + <td>Power failure at Random Site</td> + <td>12 May 2020</td> + <td>There was a problem with some wires inside the black box at the site. + There was very little we could do until someone switched the circuit breakers off, + then we had to switch off the server that supplies the TLS link to the estate management + system. We failed on this one, big time.</td> + <td><strong><span class="badge badge-warning">UNRESOLVED</span></strong></td> + </tr> + <tr> + <td>Corruption of main database</td> + <td>8 December 2019</td> + <td>Weather got to the night-watchperson, who typed in the command to seal + the compound incorrectly. This led to a deluge of sand into the minky processor + which eventually wiped all data tables.</td> + <td><strong><span class="badge badge-success">RESOLVED</span></strong></td> + </tr> + </table> + <button class="btn btn-primary">Report a NIS incident</button> + </div> + </div> + <hr> + <div class="row"> + <div class="col md-12"> + <h2>Compliance Events</h2> + <table class="table"> + <thead> + <th scope="col">Date</th> + <th scope="col">Type</th> + <th scope="col">Location</th> + <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 October 2020</td> + <td>Inspection</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 June 2020</td> + <td>Audit</td> + <td>Hammersmith</td> + <td>NA</td> + <td> + <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> + <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> + + <hr> + + <div class="row"> + <div class="col md-12"> + <h2>NIS systems</h2> + <table class="table"> + <thead> + <tr> + <th scope="col">System Name</th> + <th scope="col">Description</th> + <th scope="col">CAF</th> + </tr> + </thead> + {% for system in systems %} + <tr> + <td>{{ system.name }}</td> + <td>{{ system.description }}</td> + <td>{{ system.caf }} | <small><a href="#">Update WebCAF</a></small></td> + </tr> + {% endfor %} + </table> + </div> + </div> + + <hr> + + <div class="row"> + <div class="col md-12"> + <h2>DfT Engagement</h2> + <p>No engagement with DfT currently scheduled</p> + </div> + </div> + + </div> + </div> + </div> + +{% endblock content %} |