{% include 'panel/p_header.twig' %}

<!-- Add/edit form -->
<section class="forms">
  <div class="container-fluid">
    <header>
      	<h1 class="h3 display">Opciones de CheckServer</h1>
    </header>
    <div class="row">
      <div class="col-lg-12">
        <div class="card">
          <div class="card-block">
            <form class="form-horizontal" method="POST" action="?page=savesettings">
              <div class="form-group row">
                <label class="col-sm-2">Nombre de la web</label>
                <div class="col-sm-10">
                  <input name="name" type="text" placeholder="Nombre de la web" value="{{sys.name}}" class="form-control form-control-success"><small class="form-text">Nombre para sacar en titulos.</small>
                </div>
              </div>

              <div class="form-group row">
                <label class="col-sm-2">Cantidad de tiempo a guardar historial de resultados en días.</label>
                <div class="col-sm-10">
                  <input name="maxTimeSave" type="numeric" placeholder="Nombre del check" value="{{sys.maxTimeSave}}" class="form-control form-control-success"><small class="form-text">Por defecto, dos semanas</small>
                </div>
              </div>

              <div class="form-group row">       
                <div class="col-sm-10 offset-sm-2">
                  <button type="submit" class="btn btn-primary">Guardar cambios</button>
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

{% include 'footer.twig' %}