File "admin-blog-articles.tmpl"

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

{extends file='layout-admin.tmpl'}
<html>
  <body>
    {block name="breadcrumbs"}
    <div class="breadcrumbs">
      <strong>Blog: Articoli</strong>
    </div>
    {/block}
    {block name="content"}
    <div class="sheet">
      <div class="sheet-header">
        <h1>
          Blog: Articoli
          <small>Gestione degli articoli della sezione blog</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/blog-articles/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>ID</th>
                <th>SLUG</th>
                <th>Titolo</th>
                <th>Lingua</th>
                <th>APP</th>
                <th>Pubblicazione</th>
                <th style="width: 180px;">Azioni</th>
              </tr>
            </thead>
            <tbody>
              {foreach $articles as $article}
              <tr>
                <td><a href="{$base_url}/admin/blog-articles/{$article.id}">#{$article.id}</a></td>
                <td><a href="{$base_url}/admin/blog-articles/{$article.id}">{$article.slug}</a></td>
                <td>
                	{$article.title}
                	<br><small style="color: #989898;">{_v($article.category_id, $categories)}</small>
                </td>
                <td>{$article.lang}</td>
                <td>
                	{if $article.published_app == 1}
                		<span class="btn btn-success btn-xs">SI</span>
                	{else}
            			<span class="btn btn-default btn-xs">NO</span>
        			{/if}
    			</td>
                <td>
                  {if $article.published}
                    <span class="label label-success">pubblicato</span>
                  {else}
                    <span class="label label-default">non pubblicato</span>
                  {/if}
                  {if $article.published_datetime or $article.published_datetime2}
                    &mdash; {_ddt($article.published_datetime)} / {_ddt($article.published_datetime2)}
                  {/if}
                </td>
                <td>
                  <a href="{$base_url}/admin/blog-articles/{$article.id}/edit" class="btn btn-default btn-xs">MODIFICA</a>
                  <a href="{$base_url}/admin/blog-articles/add?clone={$article.id}" class="btn btn-info btn-xs">DUPLICA</a>
                  <a href="{$base_url}/admin/blog-articles/{$article.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>