Adds ResourceBrowser and ResourceBrowserView class

related: blueprint swift-ui-improvements

Provides new API for building browser for navigation,
as well as new look and feel in CSS.
Applies it to container panel of the nova dashboard.

Change-Id: Iecd984263bae7c3774a0630639f645cee4cffca9
This commit is contained in:
Ke Wu
2012-07-30 11:57:14 -07:00
parent dfdb8375de
commit 89d3d11cb1
23 changed files with 587 additions and 185 deletions

View File

@@ -11,11 +11,13 @@
{{ table.render_table_actions }}
</th>
</tr>
{% if not table.is_browser_table %}
<tr>
{% for column in columns %}
<th {{ column.attr_string|safe }}>{{ column }}</th>
{% endfor %}
</tr>
{% endif %}
</thead>
<tbody>
{% for row in rows %}
@@ -52,4 +54,4 @@
{% endwith %}
{% if needs_form_wrapper %}</form>{% endif %}
</div>
{% endwith %}
{% endwith %}

View File

@@ -0,0 +1,9 @@
{% load i18n %}
<div id="browser_wrapper">
<div class="navigation_wrapper">
{{ browser.navigation_table.render }}
</div>
<div class="content_wrapper">
{{ browser.content_table.render }}
</div>
</div>