- Improve the styling of the multiple object action form by controlling the top and bottom margins.

- Equalize styling of the multiple object action form in the list items and item subtemplates.

Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
Eric Riggs
2018-02-22 16:07:17 -04:00
committed by Roberto Rosario
parent f923904a0e
commit c85035b58e
2 changed files with 16 additions and 13 deletions

View File

@@ -39,7 +39,7 @@
{% get_multi_item_links_form object_list %}
{% endif %}
{% if multi_item_actions %}
<fieldset>
<fieldset style="margin-top: -10px;">
<input class="check-all" type="checkbox"/>&nbsp;
{{ multi_item_form }}
</fieldset>

View File

@@ -20,19 +20,22 @@
<hr>
<div class="well center-block">
<div class="clearfix">
<div class="pull-right">
<form action="{% url 'common:multi_object_action_view' %}" class="pure-form" method="get">
{% if object_list %}
{% if not hide_multi_item_actions %}
{% get_multi_item_links_form object_list %}
{% endif %}
{% if multi_item_actions %}
<fieldset style="margin-top: -10px; margin-bottom: 10px;">
{{ multi_item_form }}
</fieldset>
{% endif %}
{% endif %}
<form action="{% url 'common:multi_object_action_view' %}" class="pure-form" method="get">
{% if object_list %}
{% if not hide_multi_item_actions %}
{% get_multi_item_links_form object_list %}
{% endif %}
{% if multi_item_actions %}
<fieldset>
{{ multi_item_form }}
</fieldset>
{% endif %}
{% endif %}
</div>
</div>
{% if scrollable_content %}
<div style="border: 1px solid; height: {{ scrollable_content_height }}; overflow: auto;">
{% endif %}