remove template
This commit is contained in:
parent
024b42e96b
commit
467f5797fd
@ -1,56 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
{% block title %}<title>Gabriel's DRM</title>{% endblock %}
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
|
|
||||||
<!--Add additional CSS in static file -->
|
|
||||||
{% load static %}
|
|
||||||
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
|
||||||
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.png' %}"/>
|
|
||||||
<style>
|
|
||||||
{% load static %}
|
|
||||||
body {
|
|
||||||
background-image: url('{% static "images/wall.jpg" %}');
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.col-sm-5{
|
|
||||||
|
|
||||||
margin-top: 20px;
|
|
||||||
border-radius: 25px;
|
|
||||||
padding: 20px;
|
|
||||||
box-shadow: 0 10px 20px rgba(0, 0, 0, .7);
|
|
||||||
backdrop-filter: blur(6px);
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-2">
|
|
||||||
{% block sidebar %}
|
|
||||||
<ul class="sidebar-nav">
|
|
||||||
<li><a href="{% url 'index' %}">Home</a></li>
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<li> Username: {{ user.get_username }}</li>
|
|
||||||
<li> Folder ID: {{ user.folderinfo }}</li>
|
|
||||||
<li><a href="{% url 'create-license' user.folderinfo.id %}">Create License</a></li>
|
|
||||||
<li><a href="{% url 'given-licenses' %}">Given Licenses</a></li>
|
|
||||||
<li><a href="{% url 'my-licenses' %}">My Licenses</a></li>
|
|
||||||
<li><a href="{% url 'logout'%}?next={{request.path}}">Logout</a></li>
|
|
||||||
{% else %}
|
|
||||||
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
|
|
||||||
{% endif %}
|
|
||||||
<li id="app"></li>
|
|
||||||
</ul>
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-5">{% block content %}{% endblock %}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="{% static 'frontend/main.js' %}"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,27 +0,0 @@
|
|||||||
{% extends "base_generic.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Title: {{ book.title }}</h1>
|
|
||||||
|
|
||||||
<p><strong>Author:</strong> <a href="">{{ book.author }}</a></p> <!-- author detail link not yet defined -->
|
|
||||||
<p><strong>Summary:</strong> {{ book.summary }}</p>
|
|
||||||
<p><strong>ISBN:</strong> {{ book.isbn }}</p>
|
|
||||||
<p><strong>Language:</strong> {{ book.language }}</p>
|
|
||||||
<p><strong>Genre:</strong> {{ book.genre.all|join:", " }}</p>
|
|
||||||
|
|
||||||
<div style="margin-left:20px;margin-top:20px">
|
|
||||||
<h4>Copies</h4>
|
|
||||||
|
|
||||||
{% for copy in book.bookinstance_set.all %}
|
|
||||||
<hr>
|
|
||||||
<p class="{% if copy.status == 'a' %}text-success{% elif copy.status == 'm' %}text-danger{% else %}text-warning{% endif %}">
|
|
||||||
{{ copy.get_status_display }}
|
|
||||||
</p>
|
|
||||||
{% if copy.status != 'a' %}
|
|
||||||
<p><strong>Due to be returned:</strong> {{ copy.due_back }}</p>
|
|
||||||
{% endif %}
|
|
||||||
<p><strong>Imprint:</strong> {{ copy.imprint }}</p>
|
|
||||||
<p class="text-muted"><strong>Id:</strong> {{ copy.id }}</p>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
@ -1,16 +0,0 @@
|
|||||||
{% extends "base_generic.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Book List</h1>
|
|
||||||
{% if book_list %}
|
|
||||||
<ul>
|
|
||||||
{% for book in book_list %}
|
|
||||||
<li>
|
|
||||||
<a href="{{ book.get_absolute_url }}">{{ book.title }}</a> ({{book.author}})
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% else %}
|
|
||||||
<p>There are no books in the library.</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
@ -1,19 +0,0 @@
|
|||||||
{% extends "base_generic.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Borrowed books</h1>
|
|
||||||
|
|
||||||
{% if bookinstance_list %}
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
{% for bookinst in bookinstance_list %}
|
|
||||||
<li class="{% if bookinst.is_overdue %}text-danger{% endif %}">
|
|
||||||
<a href="{% url 'book-detail' bookinst.book.pk %}">{{bookinst.book.title}}</a> ({{ bookinst.due_back }})
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
<p>There are no books borrowed.</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
@ -1,14 +0,0 @@
|
|||||||
{% extends "base_generic.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Creating Process...</h1>
|
|
||||||
|
|
||||||
<form id="appl" action="" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
<table>
|
|
||||||
{{ form.as_p }}
|
|
||||||
</table>
|
|
||||||
<input type="submit" value="Submit" id="submit_button">
|
|
||||||
<div id="appl2"/>
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
@ -1,20 +0,0 @@
|
|||||||
{% extends "base_generic.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Licenses</h1>
|
|
||||||
{% if license_list %}
|
|
||||||
<ul>
|
|
||||||
{% for license in license_list %}
|
|
||||||
<li>
|
|
||||||
{% if request.get_full_path == "/health_view/mylicenses/" %}
|
|
||||||
<a href="{{ license.get_license_own }}">{{ license.patient }}</a> ({{license.justified}})
|
|
||||||
{% else %}
|
|
||||||
<a href="{{ license.get_license_given }}">{{ license.patient }}</a> ({{license.justified}})
|
|
||||||
{% endif %}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% else %}
|
|
||||||
<p>There are no Licenses.</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
@ -1,14 +0,0 @@
|
|||||||
{% extends "base_generic.html" %}
|
|
||||||
{% block title %}
|
|
||||||
<title>Gabriel's DRM</title>
|
|
||||||
{% endblock %}
|
|
||||||
{% block content %}
|
|
||||||
<h1>Local Health View</h1>
|
|
||||||
<p>Welcome to <em>Gabriel Kaufmann's </em>DRM System!</p>
|
|
||||||
<h2>Dynamic content</h2>
|
|
||||||
<p>The System has the following record counts:</p>
|
|
||||||
<ul>
|
|
||||||
<li><strong>User: </strong> {{ num_user }}</li>
|
|
||||||
<li><strong>Licenses:</strong> {{ num_licenses }}</li>
|
|
||||||
</ul>
|
|
||||||
{% endblock %}
|
|
Loading…
x
Reference in New Issue
Block a user