Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
software-dev-7054cem/templates/report_details.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
126 lines (121 sloc)
4.67 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Demo</title> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous"> | |
</head> | |
<body> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script> | |
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | |
<div class="container-fluid"> | |
<a class="navbar-brand" href="#">Local Council</a> | |
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | |
<span class="navbar-toggler-icon"></span> | |
</button> | |
<div class="collapse navbar-collapse" id="navbarNav"> | |
<ul class="navbar-nav"> | |
<li class="nav-item"> | |
<a class="nav-link" aria-current="page" href="/">Home</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Residents</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Business</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Council</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Healthcare</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="#">Latest News</a> | |
</li> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link" href="/sign-in">Staff</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link active" href="#">Report an issue</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</nav> | |
<div class="alert alert-primary" role="alert"> | |
<p style="margin-left:5px">The latest government advice on Coronavirus is now available <a href="#">here</a></p> | |
</div> | |
<div align="center"> | |
<h2>Issue Details</h2> | |
<br><br> | |
<hr style="width:100%;" /> | |
<div class="container" align="left"> | |
<h4> {{title}} </h4> | |
<span class="badge bg-primary">{{query}}</span> | |
<hr /> | |
<h5>Description:</h5> | |
<p>{{description}}</p> | |
<hr /> | |
<h5>Location:</h5> | |
<p>{{location}}</p> | |
<hr /> | |
<h5>Time</h5> | |
<p>{{date}}</p> | |
<div class="d-grid gap-2"> | |
<a class="btn btn-success" href="tel:{{phone}}" type="button">Call {{phone}}</a> | |
</div> | |
<br /> | |
{% if solved == 1 %} | |
<form action = "{{ url_for('delete', id=id) }}" method = "POST"> | |
<div class="d-grid gap-2"> | |
<button class="btn btn-danger" type="submit">Archive Issue</button> | |
</div> | |
</form> | |
{% else %} | |
<form action = "{{ url_for('issue_detailed', id=id) }}" method = "POST"> | |
<div class="d-grid gap-2"> | |
<button class="btn btn-primary" type="submit">Mark as Solved</button> | |
</div> | |
</form> | |
<br /> | |
<div class="d-grid gap-2"> | |
<button type="button" class="btn btn-secondary" data-bs-toggle="modal" data-bs-target="#exampleModal"> | |
Email User | |
</button> | |
<br /> | |
<hr /> | |
<h4>Past Messages</h4> | |
<p>{{messages}}</p> | |
<br /> | |
<p style="text-align:center">For any enquiries please contact {{manager_info}}</p> | |
<br/> <br /> | |
</div> | |
<!-- Modal --> | |
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title" id="exampleModalLabel">Email User</h5> | |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | |
</div> | |
<form action = "{{ url_for('email', id=userid, issue=id) }}" method = "POST"> | |
<div class="modal-body"> | |
<div class="mb-3"> | |
<label for="exampleFormControlTextarea1" class="form-label">Email Text</label> | |
<textarea class="form-control" name = "emailText" id="exampleFormControlTextarea1" rows="3"></textarea> | |
</div> | |
</div> | |
<div class="modal-footer"> | |
<button class="btn btn-primary" type="submit">Send</button> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
</div> | |
</div> | |
</body> | |
</html> |