mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-05-16 11:13:16 +00:00
Merge pull request #86 from audreyr/index-apps-list
Stub out more UI parts for #81
This commit is contained in:
commit
8f6bfceeb8
3 changed files with 58 additions and 21 deletions
15
djadmin2/static/themes/bootstrap/css/bootstrap-custom.css
vendored
Normal file
15
djadmin2/static/themes/bootstrap/css/bootstrap-custom.css
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
/* Fixes a Bootstrap 2.3 bug. This can be removed when upgrading to Bootstrap v3. */
|
||||||
|
.text-right
|
||||||
|
{
|
||||||
|
text-align: right !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-center
|
||||||
|
{
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-left
|
||||||
|
{
|
||||||
|
text-align: left !important;
|
||||||
|
}
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<!-- Bootstrap -->
|
<!-- Bootstrap -->
|
||||||
<link href="{{ STATIC_URL }}themes/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
<link href="{{ STATIC_URL }}themes/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||||
|
<link href="{{ STATIC_URL }}themes/bootstrap/css/bootstrap-custom.css" rel="stylesheet" media="screen">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="navbar navbar-inverse navbar-static-top">
|
<div class="navbar navbar-inverse navbar-static-top">
|
||||||
|
|
|
||||||
|
|
@ -3,26 +3,47 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>Site administration</h3>
|
<h3>Site administration</h3>
|
||||||
|
|
||||||
{% for app, registry in apps.items %}
|
<div class="row">
|
||||||
<table class="table">
|
<div class="span7">
|
||||||
<thead>
|
{% for app, registry in apps.items %}
|
||||||
<tr>
|
<table class="table table-bordered table-condensed">
|
||||||
<th>
|
<thead>
|
||||||
<a href="TODO {{ app.get_index_url }}">{{ app|title }}</a>
|
<tr>
|
||||||
</th>
|
<th colspan="3">
|
||||||
</tr>
|
<a href="TODO {{ app.get_index_url }}">{{ app|title }}</a>
|
||||||
</thead>
|
</th>
|
||||||
<tbody>
|
</tr>
|
||||||
{% for model_class, model_admin in registry.items %}
|
</thead>
|
||||||
<tr>
|
<tbody>
|
||||||
<td>
|
{% for model_class, model_admin in registry.items %}
|
||||||
<a href="{{ model_admin.get_index_url }}">
|
<tr>
|
||||||
{{ model_admin.verbose_name_plural|title }}
|
<td width="40%">
|
||||||
</a>
|
<a href="{{ model_admin.get_index_url }}">
|
||||||
</td>
|
{{ model_admin.verbose_name_plural|title }}
|
||||||
</tr>
|
</a>
|
||||||
|
</td>
|
||||||
|
<td class="text-right">
|
||||||
|
<a href="">
|
||||||
|
<i class="icon-plus"></i>
|
||||||
|
Add
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td class="text-right">
|
||||||
|
<a href="">
|
||||||
|
<i class="icon-pencil"></i>
|
||||||
|
Edit
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
<div class="span5">
|
||||||
{% endfor %}
|
<h4>Recent Actions</h4>
|
||||||
|
<h5>My Actions</h5>
|
||||||
|
TODO
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue