gest366/modules/campi_personalizzati/edit.php

87 lines
2.2 KiB
PHP

<form action="" method="post" id="add-form">
<input type="hidden" name="op" value="update">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="id_record" value="<?php echo $id_record ?>">
<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
<div class="clearfix"></div>
</br>
<div class="col-md-4">
<div class="pull-left">
<button type="submit" class="btn-app btn-success"><i class="fa fa-check"></i> Salva </button>
</div>
</div>
<div class="col-md-4">
<div class="pull-right">
</div>
</div>
<div class="col-md-4">
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
<div class="panel-heading">
<h3 class="panel-title">Modulo destinazione</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-3">
{[ "type": "text", "label": "Modulo", "name": "name", "required": 1, "class": "", "value": "$name$", "extra": "readonly" ]}
</div>
</div>
<div class="row">
</div>
</div>
</div>
<div class="panel panel-<?php echo $_SESSION['profilo_pannello'] ?>">
<div class="panel-heading">
<h3 class="panel-title">Campi personalizzabili</h3>
</div>
<div class="panel-body">
<button type="button" class="btn btn-primary" data-href="<?php echo $rootdir ?>/modules/campi_personalizzati/add_campo.php?idutente=<?php echo $id_record ?>" data-toggle="modal" data-title="Aggiungi Campo" data-target="#bs-popup"><i class="fa fa-files-o"></i> Aggiungi Campo</a>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<table class="table table-striped table-hover table-condensed">
<tr>
<th width='45%'>Label</th>
<th width='45%'>Nome Campo</th>
<th width='20%'>Dimensione</th>
<th width='20%'>Stato</th>
<th width='5%'></th>
</tr>
<?php
include($docroot."/modules/campi_personalizzati/row-list.php");
?>
</table>
</div>
</div>
</div>
</div>
</form>