2017-08-04 16:28:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
|
|
|
$idautomezzo = $get['idautomezzo'];
|
|
|
|
|
|
|
|
/*
|
|
|
|
Form di inserimento riga documento
|
|
|
|
*/
|
|
|
|
echo '
|
|
|
|
<form id="link_form" action="'.$rootdir.'/editor.php?id_module='.Modules::getModule('Automezzi')['id'].'&id_record='.$idautomezzo.'" method="post">
|
|
|
|
<input type="hidden" name="op" value="addrow">
|
|
|
|
<input type="hidden" name="backto" value="record-edit">
|
|
|
|
<input type="hidden" name="id_record" value="'.$idautomezzo.'">';
|
|
|
|
|
|
|
|
// Seleziona articolo
|
|
|
|
echo '
|
|
|
|
<div class="col-md-8">
|
2017-09-04 12:02:29 +02:00
|
|
|
{[ "type": "select", "label": "'.tr('Articolo').'", "name": "idarticolo", "required": 1, "value": "'.$idarticolo.'", "ajax-source": "articoli" ]}
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>';
|
|
|
|
|
|
|
|
// Quantità
|
|
|
|
echo '
|
|
|
|
<div class="col-md-4">
|
2017-09-04 12:02:29 +02:00
|
|
|
{[ "type": "number", "label": "'.tr('Q.tà su questo automezzo').'", "name": "qta", "value": "1", "decimals": "qta" ]}
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>';
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<!-- PULSANTI -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 text-right">
|
2017-09-04 12:02:29 +02:00
|
|
|
<button type="submit" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> '.tr('Aggiungi').'</button>
|
2017-08-04 16:28:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>';
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<script src="'.$rootdir.'/lib/init.js"></script>';
|