Browse Source

Ajuste de estilo no controle actions de change_list

producao
Marcio Mazza 10 years ago
parent
commit
57627639c2
  1. 4
      sigiStatic/css/base_site.css
  2. 16
      templates/admin/actions.html
  3. 3
      templates/admin/change_list.html

4
sigiStatic/css/base_site.css

@ -249,3 +249,7 @@ div#footer a {
#user-tools {
position: inherit;
}
.actions {
padding: 0 0 10px 16px;
}

16
templates/admin/actions.html

@ -0,0 +1,16 @@
{% load i18n %}
<div class="actions" style="display:inline-block;">
{% for field in action_form %}{% if field.label %}<span style="vertical-align:middle">{{ field.label }}</span> {% endif %}{{ field }}{% endfor %}
<button type="submit" class="btn btn-default btn-sm" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
{% if actions_selection_counter %}
<script type="text/javascript">var _actions_icnt="{{ cl.result_list|length|default:"0" }}";</script>
<span class="action-counter" style="vertical-align:middle">{{ selection_note }}</span>
{% if cl.result_count != cl.result_list|length %}
<span class="all" style="vertical-align:middle">{{ selection_note_all }}</span>
<span class="question" style="vertical-align:middle">
<a class="btn" href="javascript:;" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %}</a>
</span>
<span class="clear" style="vertical-align:middle"><a class="btn" href="javascript:;">{% trans "Clear selection" %}</a></span>
{% endif %}
{% endif %}
</div>

3
templates/admin/change_list.html

@ -60,6 +60,7 @@
</ul>
{% endif %}
{% block search %}{% search_form cl %}{% endblock %}
{% endblock %}
{% block content %}
@ -80,7 +81,7 @@
{% endwith %}
{% if action_form and actions_on_top and cl.full_result_count %}
<div class='pull-right'>{% admin_actions %}</div>
<div class='pull-left'>{% admin_actions %}</div>
{% endif %}
<div id="content-main">

Loading…
Cancel
Save