add first template for location_data object
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
{% load static %}
|
||||
<html>
|
||||
<head>
|
||||
<title>Test</title>
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'billard/css/bootstrap.css' %}" />
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'billard/css/bootstrap.min.css' %}" />
|
15
billard/templates/billard/locationdata_list.html
Normal file
15
billard/templates/billard/locationdata_list.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends 'billard/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
{% if object_list %}
|
||||
<ul>
|
||||
{% for location_data in object_list %}
|
||||
<li><a href="/location_data/{{ location_data.id }}/">{{ location_data.location_id }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No data available.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
Reference in New Issue
Block a user