* Code for finish task #84575.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/sortable.html.php';?>
|
||||
<?php js::set('browseType', $type);?>
|
||||
<style>.icon-help{margin-left: 3px;}</style>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
@@ -80,7 +81,7 @@
|
||||
<th class="c-action text-center w-110px"> <?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody class='sortable'>
|
||||
<?php $i = 0;?>
|
||||
<?php if(empty($plans) and $planID == 0):?>
|
||||
<?php foreach($stages as $stage):?>
|
||||
@@ -108,7 +109,9 @@
|
||||
<?php endif;?>
|
||||
<td class='c-actions text-center'>
|
||||
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
||||
<button type="button" class='btn btn-link btn-sm btn-icon btn-move'><i class='icon-move'></i></button>
|
||||
<a href='javascript:;' onclick='deleteItem(this)' class='btn btn-link'><i class='icon icon-close'></i></a>
|
||||
<?php echo html::hidden('orders[]', $stage->order);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i ++;?>
|
||||
@@ -143,7 +146,9 @@
|
||||
<?php endif;?>
|
||||
<td class='c-actions text-center'>
|
||||
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
||||
<button type="button" class='btn btn-link btn-sm btn-icon btn-move'><i class='icon-move'></i></button>
|
||||
<a href='javascript:;' onclick='deleteItem(this)' class='invisible btn btn-link'><i class='icon icon-close'></i></a>
|
||||
<?php echo html::hidden('orders[]', $plan->order);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i ++;?>
|
||||
@@ -174,6 +179,7 @@
|
||||
<?php endif;?>
|
||||
<td class='c-actions text-center'>
|
||||
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
||||
<button type="button" class='btn btn-link btn-sm btn-icon btn-move'><i class='icon-move'></i></button>
|
||||
<a href='javascript:;' onclick='deleteItem(this)' class='btn btn-link'><i class='icon icon-close'></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -219,6 +225,7 @@
|
||||
<?php endif;?>
|
||||
<td class='c-actions text-center'>
|
||||
<a href='javascript:;' onclick='addItem(this)' class='btn btn-link'><i class='icon-plus'></i></a>
|
||||
<button type="button" class='btn btn-link btn-sm btn-icon btn-move'><i class='icon-move'></i></button>
|
||||
<a href='javascript:;' onclick='deleteItem(this)' class='btn btn-link'><i class='icon icon-close'></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -236,6 +243,14 @@ js::set('projectEndDate', $project->end);
|
||||
<script>
|
||||
$('[data-toggle="popover"]').popover();
|
||||
|
||||
var options = {
|
||||
selector: 'tr',
|
||||
trigger: '.icon-move',
|
||||
dragCssClass: 'drag-row',
|
||||
reverse: true,
|
||||
}
|
||||
$('#planForm tbody.sortable').sortable(options);
|
||||
|
||||
$('#planForm').submit(function()
|
||||
{
|
||||
/* Clear all error messages. */
|
||||
|
||||
Reference in New Issue
Block a user