mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-25 02:20:26 +00:00
Merge pull request #30 from audreyr/master
index.html now extends base.html
This commit is contained in:
commit
b7087aa320
2 changed files with 23 additions and 5 deletions
19
djadmin2/templates/admin2/bootstrap/base.html
Normal file
19
djadmin2/templates/admin2/bootstrap/base.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>django-admin2</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Bootstrap -->
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<script src="http://code.jquery.com/jquery.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
{% block extrajs %}{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
<html>
|
||||
<body>
|
||||
{% extends "admin/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Index</h1>
|
||||
|
||||
<table>
|
||||
|
|
@ -7,6 +8,4 @@
|
|||
<tr><td>{{ obj. }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% endblock content %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue