Login or Register

RSS IconRecent posts in this topic

avatar
tyneskj on Dec 12. 2006. 7:37 am
I find that I want more task information on the milestone page without having to click to get at the information.

The information I want on the milestone page is:
-task list description
-what the open tasks on the task list are

All the code is cut from task_list.php and applied to view_milestone.php. A function for Open Tasks would make things look more clean.

one file modified
view_milestone.php
-----------------------------------
<?php } else { ?>
<li><a href="<?php echo $task_list->getViewUrl() ?>"><?php echo clean($task_list->getName()) ?></a></li>

<!-- *****OPEN****** Addition of Task Description frm task_list.php -->
<?php if($task_list->getDescription()) { ?>
<div class="desc"><?php echo clean($task_list->getDescription()) ?></div>
<?php } // if ?>
<!-- *****CLOSE****** // Addition of Task Description -->

<!-- *****OPEN****** Addition of Open Tasks frm task_list.php -->

<div class="openTasks">
<?php if(is_array($task_list->getOpenTasks())) { ?>
<table class="blank">
<?php foreach($task_list->getOpenTasks() as $task) { ?>
<tr>

<!-- Checkbox -->
<?php if($task->canChangeStatus(logged_user())) { ?>
<?php if($on_list_page) { ?>
<td class="taskCheckbox"><?php echo checkbox_link($task->getCompleteUrl(), false, lang('mark task as completed')) ?></td>
<?php } else { ?>
<td class="taskCheckbox"><?php echo checkbox_link($task->getCompleteUrl(undo_htmlspecialchars($task_list->getOverviewUrl())), false, lang('mark task as completed')) ?></td>
<?php } // if ?>
<?php } else { ?>
<td class="taskCheckbox"><img src="<?php echo icon_url('not-checked.jpg') ?>" alt="<?php echo lang('open task') ?>" /></td>
<?php } // if?>

<!-- Task text and options -->
<td class="taskText">
<?php if($task->getAssignedTo()) { ?>
<span class="assignedTo"><?php echo clean($task->getAssignedTo()->getObjectName()) ?>:</span>
<?php } // if{ ?>
<?php echo clean($task->getText()) ?> <?php if($task->canEdit(logged_user())) { ?><a href="<?php echo $task->getEditUrl() ?>" class="blank" title="<?php echo lang('edit task') ?>"><img src="<?php echo icon_url('edit.gif') ?>" alt="" /></a><?php } // if ?> <?php if($task->canDelete(logged_user())) { ?><a href="<?php echo $task->getDeleteUrl() ?>" class="blank" onclick="return confirm('<?php echo lang('confirm delete task') ?>')" title="<?php echo lang('delete task') ?>"><img src="<?php echo icon_url('cancel_gray.gif') ?>" alt="" /></a><?php } // if ?>
</td>
</tr>
<?php } // foreach ?>
</table>
<?php } else { ?>
<?php echo lang('no open task in task list') ?>
<?php } // if ?>
</div>

<!-- *****CLOSE***** // Addition of Open Tasks -->

<?php } // if ?>
<?php } // foreach ?>
</ul>
<?php } // if ?>
<?php } // if ?>
avatar
tyneskj on Dec 12. 2006. 8:18 am
I have put together the 3 modifications I have made & posted them to flickr
-10 day color yellow-to-red
- New Tasks | New Messages
- Task list discription
-Only Open Task are listed

http://www.flickr.com/photos/12017965@N00/320575234/
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.

RSS IconRecent posts in this topic