update template
This commit is contained in:
parent
1d0da1eb27
commit
5c21ec8699
6
billard/static/billard/css/billard.css
Normal file
6
billard/static/billard/css/billard.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
body {
|
||||||
|
padding-top: 50px;
|
||||||
|
}
|
||||||
|
.starter-template {
|
||||||
|
padding: 40px 15px;
|
||||||
|
}
|
@ -1,12 +1,48 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
<html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<html lang="de">
|
||||||
<title>Test</title>
|
<head>
|
||||||
<link rel="stylesheet" type="text/css" href="{% static 'billard/css/bootstrap.css' %}" />
|
<meta charset="utf-8">
|
||||||
</head>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<body>
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>{% block title %}TITLE SETZEN{% endblock %}</title>
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="">
|
||||||
|
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<link href="{% static 'billard/css/bootstrap.min.css' %}" rel="stylesheet" type="text/css">
|
||||||
|
<link href="{% static 'billard/css/billard.css' %}" rel="stylesheet" type="text/css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||||
|
<span class="sr-only">Navigation ein-/ausblenden</span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="#">Billard</a>
|
||||||
|
</div>
|
||||||
|
<div id="navbar" class="collapse navbar-collapse">
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
<li class="active"><a href="#">Start</a></li>
|
||||||
|
<li><a href="#ueber">Über</a></li>
|
||||||
|
<li><a href="#kontakt">Kontakt</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!--/.nav-collapse -->
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="starter-template">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</div>
|
||||||
</html>
|
</div><!-- /.container -->
|
||||||
|
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
||||||
|
<script src="js/bootstrap.min.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
@ -1,12 +1,28 @@
|
|||||||
{% extends 'billard/base.html' %}
|
{% extends 'billard/base.html' %}
|
||||||
|
|
||||||
|
{% block title %}Location Data{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if object_list %}
|
{% if object_list %}
|
||||||
<ul>
|
<h1>Location Data</h1>
|
||||||
|
<table class="table table-hover">
|
||||||
|
<tr>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>Location</th>
|
||||||
|
<th>Table</th>
|
||||||
|
<th>Timestamp</th>
|
||||||
|
<th>On_Off</th>
|
||||||
|
</tr>
|
||||||
{% for location_data in object_list %}
|
{% for location_data in object_list %}
|
||||||
<li><a href="/location_data/{{ location_data.id }}/">{{ location_data.location_id }}</a></li>
|
<tr>
|
||||||
|
<td>{{ location_data.id }}</td>
|
||||||
|
<td>{{ location_data.location_id }}</td>
|
||||||
|
<td>{{ location_data.table_no }}</td>
|
||||||
|
<td>{{ location_data.tst }}</td>
|
||||||
|
<td>{{ location_data.on_off }}</td>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</table>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>No data available.</p>
|
<p>No data available.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user