forked from blackberry/saturnring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-pick orphan LV, createtarget without the set -e stuff, admin has t…
…emplate change_list for usr total assigned quota value
- Loading branch information
Sachin Agarwal
committed
Mar 23, 2015
1 parent
5b6c9d3
commit 88d3af2
Showing
6 changed files
with
142 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load i18n admin_urls admin_static admin_list %} | ||
|
||
{% block extrastyle %} | ||
{{ block.super }} | ||
<link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" /> | ||
{% if cl.formset %} | ||
<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" /> | ||
{% endif %} | ||
{% if cl.formset or action_form %} | ||
<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script> | ||
{% endif %} | ||
{{ media.css }} | ||
{% if not actions_on_top and not actions_on_bottom %} | ||
<style> | ||
#changelist table thead th:first-child {width: inherit} | ||
</style> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block extrahead %} | ||
{{ block.super }} | ||
{{ media.js }} | ||
{% if action_form %}{% if actions_on_top or actions_on_bottom %} | ||
<script type="text/javascript"> | ||
(function($) { | ||
$(document).ready(function($) { | ||
$("tr input.action-select").actions(); | ||
}); | ||
})(django.jQuery); | ||
</script> | ||
{% endif %}{% endif %} | ||
{% endblock %} | ||
|
||
{% block bodyclass %}change-list{% endblock %} | ||
|
||
{% if not is_popup %} | ||
{% block breadcrumbs %} | ||
<div class="breadcrumbs"> | ||
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a> | ||
› <a href="{% url 'admin:app_list' app_label=cl.opts.app_label %}">{{ app_label|capfirst|escape }}</a> | ||
› {{ cl.opts.verbose_name_plural|capfirst }} | ||
</div> | ||
{% endblock %} | ||
{% endif %} | ||
|
||
{% block coltype %}flex{% endblock %} | ||
|
||
{% block content %} | ||
<div id="content-main"> | ||
{% block object-tools %} | ||
{% if has_add_permission %} | ||
<ul class="object-tools"> | ||
{% block object-tools-items %} | ||
<li> | ||
{% url cl.opts|admin_urlname:'add' as add_url %} | ||
<a href="{% add_preserved_filters add_url is_popup %}" class="addlink"> | ||
{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %} | ||
</a> | ||
</li> | ||
{% endblock %} | ||
</ul> | ||
{% endif %} | ||
{% endblock %} | ||
{% if cl.formset.errors %} | ||
<p class="errornote"> | ||
{% if cl.formset.total_error_count == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %} | ||
</p> | ||
{{ cl.formset.non_form_errors }} | ||
{% endif %} | ||
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> | ||
{% block search %}{% search_form cl %}{% endblock %} | ||
{% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} | ||
|
||
{% block filters %} | ||
{% if cl.has_filters %} | ||
<div id="changelist-filter"> | ||
<h2>{% trans 'Filter' %}</h2> | ||
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
<form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %} | ||
{% if cl.formset %} | ||
<div>{{ cl.formset.management_form }}</div> | ||
{% endif %} | ||
|
||
{% block result_list %} | ||
{% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} | ||
{% result_list cl %} | ||
{% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} | ||
{% if cl.total_alloc_GB %} Total quota promised: {{ cl.total_alloc_GB }} GB{% endif %} | ||
{% if cl.total_cluster_GB %} Total cluster size: {{ cl.total_cluster_GB }} GB{% endif %} | ||
{% endblock %} | ||
{% block pagination %}{% pagination cl %}{% endblock %} | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters