Migliorato layout creazione ddt e fattura da ordine

This commit is contained in:
Luca 2018-04-23 23:15:56 +02:00
parent f29c8b8ac9
commit c688f1b4a7
4 changed files with 33 additions and 9 deletions

View File

@ -583,6 +583,9 @@ input.small-width {
.callout a{
text-decoration: none;
}
.dropdown-menu{
min-width: 130px;
}
/*fix per tabs editor */
.nav-tabs-custom > .nav-tabs > li{
border-top: 3px solid #ddd;

View File

@ -9,11 +9,11 @@ if (Auth::check()) {
</aside><!-- /.content-wrapper -->
<footer class="main-footer">
<a class="hidden-xs" href="https://www.openstamanager.com" title="'.tr('Il gestionale open source per l\'assistenza tecnica e la fatturazione').'." target="_blank"><strong>'.tr('OpenSTAManager').'</strong></a>
<span class="pull-right hidden-xs">
<strong>'.tr('Versione').' '.$version.'</strong>
<strong>'.tr('Versione').'</strong> '.$version.'
<small class="text-muted">('.(!empty($revision) ? $revision : tr('In sviluppo')).')</small>
</span>
'.tr('OpenSTAManager').'
</footer>
<div class="modal fade" id="bs-popup" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="true"></div>

View File

@ -176,7 +176,7 @@ if (Auth::check()) {
<div id="tiny-loader" style="display:none;"></div>
<header class="main-header">
<a href="https://www.openstamanager.com" class="logo" target="_blank">
<a href="https://www.openstamanager.com" class="logo" title="'.tr('Il gestionale open source per l\'assistenza tecnica e la fatturazione').'" target="_blank">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini">'.tr('OSM').'</span>
<!-- logo for regular state and mobile devices -->

View File

@ -100,13 +100,34 @@ if ($module['name'] == 'Ordini cliente') {
</div>
<div class="pull-right">
<!-- Stampe -->
<?php if ($records[0]['stato'] != 'Evaso') {
?>
<a class="btn btn-info" data-href="<?php echo $rootdir; ?>/modules/fatture/crea_documento.php?id_module=<?php echo $id_module; ?>&&id_record=<?php echo $id_record; ?>&documento=ddt" data-toggle="modal" data-title="Crea ddt" data-target="#bs-popup" ><i class="fa fa-magic"></i> Crea ddt da ordine...</i></a>
<a class="btn btn-info" data-href="<?php echo $rootdir; ?>/modules/fatture/crea_documento.php?id_module=<?php echo $id_module; ?>&id_record=<?php echo $id_record; ?>&documento=fattura" data-toggle="modal" data-title="Crea fattura" data-target="#bs-popup" ><i class="fa fa-magic"></i> Crea fattura da ordine...</i></a>
<?php
}
<?php
if ($records[0]['stato'] != 'Evaso') {
echo '
<div class="dropdown">
<button class="btn btn-info dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-magic"></i>&nbsp;'.tr('Crea subito').'
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li>
<a data-href="'.$rootdir.'/modules/fatture/crea_documento.php?id_module='.$id_module.'&id_record='.$id_record.'&documento=ddt" data-toggle="modal" data-title="'.tr('Crea ddt').'" data-target="#bs-popup"><i class="fa fa-file-o"></i>&nbsp;'.tr('ddt').'
</a>
</li>
<li>
<a data-href="'.$rootdir.'/modules/fatture/crea_documento.php?id_module='.$id_module.'&id_record='.$id_record.'&documento=fattura" data-toggle="modal" data-title="'.tr('Crea fattura').'" data-target="#bs-popup"><i class="fa fa-file"></i>&nbsp;'.tr('fattura').'
</a>
</li>
</ul>
</div>';
}
?>