File "admin-beacons.tmpl"

Full Path: /srv/www/www.cadoro.it/src/templates/admin-beacons.tmpl
File size: 2.21 KB
MIME-type: text/html
Charset: utf-8

{extends file='layout-admin.tmpl'}
<html>
  <body>
    {block name="breadcrumbs"}
    <div class="breadcrumbs">
      <strong>iBeacon</strong>
    </div>
    {/block}
    {block name="content"}
    <div class="sheet">
      <div class="sheet-header">
        <h1>
          iBeacon
          <small>Gestione dei dispositivi iBeacon da associare all'app</small>
        </h1>
      </div>
      <div class="sheet-body">
        <form method="get" action="" class="form-search well">
          <div class="row">
            <div class="col-sm-12">
              <input type="text" name="q" class="form-control searchquery" value="{_fr('q')}" data-behaviour="autofocus" autocomplete="off">
            </div>
          </div>
          <button type="submit" class="btn btn-default">Cerca</button>
          <a href="{$base_url}/admin/beacons/add" class="btn btn-primary pull-right"><i class="glyphicon glyphicon-plus"></i> Nuovo elemento</a>
        </form>
        <div class="table-responsive">
          <table class="table table-bordered table-striped">
            <thead>
              <tr>
                <th style="width: 90px;">ID</th>
                <th>Nome</th>
                <th>UUID</th>
                <th>Identifier</th>
                <th>Major</th>
                <th>Minor</th>
                <th style="width: 180px;">Azioni</th>
              </tr>
            </thead>
            <tbody>
              {foreach $beacons as $beacon}
              <tr>
                <td><a href="{$base_url}/admin/beacons/{$beacon.id}">#{$beacon.id}</a></td>
                <td>{$beacon.name}</td>
                <td>{$beacon.uuid}</td>
                <td>{$beacon.identifier}</td>
                <td>{$beacon.major}</td>
                <td>{$beacon.minor}</td>
                <td>
                  <a href="{$base_url}/admin/beacons/{$beacon.id}/edit" class="btn btn-default btn-xs">MODIFICA</a>
                  <a href="{$base_url}/admin/beacons/{$beacon.id}/delete" class="btn btn-default btn-xs btn-danger">ELIMINA</a>
                </td>
              </tr>
              {/foreach}
            </tbody>
          </table>
        </div>
        {include "admin-pagination.tmpl"}
      </div>
    </div>
    {/block}
  </body>
</html>