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 %}
|
||||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'billard/css/bootstrap.css' %}" />
|
||||
</head>
|
||||
<body>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<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 %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</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' %}
|
||||
|
||||
{% block title %}Location Data{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% 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 %}
|
||||
<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 %}
|
||||
</ul>
|
||||
</table>
|
||||
{% else %}
|
||||
<p>No data available.</p>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user