From 77bd13a60f227414dc333cb863259b4f2613158a Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 19 May 2020 10:31:00 +0200 Subject: [PATCH] Aggiunto pulsante visualizza scheda per promemoria --- modules/dashboard/actions.php | 5 +++-- templates/interventi/body.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/dashboard/actions.php b/modules/dashboard/actions.php index 500844c23..c4749ef13 100755 --- a/modules/dashboard/actions.php +++ b/modules/dashboard/actions.php @@ -174,8 +174,9 @@ switch (get('op')) { echo '
'.(($r['ref'] == 'intervento') ? '' : '').' '.$r['ragione_sociale'].'
'.Translator::dateToLocale($r['data_richiesta']).' ('.$r['tipointervento'].')
'.(!empty($r['richiesta']) ? ' - '.$r['richiesta'] : '').'
'.(!empty($r['nomecontratto']) ? '
Contratto: '.$r['nomecontratto'] : ''). - (!empty($r['data_scadenza'] and $r['data_scadenza'] != '0000-00-00 00:00:00') ? '
'.tr('entro il: ').''.Translator::dateToLocale($r['data_scadenza']).'' : '').' -
'; + (!empty($r['data_scadenza'] and $r['data_scadenza'] != '0000-00-00 00:00:00') ? '
'.tr('entro il: ').Translator::dateToLocale($r['data_scadenza']).'' : ''). + (($r['ref'] == 'intervento') ? (Modules::link('Interventi', $r['id'], '', null, 'title="'.tr("Visualizza scheda").'" class="btn btn-primary btn-xs pull-right"')) : (Modules::link('Contratti', $r['idcontratto'], '', null, 'title="'.tr("Visualizza scheda").'" class="btn btn-primary btn-xs pull-right"'))). + ''; } } ?>