{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-dashboard" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></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 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 %}
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3>
      </div>
      <div class="panel-body">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-dashboard" class="form-horizontal">
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-width">{{ entry_width }}</label>
            <div class="col-sm-10">
              <select name="dashboard_domovoy_width" id="input-width" class="form-control">
                {% for column in columns %}
                {% if column == dashboard_domovoy_width %}
                <option value="{{ column }}" selected="selected">{{ column }}</option>
                {% else %}
                <option value="{{ column }}">{{ column }}</option>
                {% endif %}
                {% endfor %}
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
            <div class="col-sm-10">
              <select name="dashboard_domovoy_status" id="input-status" class="form-control">
                {% if dashboard_domovoy_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-2 control-label" for="input-sort-order">{{ entry_sort_order }}</label>
            <div class="col-sm-10">
              <input type="text" name="dashboard_domovoy_sort_order" value="{{ dashboard_domovoy_sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control" />
            </div>
          </div>
          {% for folder in folders %}
          <fieldset>
            <legend>{{ folder.name }}</legend>
          <div class="form-group">
            <label class="col-sm-2 control-label">{{ entry_folder_cron_status }}</label>
            <div class="col-sm-10">
              <div class="row">
                <div class="col-sm-10">
                  <label class="radio-inline"> {% if folder.cron.status %}
                      <input type="radio" name="dashboard_domovoy_cron[{{folder.key}}][status]" value="1" checked="checked" />
                      {{ text_yes }}
                    {% else %}
                      <input type="radio" name="dashboard_domovoy_cron[{{folder.key}}][status]" value="1" />
                      {{ text_yes }}
                    {% endif %} </label>
                  <label class="radio-inline"> {% if not folder.cron.status %}
                      <input type="radio" name="dashboard_domovoy_cron[{{folder.key}}][status]" value="0" checked="checked" />
                      {{ text_no }}
                    {% else %}
                      <input type="radio" name="dashboard_domovoy_cron[{{folder.key}}][status]" value="0" />
                      {{ text_no }}
                    {% endif %}</label>
                </div>
              </div>
            </div>
          </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">{{  entry_folder_space_limit }}</label>
              <div class="col-sm-10">
                <div class="row">
                  <div class="col-sm-12">
                    <input type="text" name="dashboard_domovoy_cron[{{folder.key}}][size]" value="{{ folder.cron.size }}" placeholder="{{ entry_size }}" class="form-control" />
                  </div>
                </div>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label" >{{ entry_folder_calc_time }}</label>
              <div class="col-sm-10">
                <div class="row">
                  <div class="col-sm-3">
                    <input type="text" name="dashboard_domovoy_cron[{{folder.key}}][time]" value="{{ folder.cron.time }}" placeholder="{{ entry_time }}" class="form-control" />
                  </div>
                </div>
              </div>
            </div>
          </fieldset>
          {% endfor %}
          <fieldset>
            <legend>{{ text_server }}</legend>
            <div class="form-group">
              <label class="col-sm-2 control-label">{{entry_disk_free_space_limit}}</label>
              <div class="col-sm-10">
                <div class="row">
                  <div class="col-sm-12">
                    <input type="text" name="dashboard_domovoy_disk_free_space" value="{{ dashboard_domovoy_disk_free_space }}" placeholder="{{ entry_size }}" class="form-control" />
                  </div>
                </div>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">{{ entry_free_space_status }}</label>
              <div class="col-sm-10">
                <div class="row">
                  <div class="col-sm-10">
                    <label class="radio-inline"> {% if dashboard_domovoy_free_space_status %}
                        <input type="radio" name="dashboard_domovoy_free_space_status" value="1" checked="checked" />
                        {{ text_yes }}
                      {% else %}
                        <input type="radio" name="dashboard_domovoy_free_space_status" value="1" />
                        {{ text_yes }}
                      {% endif %} </label>
                    <label class="radio-inline"> {% if not dashboard_domovoy_free_space_status %}
                        <input type="radio" name="dashboard_domovoy_free_space_status" value="0" checked="checked" />
                        {{ text_no }}
                      {% else %}
                        <input type="radio" name="dashboard_domovoy_free_space_status" value="0" />
                        {{ text_no }}
                      {% endif %}</label>
                  </div>
                </div>
              </div>
            </div>
          </fieldset>
          <fieldset>
            <legend>{{ text_check_function }}</legend>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-valide-params">{{ entry_danger_funtions }}</label>
            <div class="col-sm-10">
              <textarea name="dashboard_domovoy_danger_funtions" rows=10" placeholder="{{ entry_danger_funtions }}" id="input-valide-params" class="form-control">{{ dashboard_domovoy_danger_funtions }}</textarea>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-valide-params">{{ entry_warning_funtions }}</label>
            <div class="col-sm-10">
              <textarea name="dashboard_domovoy_warning_funtions" rows=10" placeholder="{{ entry_warning_funtions }}" id="input-valide-params" class="form-control">{{ dashboard_domovoy_warning_funtions }}</textarea>
            </div>
          </div>
          </fieldset>
        </form>
      </div>
    </div>
  </div>
</div>
<div style="text-align: center"> <b>{{ text_copyright }}</b> </div>
{{ footer }}