mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-25 06:55:05 +01:00
1c9e7b1634
Migrazione da SourceForge, partendo dal commit 1662 della carrtella trunk/openstamanager.
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?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">
|
|
{[ "type": "select", "label": "'._('Articolo').'", "name": "idarticolo", "required": 1, "value": "'.$idarticolo.'", "ajax-source": "articoli" ]}
|
|
</div>';
|
|
|
|
// Quantità
|
|
echo '
|
|
<div class="col-md-4">
|
|
{[ "type": "number", "label": "'._('Q.tà su questo automezzo').'", "name": "qta", "value": "1", "decimals": "qta" ]}
|
|
</div>';
|
|
|
|
echo '
|
|
<!-- PULSANTI -->
|
|
<div class="row">
|
|
<div class="col-md-12 text-right">
|
|
<button type="submit" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> '._('Aggiungi').'</button>
|
|
</div>
|
|
</div>
|
|
</form>';
|
|
|
|
echo '
|
|
<script src="'.$rootdir.'/lib/init.js"></script>';
|