Initial Commit
This commit is contained in:
@@ -0,0 +1,125 @@
|
||||
<div class="modal fade" id="modal" data-form="modalForm" tabindex="-1" data-backdrop="false"
|
||||
role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div id="modal-loader" class="overlay d-none justify-content-center align-items-center">
|
||||
<i class="fas fa-2x fa-sync fa-spin"></i>
|
||||
</div>
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title flot-left" id="myModalLabel"><i
|
||||
class="fa fa-fw <?= ($this->iconTitle) ? $this->iconTitle : 'fa-pencil'; ?> modal_icon"></i>
|
||||
Email Template</h5>
|
||||
<button id="close-modal" type="button" class="close float-right" data-dismiss="modal"
|
||||
aria-hidden="true">×
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body pdb-0">
|
||||
|
||||
<form id="modalForm" name="modalForm" class="compact-form no-border-radius"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'salva' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-get="<?= $this->url(array('controller' => 'index', 'action' => 'get' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-delete="<?= $this->url(array('controller' => 'index', 'action' => 'delete' . $this->resourceName, 'id' => $this->id), $this->moduleName, true); ?>"
|
||||
method="post" role="form">
|
||||
|
||||
<input type="hidden" value="" class="form-control" id="id" name="id" form="modalForm" required>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div id="ErrorDescription" class="alert alert-warning alert-sm d-none"></div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div id="Codice" class="form-group row">
|
||||
<label for="Codice" class="col-sm-2 col-form-label">Codice</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" value="" class="form-control" id="Codice" placeholder="" name="Codice">
|
||||
<!-- Contenitore per la descrizione degli errori -->
|
||||
<div id="input-error" class="label label-danger hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div id="Nome" class="form-group row">
|
||||
<label for="Nome" class="col-sm-2 col-form-label">Nome</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" value="" class="form-control" id="Nome" placeholder="" name="Nome">
|
||||
<!-- Contenitore per la descrizione degli errori -->
|
||||
<div id="input-error" class="label label-danger hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div id="Tipologia" class="form-group row">
|
||||
<label for="Tipologia" class="col-sm-2 col-form-label">Tipologia</label>
|
||||
<div class="col-sm-10">
|
||||
<select id="Tipologia" name="Tipologia" class="form-control">
|
||||
<option value="">Scegli...</option>
|
||||
<option value="HTML">Contenuto HTML</option>
|
||||
<option value="TEXT">Contenuto solo testo</option>
|
||||
</select>
|
||||
<!-- Contenitore per la descrizione degli errori -->
|
||||
<div id="input-error" class="label label-danger hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div id="Footer" class="form-group row">
|
||||
<label for="Footer" class="col-sm-2 col-form-label">Aggiungi footer:</label>
|
||||
<div class="col-sm-10">
|
||||
<select id="Footer" name="Footer" class="form-control">
|
||||
<option value="">Scegli...</option>
|
||||
<option value="1">Si</option>
|
||||
<option value="0">No</option>
|
||||
</select>
|
||||
<!-- Contenitore per la descrizione degli errori -->
|
||||
<div id="input-error" class="label label-danger hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div id="Oggetto" class="form-group row">
|
||||
<label for="Oggetto" class="col-sm-2 col-form-label">Oggetto email:</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" value="" class="form-control" id="Oggetto" placeholder=""
|
||||
name="Oggetto">
|
||||
<!-- Contenitore per la descrizione degli errori -->
|
||||
<div id="input-error" class="label label-danger hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div id="Testo" class="form-group">
|
||||
<textarea id="Testo" name="Testo" class="form-control summernote" rows="10"></textarea>
|
||||
<!-- Contenitore per la descrizione degli errori -->
|
||||
<div id="input-error" class="label label-danger hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="undo" class="btn bg-gray pull-left" data-dismiss="modal"><i
|
||||
class="fa fa-times"></i>
|
||||
Chiudi
|
||||
</button>
|
||||
<button type="button" id="save" op="insert" class="btn btn-brand"><i class="fa fa-save"></i>
|
||||
Salva
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,95 @@
|
||||
<!-- Post Modal Form -->
|
||||
<div class="modal fade" id="filterModal" data-form="filterForm" tabindex="-1" role="dialog"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="myModalLabel"><i class="fa fa-filter float-left modal_icon"></i>
|
||||
Ricerca <?= ucfirst($this->resourceName); ?></h5>
|
||||
<button id="close-modal" type="button" class="close float-right" data-dismiss="modal"
|
||||
aria-hidden="true">×
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
|
||||
<form id="filterForm" name="filterForm"
|
||||
action="<?= $this->url(array('module' => $this->moduleName, 'controller' => 'index', 'action' => 'list' . $this->resourceName, 'count' => $this->count, 'order' => $this->order, 'tipoOrder' => $this->tipoOrder), 'default', true); ?>"
|
||||
method="post" class="form" role="form">
|
||||
|
||||
<input type="hidden" value="" class="form-control" id="id" placeholder="" name="id" required>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-6">
|
||||
<div id="Codice" class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4"><label>Codice:</label></div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" id="Codice" name="Codice"
|
||||
value="<?= $this->search_params['Codice']; ?>"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<div id="input-error"
|
||||
class="col-md-12 form-error hidden label label-danger text-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div id="Nome" class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4 no-padding-right"><label title="">Nome:</label></div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" id="Nome" name="Nome"
|
||||
value="<?= $this->search_params['Nome']; ?>"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<div id="input-error"
|
||||
class="col-md-12 form-error hidden label label-danger text-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div id="Oggetto" class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-2 no-padding-right"><label title="">Oggetto:</label></div>
|
||||
<div class="col-md-10">
|
||||
<input type="text" id="Oggetto" name="Oggetto"
|
||||
value="<?= $this->search_params['Oggetto']; ?>"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<div id="input-error"
|
||||
class="col-md-12 form-error hidden label label-danger text-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="resetFiltri" class="btn btn-warning"><i class="fa fa-eraser"></i>
|
||||
Reset Filtri
|
||||
</button>
|
||||
<button type="button" id="undo" class="btn btn-danger" data-dismiss="modal"><i class="fa fa-times"></i>
|
||||
Annulla
|
||||
</button>
|
||||
<button type="submit" id="filtra" form="filterForm" class="btn btn-success"><i class="fa fa-filter"></i>
|
||||
Cerca
|
||||
</button>
|
||||
<input type="submit" form="filterForm" class="d-none">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
<div class="col-12 col-md-4 no-padding-r-sm">
|
||||
<input type="text" id="Codice_search" name="Codice"
|
||||
value="<?= $this->search_params['Codice']; ?>"
|
||||
class="form-control no-border-right-sm" placeholder="Codice"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6 no-padding-r-l-sm">
|
||||
<input type="text" id="Nome_search" name="Nome" value="<?= $this->search_params['Nome']; ?>"
|
||||
class="form-control no-border-r-l-sm" placeholder="Nome"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-2 no-padding-l-sm">
|
||||
<?php $totFilter = count($this->CleanFiltersParam($this->search_params)); ?>
|
||||
<div class="btn-group">
|
||||
<button type="submit" title="Cerca" class="btn btn-brand btn-flat"><i
|
||||
class="fa fa-search fa-fw"></i></button>
|
||||
<a href="<?= $this->url(array('module' => $this->moduleName, 'action' => 'list' . $this->resourceName, 'reset' => 'true'), 'default', true); ?>"
|
||||
data-toggle="tooltip" data-container="body" data-placement="right"
|
||||
title="Reset (Filtri attivi: <?= $totFilter; ?> )"
|
||||
class="btn btn-brand btn-flat"
|
||||
type="button"><i class="fa fa-times fa-fw"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,170 @@
|
||||
<div class="box box-no-border box-no-shadow pd10 mb-0">
|
||||
|
||||
<div class="box-header">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<!--FORM DI RICERCA-->
|
||||
<div class="float-left box-title search-left hidden-xs">
|
||||
|
||||
<form class="form-horizontal" id="searchForm" name="searchForm" method="post"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
|
||||
<div class="row">
|
||||
<?= $this->render("index/$this->resourceName/_searchBlock.phtml"); ?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="order" name="order" class="hidden" value="<?= $this->order; ?>"/>
|
||||
<input type="hidden" id="tipoOrder" name="tipoOrder" class="hidden" value="<?= $this->tipoOrder; ?>"/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<!--BLOCCO FUNZIONI LATO SINISTRA-->
|
||||
<div class="float-right box-title search-right">
|
||||
|
||||
<div class="btn-group">
|
||||
|
||||
<?php if ($this->isActiveNewInsert): ?>
|
||||
<button data-toggle="tooltip" title="Nuovo" id="new" class="btn btn-brand btn-flat" type="button"
|
||||
data-target="#Modal" data-toggle="modal"><i class="fa fa-plus"></i></button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<button data-toggle="tooltip" title="Filtra" id="filterData" class="btn btn-brand btn-flat"
|
||||
type="button" data-target="#filterModal" data-toggle="modal">
|
||||
<?php if ($totFilter > 0): ?>
|
||||
<span class="badge bg-red"><?= $totFilter; ?></span>
|
||||
<?php endif; ?>
|
||||
<i class="fa fa-filter"></i>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-flat btn-brand dropdown-toggle" type="button" id="dropdownMenuButton"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="d-none-xs">Selezionati</span> <span class="caret"></span>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- INIZIO TABELLA -->
|
||||
|
||||
<div class="box-body table-responsive table-wrapper">
|
||||
<table class="table table-border table-striped flot-header">
|
||||
|
||||
<thead>
|
||||
<?= $this->render("index/$this->resourceName/th.phtml") ?>
|
||||
</thead>
|
||||
|
||||
<tbody id="tablebody">
|
||||
<?php if (count($this->table) > 0): ?>
|
||||
<?php foreach ($this->table as $key => $value): ?>
|
||||
<?= $this->partial("index/$this->resourceName/td.phtml", $value) ?>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<?php if ($totFilter <= 0): ?>
|
||||
<td id="norows" class="no-rows" colspan="5">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun record presente
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td id="norows" class="no-rows" colspan="5">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun risultato trovato in base alla ricerca
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="box-footer clearfix">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!--FUNZIONE MULTIPLE-->
|
||||
<div class="col-4 col-xs-12">
|
||||
<div class="btn-group btn-group-sm float-left dropup d-none-xs dropdown-multifunction-down">
|
||||
<button class="btn btn-default btn-flat" type="button">
|
||||
Selezionati
|
||||
</button>
|
||||
<button class="btn btn-default btn-flat dropdown-toggle" data-toggle="dropdown" type="button">
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-8 col-xs-12">
|
||||
<!--PAGINATOR FOOTER-->
|
||||
<?php if ($this->table instanceof Zend_Paginator): ?>
|
||||
<?= $this->paginationControl($this->table, 'Jumping', 'index/_paginator.phtml', array('action' => $this->action, 'count' => $this->count, 'moduleName'=>$this->moduleName)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="pagination-counter float-right">
|
||||
<form name="paginationCounter"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName, 'page' => $this->page, 'count' => $this->count), $this->moduleName, false); ?>"
|
||||
class="" method="post" role="form">
|
||||
<div class="input-group input-group-sm">
|
||||
<label class="text-right d-none-xs mb-1" for="count">
|
||||
<?php if ($this->totFiltrati != $this->totElementi): ?>
|
||||
<span>Filtrati <?= $this->totFiltrati ?> su <?= $this->totElementi; ?> totali </span>
|
||||
<?php else: ?>
|
||||
<span>Tot. <?= $this->totElementi; ?></span>
|
||||
<?php endif; ?>
|
||||
</label>
|
||||
<input type="text" class="form-control"
|
||||
id="count" aria-describedby="inputGroup-sizing-sm"
|
||||
value="" placeholder="<?= $this->count; ?>" name="count"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($this->isActiveModalDetail): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modal.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modalFilter.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->idDetail > 0): ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
edit(<?= $this->idDetail; ?>);
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<tr data-id="<?= $this->id ?>">
|
||||
<td class="text-center"><input type="checkbox" value="<?= $this->id ?>" name="select-elements[]"
|
||||
id="select-elements"></td>
|
||||
|
||||
<td>
|
||||
<a href="#" id="editLink"><?= $this->Codice; ?></a>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<?= $this->Codice; ?>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="text-center">
|
||||
<button id="edit" class="btn btn-sm btn-brand btn-flat" type="button" data-toggle="tooltip"
|
||||
data-container="body" title="Apri Scheda">
|
||||
<span class="far fa-file fa-fw"></span>
|
||||
</button>
|
||||
<button id="delete" class="btn btn-sm bg-gray btn-flat" type="button" data-toggle="tooltip"
|
||||
data-container="body" title="Elimina">
|
||||
<span class="fa fa-trash fa-fw"></span>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<tr>
|
||||
<th style="width:60px;" class="text-center">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-default btn-sm dropdown-toggle dropdown-icon" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a id="select_all" class="dropdown-item" href="#"><i class="far fa-check-square fa-fw"></i> Tutti</a>
|
||||
<a id="deselect_all" class="dropdown-item" href="#"><i class="far fa-square fa-fw"></i> Nessuno</a>
|
||||
<a id="invert_all" class="dropdown-item" href="#"><i class="fa fa-check-square fa-fw"></i> Inverti</a>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
<th data-ord="Codice" width="150px">Codice</th>
|
||||
<th data-ord="Nome">Nome</th>
|
||||
<th width="100px"></th>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user