more condensed layout for better use on small devices

This commit is contained in:
Uwe Steinmann 2023-09-12 12:44:21 +02:00
parent 52fdbb8c16
commit 6b6410997f

View File

@ -43,7 +43,7 @@ $(document).ready( function() {
$('body').on('click', '.edittask', function(ev){
ev.preventDefault();
$('#editaddtask.ajax').trigger('update', {taskid: $(this).data('id'), action: $(this).data('action')});
$("html, body").animate({ scrollTop: 0 }, "slow");
$("html, body").animate({ scrollTop: $('#editaddtask').offset().top }, "slow");
});
$('#listtasks.ajax').trigger('update', {});
@ -540,12 +540,11 @@ $(document).ready( function() {
$this->contentHeading(getMLText("scheduler_class_tasks"));
echo "<table class=\"table _table-condensed\">\n";
print "<thead>\n<tr>\n";
print "<th>".getMLText('scheduler_class')."</th>\n";
print "<th>".getMLText('task_name')."/".getMLText('task_description')."</th>\n";
print "<th>".getMLText('task_frequency')."</th>\n";
print "<th>".getMLText('task_next_run')."</th>\n";
print "<th>".getMLText('task_last_run')."</th>\n";
print "<th></th>\n";
print "<th>".getMLText('task_name')."/".getMLText('task_description')."</th>\n";
print "<th>".getMLText('task_next_run')."<br/>\n";
print getMLText('task_last_run')."<br/>\n";
print getMLText('task_frequency')."</th>\n";
print "<th></th>\n";
print "</tr></thead><tbody>\n";
foreach($tasks as $task) {
if(!isset($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()][$task->getTask()]) || !is_object(resolveTask($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()][$task->getTask()])))
@ -553,22 +552,16 @@ $(document).ready( function() {
else
$class = 'table-success success';
echo "<tr id=\"table-row-task-".$task->getID()."\" class=\"".(!$task->getDisabled() ? " ".$class : "")."\">";
echo "<td>";
echo "<td width=\"*\">";
echo "<strong>".$task->getName()."</strong></br>";
echo $task->getDescription()."</br>";
echo $task->getExtension()."::".$task->getTask();
echo "</td>";
echo "<td width=\"100%\">";
echo "<strong>".$task->getName()."</strong></br>";
echo $task->getDescription();
echo "</td>";
echo "<td>";
echo $task->getFrequency();
echo "</td>";
echo "<td>";
echo getLongReadableDate(makeTsFromDate($task->getNextRun()));
echo "</td>";
echo "<td>";
echo "<i class=\"fa fa-clock-o\" title=\"".getMLText('task_next_run')."\"></i> ".getLongReadableDate(makeTsFromDate($task->getNextRun()));
if($task->getLastRun())
echo getLongReadableDate(makeTsFromDate($task->getLastRun()));
echo "<br/><i class=\"fa fa-stop-circle\" title=\"".getMLText('task_last_run')."\"></i> ".getLongReadableDate(makeTsFromDate($task->getLastRun()));
echo "<br/><i class=\"fa fa-refresh\" title=\"".getMLText('task_frequency')."\"></i> ".$task->getFrequency();
echo "</td>";
echo "<td nowrap>";
print "<div class=\"list-action\">";
@ -600,10 +593,9 @@ $(document).ready( function() {
if(!empty($GLOBALS['SEEDDMS_SCHEDULER']['tasks'])) {
echo "<table class=\"table _table-condensed\">\n";
print "<thead>\n<tr>\n";
print "<th>".getMLText('scheduler_class')."</th>\n";
print "<th>".getMLText('scheduler_class_description')."</th>\n";
print "<th>".getMLText('scheduler_class_parameter')."</th>\n";
print "<th></th>\n";
print "<th>".getMLText('scheduler_class')."/".getMLText('scheduler_class_description')."</th>\n";
print "<th>".getMLText('scheduler_class_parameter')."</th>\n";
print "<th></th>\n";
print "</tr></thead><tbody>\n";
$errmsgs = array();
foreach($GLOBALS['SEEDDMS_SCHEDULER']['tasks'] as $extname=>$tasks) {
@ -612,11 +604,11 @@ $(document).ready( function() {
if(!is_object($task))
continue;
echo "<tr>";
echo "<td>";
echo $extname."::".$taskname;
echo "</td>";
echo "<td width=\"100%\">";
echo $extname."::".$taskname;
echo "<p>";
echo $task->getDescription();
echo "</p>";
echo "</td>";
echo "<td>";
$params = $task->getAdditionalParams();