Modules - Edit: Button updates.

This commit is contained in:
Nate
2020-02-10 20:56:48 -07:00
parent 18b26a9938
commit 964c5e13ec
2 changed files with 34 additions and 48 deletions

View File

@@ -162,7 +162,7 @@
echo " </th>\n";
}
echo "<th>".$text['label-label']."</th>\n";
echo "<th class='hide-sm-dn'>".$text['label-status']."</th>\n";
echo "<th class='hide-xs'>".$text['label-status']."</th>\n";
if ($fp) {
echo "<th class='center'>".$text['label-action']."</th>\n";
}
@@ -209,7 +209,7 @@
echo " </td>\n";
if ($fp) {
if ($module->active($row["module_name"])) {
echo " <td class='hide-sm-dn'>".$text['label-running']."</td>\n";
echo " <td class='hide-xs'>".$text['label-running']."</td>\n";
if (permission_exists('module_edit')) {
echo " <td class='no-link center'>";
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-stop'],'title'=>$text['button-stop'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('stop'); list_form_submit('form_list')"]);
@@ -217,7 +217,7 @@
}
}
else {
echo " <td class='hide-sm-dn'>\n";
echo " <td class='hide-xs'>\n";
echo $row['module_enabled'] == 'true' ? "<strong style='color: red;'>".$text['label-stopped']."</strong>" : $text['label-stopped']." ".escape($notice);
echo " </td>\n";
if (permission_exists('module_edit')) {
@@ -228,7 +228,7 @@
}
}
else{
echo " <td class='hide-sm-dn'>".$text['label-unknown']."</td>\n";
echo " <td class='hide-xs'>".$text['label-unknown']."</td>\n";
}
if (permission_exists('module_edit')) {
echo " <td class='no-link center'>";