File "profilo-lista-spesa.tmpl"
Full Path: /srv/www/www.cadoro.it/src/templates/profilo-lista-spesa.tmpl
File size: 2.8 KB
MIME-type: text/html
Charset: utf-8
{extends "layout-base.tmpl"}
{block name=title}Lista della spesa — CADORO{/block}
{block name="head"}
<meta name="description" content="Lista della spesa — CADORO">
<meta name="author" content="">
{/block}
{block name="content"}
<div class="well well-lightgreen well-xxs mt20 hidden-print">
<div class="row">
<div class="col-sm-1">
<img src="{$cdn_url}/images/btn-profilo-5.png" alt="" class="img-responsive">
</div>
<div class="col-sm-8">
<div class="mt15">
<strong>Lista della spesa</strong><br>
Guarda i prodotti che hai salvato
</div>
</div>
<div class="col-sm-3">
<img src="{$cdn_url}/images/btn-profilo-3.png" alt="" class="pull-right hidden-sm hidden-xs" style="display: block; margin-right: -80px; margin-top: -20px; width: 100px; margin-left: 20px;">
<div class="mt15 text-right">
Il tuo numero tessera<br>
<strong>{$principal.card}</strong>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2 hidden-print">
{if $items}
<a href="{$base_url}/profilo/lista-spesa?email=1" class="btn btn-success btn-lg btn-block">INVIA VIA E-MAIL</a>
<a href="{$base_url}/profilo/lista-spesa?pdf=1" class="btn btn-success btn-lg btn-block mt5">STAMPA</a>
<a href="{$base_url}/profilo/lista-spesa?elimina=*" class="btn btn-danger btn-lg btn-block mt5">ELIMINA LISTA</a>
{/if}
</div>
<div class="col-sm-10">
<div class="well well-white">
<h2 class="mt0">
<strong>LISTA DELLA SPESA</strong>
</h2>
{if _request('email')}
<div class="alert alert-success mt20">
La tua lista della spesa รจ stata inviata all'indirizzo email <strong>{$principal.email}</strong>!
</div>
{/if}
<div class="table-responsive mt20">
<table class="table table-striped">
<thead>
<tr>
<th colspan="2">ARTICOLI</th>
</tr>
</thead>
<tbody>
{foreach $items as $item}
<tr>
<td width="80%">{$item.title}</td>
<td width="20%" class="hidden-print">
<a href="{$base_url}/profilo/lista-spesa?elimina={$item.id}">elimina</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<form method="post" class="mt20 hidden-print" action="{$base_url}/profilo/lista-spesa">
<input type="text" class="form-control" name="title" value="" placeholder="Aggiungi un ingrediente..." autofocus>
<div class="mt20 text-right">
<button type="submit" class="btn btn-success btn-lg">SALVA</button>
</div>
</form>
</div>
</div>
</div>
{/block}