Fix plugins
This commit is contained in:
parent
57020cef47
commit
9337763f20
|
@ -541,8 +541,8 @@ if (Auth::check()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<li data-widget="control-sidebar" class="btn-default nav-item" >
|
<li data-toggle="control-sidebar" class="btn-default nav-item" >
|
||||||
<a class="nav-link" data-widget="tab" href="#tab_'.$plugin['id'].'" id="link-tab_'.$plugin['id'].'">
|
<a class="nav-link" data-toggle="tab" href="#tab_'.$plugin['id'].'" id="link-tab_'.$plugin['id'].'">
|
||||||
'.$plugin['title'].'
|
'.$plugin['title'].'
|
||||||
<span class="right badge badge-danger">'.($count > 0 ? $count : '').'</span>
|
<span class="right badge badge-danger">'.($count > 0 ? $count : '').'</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -555,24 +555,26 @@ if (Auth::check()) {
|
||||||
$notes = $structure->recordNotes($id_record);
|
$notes = $structure->recordNotes($id_record);
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<li data-widget="control-sidebar" class="btn-default">
|
<li data-toggle="control-sidebar" class="btn-default nav-item">
|
||||||
<a class="bg-info" data-widget="tab" href="#tab_note" id="link-tab_note">
|
<a class="bg-info nav-link" data-toggle="tab" href="#tab_note" id="link-tab_note">
|
||||||
<'.tr('Note interne').'
|
'.tr('Note interne').'
|
||||||
<span class="badge pull-right">'.($notes->count() ?: '').'</span>
|
<span class="badge pull-right">'.($notes->count() ?: '').'</span>
|
||||||
</a>
|
</a>
|
||||||
</li>';
|
</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tab per le checklist
|
||||||
// Tab per le checklist
|
// Tab per le checklist
|
||||||
if ($structure->permission != '-' && $structure->use_checklists) {
|
if ($structure->permission != '-' && $structure->use_checklists) {
|
||||||
$checklists_unchecked = $structure->recordChecks($id_record)->where('checked_at', null);
|
$checklists_unchecked = $structure->recordChecks($id_record)->where('checked_at', null);
|
||||||
$checklists_total = $structure->recordChecks($id_record);
|
$checklists_total = $structure->recordChecks($id_record);
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<li data-widget="control-sidebar" class="btn-default">
|
<li data-toggle="control-sidebar" class="btn-default nav-item">
|
||||||
<a class="bg-info" data-widget="tab" href="#tab_checks" id="link-tab_checks">
|
<a class="bg-info nav-link" data-toggle="tab" href="#tab_checks" id="link-tab_checks">
|
||||||
<'.tr('Checklist').'
|
'.tr('Checklist')
|
||||||
<'.($checklists_total->count() > 0) ? '<span class="badge pull-right">'.$checklists_unchecked->count().tr(' / ').$checklists_total->count().'</span>' : ''.'
|
. ($checklists_total ? ' <span class="badge pull-right">' . $checklists_unchecked->count() . tr(' / ') . $checklists_total->count() . '</span>' : '')
|
||||||
|
. '
|
||||||
</a>
|
</a>
|
||||||
</li>';
|
</li>';
|
||||||
}
|
}
|
||||||
|
@ -580,9 +582,9 @@ if (Auth::check()) {
|
||||||
// Tab per le informazioni sulle operazioni
|
// Tab per le informazioni sulle operazioni
|
||||||
if (Auth::admin()) {
|
if (Auth::admin()) {
|
||||||
echo '
|
echo '
|
||||||
<li data-widget="control-sidebar" class="btn-default">
|
<li data-toggle="control-sidebar" class="btn-default nav-item">
|
||||||
<a class="bg-info" data-widget="tab" href="#tab_info" id="link-tab_info">
|
<a class="bg-info nav-link" data-toggle="tab" href="#tab_info" id="link-tab_info">
|
||||||
<'.tr('Info').'
|
'.tr('Info').'
|
||||||
</a>
|
</a>
|
||||||
</li>';
|
</li>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue