2017-08-04 16:28:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
2018-02-23 16:04:50 +01:00
|
|
|
?><form action="" method="post" id="edit-form">
|
2017-08-04 16:28:16 +02:00
|
|
|
<input type="hidden" name="backto" value="record-edit">
|
|
|
|
<input type="hidden" name="op" value="update">
|
2018-02-18 19:53:23 +01:00
|
|
|
<input type="hidden" name="id_record" value="<?php echo $id_record; ?>">
|
2017-08-04 16:28:16 +02:00
|
|
|
|
|
|
|
<!-- DATI ARTICOLO -->
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
<div class="panel-heading">
|
2018-02-18 19:53:23 +01:00
|
|
|
<h3 class="panel-title"><?php echo tr('Automezzo'); ?></h3>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
2017-09-04 12:02:29 +02:00
|
|
|
{[ "type": "text", "label": "<?php echo tr('Nome'); ?>", "name": "nome", "required": 1, "value": "$nome$" ]}
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
2018-03-02 17:19:15 +01:00
|
|
|
{[ "type": "text", "label": "<?php echo tr('Targa'); ?>", "name": "targa", "required": 1, "maxlength": 10, "class": "alphanumeric-mask", "value": "$targa$" ]}
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2017-09-13 15:38:47 +02:00
|
|
|
{[ "type": "textarea", "label": "<?php echo tr('Descrizione'); ?>", "name": "descrizione", "value": "$descrizione$" ]}
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2018-04-24 00:03:25 +02:00
|
|
|
<!-- TECNICI + MAGAZZINO AUTOMEZZO -->
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<!--TECNICI -->
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3 class="panel-title"><?php echo tr('Tecnici responsabili automezzo'); ?></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
2018-04-24 00:03:25 +02:00
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12" >
|
|
|
|
<form action="<?php echo $rootdir; ?>/editor.php?id_module=<?php echo Modules::get('Automezzi')['id']; ?>&id_record=<?php echo $id_record; ?>" id="updatetech-form" method="post" role="form">
|
|
|
|
<input type="hidden" name="backto" value="record-edit">
|
|
|
|
<input type="hidden" name="id_record" value="<?php echo $id_record; ?>">
|
|
|
|
<input type="hidden" name="op" value="">
|
|
|
|
|
|
|
|
<?php
|
2018-06-26 14:30:26 +02:00
|
|
|
include $docroot.'/modules/automezzi/row-list-tecnici.php';
|
|
|
|
?>
|
2018-04-24 00:03:25 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<a href="javascript:;" class="btn btn-sm btn-success pull-right" title="Aggiorna date" onclick="$('#updatetech-form input[name=op]').val('savetech'); $('#updatetech-form').submit();"><i class="fa fa-edit"></i> <?php echo tr('Salva date'); ?></a>
|
|
|
|
|
|
|
|
<div class="pull-left">
|
2018-10-25 17:11:02 +02:00
|
|
|
<a class="btn btn-sm btn-primary" data-href="<?php echo $rootdir; ?>/modules/automezzi/add_tecnico.php?idautomezzo=<?php echo $id_record; ?>" data-toggle="modal" data-title="Aggiungi tecnico"><i class="fa fa-plus"></i> <?php echo tr('Aggiungi tecnico'); ?></a><br>
|
2018-04-24 00:03:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2018-04-24 00:03:25 +02:00
|
|
|
<!-- MAGAZZINO AUTOMEZZO -->
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h3 class="panel-title"><?php echo tr('Magazzino automezzo'); ?></h3>
|
|
|
|
</div>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-04-24 00:03:25 +02:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<?php
|
2018-06-26 14:30:26 +02:00
|
|
|
include $docroot.'/modules/automezzi/row-list-articoli.php';
|
|
|
|
?>
|
2018-04-24 00:03:25 +02:00
|
|
|
|
|
|
|
<div class="pull-left">
|
2018-10-25 17:11:02 +02:00
|
|
|
<a class="btn btn-sm btn-primary" data-href="<?php echo $rootdir; ?>/modules/automezzi/add_articolo.php?idautomezzo=<?php echo $id_record; ?>" data-toggle="modal" data-title="Aggiungi articoli"><i class="fa fa-plus"></i> <?php echo tr('Articolo magazzino'); ?></a><br>
|
2018-04-24 00:03:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-25 17:11:02 +02:00
|
|
|
</div>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<a class="btn btn-danger ask" data-backto="record-list">
|
2017-09-04 12:02:29 +02:00
|
|
|
<i class="fa fa-trash"></i> <?php echo tr('Elimina'); ?>
|
2017-08-04 16:28:16 +02:00
|
|
|
</a>
|
|
|
|
|