* improve UI of views with table, finish task #2687,task #2749 and task #2762.

This commit is contained in:
Catouse
2016-11-24 15:47:47 +08:00
parent bdac0837e5
commit 8951f8d0af
45 changed files with 193 additions and 160 deletions
+6 -8
View File
@@ -23,16 +23,16 @@
<?php echo html::select('fromproject', $projects, $fromProject, "onchange='reload($projectID, this.value)' class='form-control chosen'");?>
<span class='input-group-btn'>
<?php
$toggleClass = $containDoing ? 'icon-toggle-on' : 'icon-toggle-off';
$toggleClass = $containDoing ? 'icon-checked' : 'icon-check-empty';
$params = $containDoing ? "toProject=$projectID&fromProject=$fromProject" : "toProject=$projectID&fromProject=$fromProject&containDoing=true";
echo html::a($this->createLink('project', 'importTask', $params), "<i class={$toggleClass}></i>" . $lang->project->containDoing, '', "class='btn'");
echo html::a($this->createLink('project', 'importTask', $params), "<i class={$toggleClass}></i> " . $lang->project->containDoing, '', "class='btn'");
?>
</span>
</div>
</div>
</div>
<form class='form-condensed' method='post' target='hiddenwin' id='importTaskForm'>
<table class='table tablesorter table-fixed'>
<table class='table tablesorter table-fixed table-selectable'>
<thead>
<tr class='colhead'>
<th class='w-id'><?php echo $lang->idAB;?></th>
@@ -50,12 +50,10 @@
<?php foreach($tasks2Imported as $task):?>
<?php $class = $task->assignedTo == $app->user->account ? 'style=color:red' : '';?>
<tr class='text-center'>
<td>
<input type='checkbox' name='tasks[]' value='<?php echo $task->id;?>' />
<?php if(!common::printLink('task', 'view', "task=$task->id", sprintf('%03d', $task->id))) printf('%03d', $task->id);?>
<td class='cell-id'>
<input type='checkbox' name='tasks[]' value='<?php echo $task->id;?>' />
<?php if(!common::printLink('task', 'view', "task=$task->id", sprintf('%03d', $task->id))) printf('%03d', $task->id);?>
</td>
<td><?php echo substr($projects[$task->project], 2);?></td>
<td><span class='<?php echo 'pri' . zget($lang->task->priList, $task->pri, $task->pri)?>'><?php echo $task->pri == '0' ? '' : zget($lang->task->priList, $task->pri, $task->pri);?></span></td>
<td class='text-left nobr'><?php if(!common::printLink('task', 'view', "task=$task->id", $task->name)) echo $task->name;?></td>