Compare commits

...

2 Commits

Author SHA1 Message Date
loviuz 9c5a2527c7 Fix colorazione hooks 2024-06-29 12:27:33 +02:00
loviuz f3dfaab57a Fix apertura attività collegate 2024-06-29 12:27:25 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -172,12 +172,12 @@ function updateHook(hook) {
if (number == 0) { if (number == 0) {
$("#hooks-notified").html('<i class="fa fa-check" aria-hidden="true"></i>'); $("#hooks-notified").html('<i class="fa fa-check" aria-hidden="true"></i>');
$("#hooks-label").removeClass(); $("#hooks-badge").removeClass();
$("#hooks-label").addClass('badge').addClass('badge-success'); $("#hooks-badge").addClass('badge').addClass('badge-success');
} else { } else {
$("#hooks-notified").text(number); $("#hooks-notified").text(number);
$("#hooks-label").removeClass(); $("#hooks-badge").removeClass();
$("#hooks-label").addClass('badge').addClass('badge-danger'); $("#hooks-badge").addClass('badge').addClass('badge-danger');
} }
if (counter == $("#hooks-number").text()) { if (counter == $("#hooks-number").text()) {

View File

@ -173,7 +173,7 @@ echo '
<p><i class="fa '.(count($interventi_programmati) == 0 ? 'fa-clock-o text-success' : 'fa-clock-o text-warning').'"></i> '.(count($interventi_programmati) == 0 ? tr('Non sono presenti altre attività programmate') : 'Attività aperte:'); <p><i class="fa '.(count($interventi_programmati) == 0 ? 'fa-clock-o text-success' : 'fa-clock-o text-warning').'"></i> '.(count($interventi_programmati) == 0 ? tr('Non sono presenti altre attività programmate') : 'Attività aperte:');
if (count($interventi_programmati) != 0) { if (count($interventi_programmati) != 0) {
foreach ($interventi_programmati as $intervento_programmato) { foreach ($interventi_programmati as $intervento_programmato) {
echo ' <a class="btn btn-default btn-xs" href="'.base_path().'/editor.php?id_module='.Modules::get('Interventi')['id'].'&id_record='.$intervento_programmato->id.'" target="_blank">'.$intervento_programmato->codice.' ('.(new Carbon($intervento_programmato->data_richiesta))->diffForHumans().')</a>'; echo ' <a class="btn btn-default btn-xs" href="'.base_path().'/editor.php?id_module='.$id_module.'&id_record='.$intervento_programmato->id.'" target="_blank">'.$intervento_programmato->codice.' ('.(new Carbon($intervento_programmato->data_richiesta))->diffForHumans().')</a>';
} }
} }
echo ' echo '