{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
	  <div class="pull-right">
	    <a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a>
		<a onclick="$('#form-information').attr('action', '{{ copy }}'); $('#form-information').submit();" data-toggle="tooltip" title="{{ button_copy }}" class="btn btn-warning"><i class="fa fa-copy"></i></a>
        <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-information').submit() : false;"><i class="fa fa-trash-o"></i></button>
      </div>
      <h1>{{ heading_title }}</h1>
      <ul class="breadcrumb">
        {% for breadcrumb in breadcrumbs %}
        <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
        {% endfor %}
      </ul>
    </div>
  </div>
  <div class="container-fluid">
    {% if error_warning %}
    <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    {% endif %}
    {% if success %}
    <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }}
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    {% endif %}
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_list }}</h3>
      </div>
      <div class="panel-body">
        <div class="maxy-backdrop"></div>
	    <div class="messages-body"></div>
		<form action="{{ delete }}" method="post" enctype="multipart/form-data" id="form-information">
          <div class="table-responsive">
            <table class="table table-bordered table-hover">
              <thead>
                <tr class="table-pagination">
				  <td colspan="6">
					<div class="pull-left">{{ pagination }}</div>
					{% if pagination %}
					  <div class="pull-right pagination-text">{{ results }}</div>
					  {% else %}
					  <div class="pull-right">{{ results }}</div>
					{% endif %}
				  </td>
				</tr>
				<tr>
                  <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
                  <td class="text-left">{% if sort == 'id.title' %}
                    <a href="{{ sort_title }}" class="{{ order|lower }}">{{ column_title }}</a>
                    {% else %}
                    <a href="{{ sort_title }}">{{ column_title }}</a>
                    {% endif %}
				  </td>
                  <td class="text-center" style="width: 90px;">{% if sort == 'i.sort_order' %}
                    <a href="{{ sort_sort_order }}" class="{{ order|lower }}">{{ column_sort_order }}</a>
                    {% else %}
                    <a href="{{ sort_sort_order }}">{{ column_sort_order }}</a>
                    {% endif %}
				  </td>
				  <td class="text-center" style="width: 90px;">{{ column_bottom }}</td>
				  <td class="text-center" style="width: 90px;">{{ column_status }}</td>
                  <td class="text-center" style="min-width: 100px; width: 100px;">{{ column_action }}</td>
                </tr>
              </thead>
              <tbody>
                {% if informations %}
                {% for information in informations %}
                <tr>
                  <td class="text-center">{% if information.information_id in selected %}
                    <input type="checkbox" name="selected[]" value="{{ information.information_id }}" checked="checked" />
                    {% else %}
                    <input type="checkbox" name="selected[]" value="{{ information.information_id }}" />
                    {% endif %}
				  </td>
				  <td class="text-left">
				    {% if information_title %}
					  <a onclick="getTitle('{{ information.information_id }}');" data-toggle="popover-maxy" data-target="#information-title-{{ information.information_id }}" data-placement="right right-top" id="information-title{{ information.information_id }}" class="btn-hover-list">{{ information.title }}</a>
				      {% else %}
				      {{ information.title }}
					{% endif %}
				  </td>
				  <td class="text-center">
				    {% if information_sort_order %}
				      <a data-toggle="popover-maxy" data-target="#information-sort-{{ information.information_id }}" data-placement="left left-top" id="information-sort{{ information.information_id }}" class="btn btn-default btn-sm">{{ information.sort_order }}</a>
                      {% else %}
					  {{ information.sort_order }}
					{% endif %}
				  </td>
				  {% if information_bottom %}
				    <td class="text-center" id="information-bottom-{{ information.information_id }}"><a onclick="editButtons('{{ information.information_id }}', 'bottom');" id="bottom-{{ information.information_id }}">{{ information.bottom }}</a><input type="hidden" name="bottoms" value="{{ information.bottoms }}" /></td>
				    {% else %}
				    <td class="text-center">{{ information.no_bottom }}</td>
				  {% endif %}
				  {% if information_status %}
				    <td class="text-center" id="information-status-{{ information.information_id }}"><a onclick="editButtons('{{ information.information_id }}', 'information_status');" id="status-{{ information.information_id }}">{{ information.status }}</a><input type="hidden" name="statuses" value="{{ information.statuses }}" /></td>
				    {% else %}
				    <td class="text-center">{{ information.no_status }}</td>
				  {% endif %}				  
                  <td class="text-center">
				  {% if information_more %}<a data-toggle="popover-maxy" data-target="#information-more-{{ information.information_id }}" data-placement="left" class="btn btn-warning btn-sm"><i class="fa fa-star-o fa-fw"></i></a>{% endif %}
					<a href="{{ information.edit }}" data-toggle="tooltip" title="{{ button_edit }}" class="btn btn-primary btn-sm"><i class="fa fa-pencil fa-fw"></i></a>
				  </td>
                </tr>
                {% endfor %}
                {% else %}
                <tr>
                  <td class="text-center" colspan="6">{{ text_no_results }}</td>
                </tr>
                {% endif %}
              </tbody>
			  <tfoot>
			    <tr>
                  <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
                  <td class="text-left">{% if sort == 'id.title' %}
                    <a href="{{ sort_title }}" class="{{ order|lower }}">{{ column_title }}</a>
                    {% else %}
                    <a href="{{ sort_title }}">{{ column_title }}</a>
                    {% endif %}
				  </td>
                  <td class="text-center">{% if sort == 'i.sort_order' %}
                    <a href="{{ sort_sort_order }}" class="{{ order|lower }}">{{ column_sort_order }}</a>
                    {% else %}
                    <a href="{{ sort_sort_order }}">{{ column_sort_order }}</a>
                    {% endif %}
				  </td>
				  <td class="text-center">{{ column_bottom }}</td>
				  <td class="text-center">{{ column_status }}</td>
                  <td class="text-center">{{ column_action }}</td>
                </tr>
				<tr class="table-pagination">
				  <td colspan="6">
					<div class="pull-left">{{ pagination }}</div>
					{% if pagination %}
					  <div class="pull-right pagination-text">{{ results }}</div>
					  {% else %}
					  <div class="pull-right">{{ results }}</div>
					{% endif %}
				  </td>
				</tr>
			  </tfoot>
            </table>
          </div>
        </form>
      </div>
    </div>
  </div>
  {% if informations %}
    {% for information in informations %}
	  <div id="information-title-{{ information.information_id }}" class="popover popover-md popover-primary animate littleFadeInRight">
	    <div class="arrow"></div>
	    <h3 class="popover-title">{{ column_title }}<a id="close-title-{{ information.information_id }}" class="btn btn-default btn-xs"><i class="fa fa-close"></i></a></h3>
	    <div id="information-title-content-{{ information.information_id }}"></div>
	  </div>
	  <div id="information-sort-{{ information.information_id }}" class="popover popover-primary animate littleFadeInLeft">
	    <div class="arrow"></div><h3 class="popover-title">{{ column_sort_order }}
	    <a id="close-sort-{{ information.information_id }}" data-dismiss="popover-maxy" class="btn btn-default btn-xs"><i class="fa fa-close"></i></a></h3>
	    <div class="popover-content">
		  <input type="number" name="sort_order" value="{{ information.sort_order }}" placeholder="{{ column_sort_order }}" id="input-sort{{ information.information_id }}" class="form-control" />
	    </div>
	    <div class="popover-footer">
		  <a onclick="editSort('{{ information.information_id }}');" class="btn btn-primary btn-sm"><i class="fa fa-save fa-fw"></i></a><a onclick="sortClear('{{ information.information_id }}');" class="btn btn-danger btn-sm"><i class="fa fa-eraser fa-fw"></i></a>
	    </div>
	  </div>
	  <div id="information-more-{{ information.information_id }}" class="popover popover-primary popover-more animate littleFadeInLeft">
	    <div class="arrow"></div>
	    <div class="popover-content">
		  {% if information_general %}<a onclick="editMore('{{ information.information_id }}', 'general');" class="btn btn-primary btn-sm" data-toggle="tooltip" title="{{ text_general_data }}"><i class="fa fa-reorder"></i></a>{% endif %}
		  {% if information_seo %}<a onclick="editMore('{{ information.information_id }}', 'seo');" class="btn btn-primary btn-sm" data-toggle="tooltip" title="{{ text_seo_keyword }}"><i class="fa fa-link"></i></a>{% endif %}
		  {% if information_store %}<a onclick="editMore('{{ information.information_id }}', 'stores');" class="btn btn-primary btn-sm" data-toggle="tooltip" title="{{ text_store }}"><i class="fa fa-flag"></i></a>{% endif %}
		  {% if information_design %}<a onclick="editMore('{{ information.information_id }}', 'design');" class="btn btn-primary btn-sm" data-toggle="tooltip" title="{{ text_design }}"><i class="fa fa-paint-brush"></i></a>{% endif %}
		  {% if information_view %}<a href="{{ information.view }}" class="btn btn-default btn-sm" data-toggle="tooltip" target="_blank" title="{{ button_view }}"><i class="fa fa-eye"></i></a>{% endif %}
	    </div>
	  </div>
    {% endfor %}
  {% endif %}
  <div id="modal-information-edit" class="modal fade">
    <div class="modal-dialog modal-lg animated zoomIn">
      <div class="modal-content">
	    <div id="modal-information-content"></div>
	  </div>
    </div>
  </div>
</div>
{{ footer }}