mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
more condensed layout for better use on small devices
This commit is contained in:
parent
52fdbb8c16
commit
6b6410997f
|
@ -43,7 +43,7 @@ $(document).ready( function() {
|
||||||
$('body').on('click', '.edittask', function(ev){
|
$('body').on('click', '.edittask', function(ev){
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
$('#editaddtask.ajax').trigger('update', {taskid: $(this).data('id'), action: $(this).data('action')});
|
$('#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', {});
|
$('#listtasks.ajax').trigger('update', {});
|
||||||
|
|
||||||
|
@ -540,12 +540,11 @@ $(document).ready( function() {
|
||||||
$this->contentHeading(getMLText("scheduler_class_tasks"));
|
$this->contentHeading(getMLText("scheduler_class_tasks"));
|
||||||
echo "<table class=\"table _table-condensed\">\n";
|
echo "<table class=\"table _table-condensed\">\n";
|
||||||
print "<thead>\n<tr>\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_name')."/".getMLText('task_description')."</th>\n";
|
print "<th>".getMLText('task_next_run')."<br/>\n";
|
||||||
print "<th>".getMLText('task_frequency')."</th>\n";
|
print getMLText('task_last_run')."<br/>\n";
|
||||||
print "<th>".getMLText('task_next_run')."</th>\n";
|
print getMLText('task_frequency')."</th>\n";
|
||||||
print "<th>".getMLText('task_last_run')."</th>\n";
|
print "<th></th>\n";
|
||||||
print "<th></th>\n";
|
|
||||||
print "</tr></thead><tbody>\n";
|
print "</tr></thead><tbody>\n";
|
||||||
foreach($tasks as $task) {
|
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()])))
|
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
|
else
|
||||||
$class = 'table-success success';
|
$class = 'table-success success';
|
||||||
echo "<tr id=\"table-row-task-".$task->getID()."\" class=\"".(!$task->getDisabled() ? " ".$class : "")."\">";
|
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 $task->getExtension()."::".$task->getTask();
|
||||||
echo "</td>";
|
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 "<td>";
|
||||||
|
echo "<i class=\"fa fa-clock-o\" title=\"".getMLText('task_next_run')."\"></i> ".getLongReadableDate(makeTsFromDate($task->getNextRun()));
|
||||||
if($task->getLastRun())
|
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>";
|
||||||
echo "<td nowrap>";
|
echo "<td nowrap>";
|
||||||
print "<div class=\"list-action\">";
|
print "<div class=\"list-action\">";
|
||||||
|
@ -600,10 +593,9 @@ $(document).ready( function() {
|
||||||
if(!empty($GLOBALS['SEEDDMS_SCHEDULER']['tasks'])) {
|
if(!empty($GLOBALS['SEEDDMS_SCHEDULER']['tasks'])) {
|
||||||
echo "<table class=\"table _table-condensed\">\n";
|
echo "<table class=\"table _table-condensed\">\n";
|
||||||
print "<thead>\n<tr>\n";
|
print "<thead>\n<tr>\n";
|
||||||
print "<th>".getMLText('scheduler_class')."</th>\n";
|
print "<th>".getMLText('scheduler_class')."/".getMLText('scheduler_class_description')."</th>\n";
|
||||||
print "<th>".getMLText('scheduler_class_description')."</th>\n";
|
print "<th>".getMLText('scheduler_class_parameter')."</th>\n";
|
||||||
print "<th>".getMLText('scheduler_class_parameter')."</th>\n";
|
print "<th></th>\n";
|
||||||
print "<th></th>\n";
|
|
||||||
print "</tr></thead><tbody>\n";
|
print "</tr></thead><tbody>\n";
|
||||||
$errmsgs = array();
|
$errmsgs = array();
|
||||||
foreach($GLOBALS['SEEDDMS_SCHEDULER']['tasks'] as $extname=>$tasks) {
|
foreach($GLOBALS['SEEDDMS_SCHEDULER']['tasks'] as $extname=>$tasks) {
|
||||||
|
@ -612,11 +604,11 @@ $(document).ready( function() {
|
||||||
if(!is_object($task))
|
if(!is_object($task))
|
||||||
continue;
|
continue;
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>";
|
|
||||||
echo $extname."::".$taskname;
|
|
||||||
echo "</td>";
|
|
||||||
echo "<td width=\"100%\">";
|
echo "<td width=\"100%\">";
|
||||||
|
echo $extname."::".$taskname;
|
||||||
|
echo "<p>";
|
||||||
echo $task->getDescription();
|
echo $task->getDescription();
|
||||||
|
echo "</p>";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
$params = $task->getAdditionalParams();
|
$params = $task->getAdditionalParams();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user