{{ header }}
<div id="container" class="container j-container">
  <ul class="breadcrumb">
    {% for breadcrumb in breadcrumbs %}
      <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="{{ breadcrumb.href }}" itemprop="url"><span itemprop="title">{{ breadcrumb.text }}</span></a></li>
    {% endfor %}
  </ul>
  {% if success %}
    <div class="alert alert-success success"><i class="fa fa-check-circle"></i> {{ success }}</div>
  {% endif %}
  {% if error_warning %}
    <div class="alert alert-warning warning"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}</div>
  {% endif %}
  <div class="row">{{ column_left }}{{ column_right }}
    {% if column_left and column_right %}
      {% set class = 'col-sm-6' %}
    {% elseif column_left or column_right %}
      {% set class = 'col-sm-9' %}
    {% else %}
      {% set class = 'col-sm-12' %}
    {% endif %}
    <div id="content" class="{{ class }} address-entry">{{ content_top }}
      <h2 class="secondary-title">{{ text_address_book }}</h2>
      {% if addresses %}
        <div class="table-responsive">
          <table class="table table-bordered table-hover">
            {% for result in addresses %}
              <tr>
                <td class="text-left">{{ result.address }}</td>
                <td class="text-right"><a href="{{ result.update }}" class="btn btn-info button">{{ button_edit }}</a> &nbsp; <a href="{{ result.delete }}" class="btn btn-danger button">{{ button_delete }}</a></td>
              </tr>
            {% endfor %}
          </table>
        </div>
      {% else %}
        <p>{{ text_empty }}</p>
      {% endif %}
      <div class="buttons clearfix">
        <div class="pull-left"><a href="{{ back }}" class="btn btn-default button">{{ button_back }}</a></div>
        <div class="pull-right"><a href="{{ add }}" class="btn btn-primary button">{{ button_new_address }}</a></div>
      </div>
      {{ content_bottom }}</div>
  </div>
</div>
{{ footer }}
