{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-module" id="save_stay" name="save_stay" value="1" class="btn btn-success"><i class="fa fa-check"></i> Save and stay</button>
        <button type="submit" form="form-module" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>       
        <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a>
      </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 success %}
    <div class="alert alert-success alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ result_success }}
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    {% endif %}
    {% 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 %}
    <form id="form-module" action="{{ action }}" method="post" enctype="multipart/form-data" class="form-horizontal">
      <div class="panel panel-default">
        <div class="panel-body">
          <div class="tab-content">
            <div class="row">
              <div class="col-sm-12">
                <h2>Slider text</h2>
                <div class="form-group">
                  <label class="col-sm-2 control-label" for="input-head-status">Status</label>
                  <div class="col-sm-10">
                    <select name="slider_text_slider_status" id="input-status" class="form-control">
                      {% if (slider_text_slider_status) %} 
                      <option value="1" selected="selected">{{ text_enabled }}</option>
                      <option value="0">{{ text_disabled }}</option>
                      {% else %} 
                      <option value="1">{{ text_enabled }}</option>
                      <option value="0" selected="selected">{{ text_disabled }}</option>
                      {% endif %} 
                    </select>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">Slider top text</label>
                  <div class="col-sm-9">
                    {% for language in languages %} 
                    <div class="input-group"><span class="input-group-addon"> <img src="language/{{ language['code'] }}/{{ language['code'] }}.png" title="{{ language['name'] }}" /></span>
                      <input class="form-control" type="text" name="slider_text_slider_text1[{{ language['language_id'] }}]"
                        value="{{ slider_text_slider_text1[language['language_id']] is defined ? slider_text_slider_text1[language['language_id']] : '' }}" />
                    </div>
                    {% endfor %} 
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">Slider big text</label>
                  <div class="col-sm-9">
                    {% for language in languages %} 
                    <div class="input-group"><span class="input-group-addon"> <img src="language/{{ language['code'] }}/{{ language['code'] }}.png" title="{{ language['name'] }}" /></span>
                      <input class="form-control" type="text" name="slider_text_slider_text2[{{ language['language_id'] }}]"
                        value="{{ slider_text_slider_text2[language['language_id']] is defined ? slider_text_slider_text1[language['language_id']] : '' }}" />
                    </div>
                    {% endfor %} 
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">Slider little text</label>
                  <div class="col-sm-9">
                    {% for language in languages %} 
                    <div class="input-group"><span class="input-group-addon"> <img src="language/{{ language['code'] }}/{{ language['code'] }}.png" title="{{ language['name'] }}" /></span>
                      <input class="form-control" type="text" name="slider_text_slider_text3[{{ language['language_id'] }}]"
                        value="{{ slider_text_slider_text3[language['language_id']] is defined ? slider_text_slider_text3[language['language_id']] : '' }}" />
                    </div>
                    {% endfor %} 
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">Slider link</label>
                  <div class="col-sm-9">
                    {% for language in languages %} 
                    <div class="input-group"><span class="input-group-addon"> <img src="language/{{ language['code'] }}/{{ language['code'] }}.png" title="{{ language['name'] }}" /></span>
                      <input class="form-control" type="text" name="slider_text_slider_link[{{ language['language_id'] }}]"
                        value="{{ slider_text_slider_link[language['language_id']] is defined ? slider_text_slider_link[language['language_id']] : '' }}" />
                    </div>
                    {% endfor %} 
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-3 control-label">Slider text for link</label>
                  <div class="col-sm-9">
                    {% for language in languages %} 
                    <div class="input-group"><span class="input-group-addon"> <img src="language/{{ language['code'] }}/{{ language['code'] }}.png" title="{{ language['name'] }}" /></span>
                      <input class="form-control" type="text" name="slider_text_slider_textlink[{{ language['language_id'] }}]"
                        value="{{ slider_text_slider_textlink[language['language_id']] is defined ? slider_text_slider_textlink[language['language_id']] : '' }}" />
                    </div>
                    {% endfor %} 
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
    </form>
    </div>
  </div>
</div>
{{ footer }}