* datatable support checkbox input.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
</div>
|
||||
<div class='main'>
|
||||
<form method='post' id='projectTaskForm'>
|
||||
<table class='table table-condensed table-hover table-striped tablesorter table-fixed datatable' id='taskList'>
|
||||
<table class='table table-condensed table-hover table-striped tablesorter table-fixed datatable' id='taskList' data-checkable='true' data-fixed-left-width='450' data-fixed-right-width='150'>
|
||||
<?php $vars = "projectID=$project->id&status=$status&parma=$param&orderBy=%s&recTotal=$recTotal&recPerPage=$recPerPage"; ?>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -71,9 +71,9 @@
|
||||
<tbody>
|
||||
<?php foreach($tasks as $task):?>
|
||||
<?php $class = $task->assignedTo == $app->user->account ? 'style=color:red' : ''; ?>
|
||||
<tr class='text-center'>
|
||||
<tr class='text-center' data-id='<?php echo $task->id?>'>
|
||||
<td>
|
||||
<!-- <input type='checkbox' name='taskIDList[]' value='<?php echo $task->id;?>'/> -->
|
||||
<input class='checkbox-row' type='checkbox' name='taskIDList[]' value='<?php echo $task->id;?>'/>
|
||||
<?php if(!common::printLink('task', 'view', "task=$task->id", sprintf('%03d', $task->id))) printf('%03d', $task->id);?>
|
||||
</td>
|
||||
<td><span class='<?php echo 'pri' . zget($lang->task->priList, $task->pri, $task->pri)?>'><?php echo zget($lang->task->priList, $task->pri, $task->pri);?></span></td>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -105,6 +105,7 @@ hr.small {margin: 10px 0}
|
||||
.table-datatable tbody > tr td,
|
||||
.table-datatable thead > tr th {max-height: 34px; line-height: 21px;}
|
||||
.table-datatable tbody > tr td .btn-icon > i {line-height: 19px;}
|
||||
.table-datatable .checkbox-row {display: none}
|
||||
|
||||
/* Datepicker */
|
||||
.datepicker-wrapper {position: relative; cursor: pointer;}
|
||||
|
||||
Reference in New Issue
Block a user