Update assign_remove view to work with bootstrap

This commit is contained in:
Roberto Rosario
2015-04-01 03:13:40 -04:00
parent 26d64c45f5
commit 08b8dc3f27
4 changed files with 9 additions and 12 deletions

View File

@@ -16,8 +16,8 @@
<div class="row">
{% for subtemplate in subtemplates_list %}
{% if subtemplate.grid %}
<div class="col-xs-{{ subtemplate.grid }}">
{% if subtemplate.column_class %}
<div class="{{ subtemplate.column_class }}">
{% else %}
<div class="col-xs-12">
{% endif %}

View File

@@ -16,8 +16,8 @@
<div class="row">
{% for subtemplate in subtemplates_list %}
{% if subtemplate.grid %}
<div class="col-xs-{{ subtemplate.grid }}">
{% if subtemplate.column_class %}
<div class="{{ subtemplate.column_class }}">
{% else %}
<div class="col-xs-12">
{% endif %}
@@ -29,8 +29,6 @@
{{ rendered_subtemplate }}
{% endif %}
</div>
{% if subtemplate.grid_clear or not subtemplate.grid %}
{% endif %}
{% endfor %}
{% endfor %}
</div>
{% endblock %}

View File

@@ -12,8 +12,8 @@
<div class="row">
{% for subtemplate in subtemplates_list %}
{% if subtemplate.grid %}
<div class="col-xs-{{ subtemplate.grid }}">
{% if subtemplate.column_class %}
<div class="{{ subtemplate.column_class }}">
{% else %}
<div class="cols-xs-12">
{% endif %}

View File

@@ -135,7 +135,7 @@ def assign_remove(request, left_list, right_list, add_method, remove_method, lef
'subtemplates_list': [
{
'name': 'appearance/generic_form_subtemplate.html',
'grid': 12,
'column_class': 'col-xs-12 col-sm-6 col-md-6 col-lg-6',
'context': {
'form': unselected_list,
'title': left_list_title or ' ',
@@ -145,8 +145,7 @@ def assign_remove(request, left_list, right_list, add_method, remove_method, lef
},
{
'name': 'appearance/generic_form_subtemplate.html',
'grid': 12,
'grid_clear': True,
'column_class': 'col-xs-12 col-sm-6 col-md-6 col-lg-6',
'context': {
'form': selected_list,
'title': right_list_title or ' ',