|
|
@ -435,8 +435,7 @@ class SortableTable extends HTML_Table |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$html .= '<input type="hidden" name="action">'; |
|
|
|
$html .= '<input type="hidden" name="action">'; |
|
|
|
|
|
|
|
$html .= '<div class="q-card p-2 mb-4">'; |
|
|
|
$html .= '<div class="q-card">'; |
|
|
|
|
|
|
|
$html .= '<div class="flex flex-row justify-between">'; |
|
|
|
$html .= '<div class="flex flex-row justify-between">'; |
|
|
|
|
|
|
|
|
|
|
|
if (count($this->form_actions) > 0) { |
|
|
|
if (count($this->form_actions) > 0) { |
|
|
@ -444,30 +443,24 @@ class SortableTable extends HTML_Table |
|
|
|
$html .= '<a |
|
|
|
$html .= '<a |
|
|
|
class="btn btn-primary" |
|
|
|
class="btn btn-primary" |
|
|
|
href="?'.$params.'&'.$this->param_prefix.'selectall=1" |
|
|
|
href="?'.$params.'&'.$this->param_prefix.'selectall=1" |
|
|
|
onclick="javascript: setCheckbox(true, \''.$table_id.'\'); return false;">'.get_lang('Select all').'</a>'; |
|
|
|
onclick="javascript: setCheckbox(true, \''.$table_id.'\'); return false;">'. |
|
|
|
|
|
|
|
get_lang('Select all').'</a>'; |
|
|
|
$html .= '<a |
|
|
|
$html .= '<a |
|
|
|
class="btn btn-primary" |
|
|
|
class="btn btn-primary" |
|
|
|
href="?'.$params.'" |
|
|
|
href="?'.$params.'" |
|
|
|
onclick="javascript: setCheckbox(false, \''.$table_id.'\'); return false;">'.get_lang('UnSelect all').'</a> '; |
|
|
|
onclick="javascript: setCheckbox(false, \''.$table_id.'\'); return false;">'. |
|
|
|
$html .= '<div class="btn-group" role="group"> |
|
|
|
get_lang('Deselect all').'</a> '; |
|
|
|
<button |
|
|
|
|
|
|
|
id="'.$table_id.'_actions" |
|
|
|
$items = []; |
|
|
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" |
|
|
|
foreach ($this->form_actions as $action => $label) { |
|
|
|
class="btn btn-outline-primary dropdown-toggle" |
|
|
|
$items[] = [ |
|
|
|
onclick="javascript:return false;">'. |
|
|
|
'href' => 'javascript:void();', |
|
|
|
get_lang('Detail').' |
|
|
|
'onclick' => "javascript:action_click(this, '$table_id');", |
|
|
|
</button> |
|
|
|
'title' => $label, |
|
|
|
'; |
|
|
|
'data-action' => $action, |
|
|
|
$html .= '<div class="dropdown-menu" aria-labelledby="'.$table_id.'_actions" >'; |
|
|
|
]; |
|
|
|
foreach ($this->form_actions as $action => &$label) { |
|
|
|
|
|
|
|
$html .= '<a |
|
|
|
|
|
|
|
class="dropdown-item" |
|
|
|
|
|
|
|
data-action ="'.$action.'" |
|
|
|
|
|
|
|
href="#" |
|
|
|
|
|
|
|
onclick="javascript:action_click(this, \''.$table_id.'\');">'.$label.'</a>'; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$html .= '</div>'; |
|
|
|
$html .= Display::groupButtonWithDropDown(get_lang('Detail'), $items); |
|
|
|
$html .= '</div>'; |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$html .= $form; |
|
|
|
$html .= $form; |
|
|
|
} |
|
|
|
} |
|
|
|