Changeset 25007
- Timestamp:
- 02/04/10 11:53:02 (1 month ago)
- Files:
-
- branches/ragnaroek/midcom/org.openpsa.projects/config/mgdschema.xml (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/config/schemadb_default_task.inc (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/handler/task/list.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/locale/default.de.txt (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/locale/default.en.txt (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-project-list-status-header.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-project-list-status-item.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-task_table-footer.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-task_table-header.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-task_table-item.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-completed-item.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-current-item.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-header.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-list-header.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-pending_accept-item.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-pending_approve-item.php (modified) (1 diff)
- branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-proposed-item.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/ragnaroek/midcom/org.openpsa.projects/config/mgdschema.xml
r21743 r25007 78 78 </description> 79 79 </property> 80 80 <property name="priority" type="integer" /> 81 81 <!-- TODO: how to handle "percentages" [as in the 1.x Projects] ? I think they will be a member-like system or something --> 82 82 branches/ragnaroek/midcom/org.openpsa.projects/config/schemadb_default_task.inc
r20177 r25007 12 12 'required' => true, 13 13 ), 14 'priority' => array 15 ( 16 'title' => 'Priority', 17 'storage' => 'priority', 18 'type' => 'select', 19 'type_config' => array 20 ( 21 'options' => Array 22 ( 23 '1' => 'very high', 24 '2' => 'high', 25 '3' => 'average', 26 '4' => 'low', 27 '5' => 'very low', 28 ), 29 ), 30 'default' => '3', 31 'widget' => 'select', 32 ), 14 33 'tags' => Array 15 34 ( branches/ragnaroek/midcom/org.openpsa.projects/handler/task/list.php
r23015 r25007 115 115 ) 116 116 ); 117 //get possible priorities from schema 118 $schemadb = midcom_helper_datamanager2_schema::load_database($this->_config->get('schemadb_task')); 119 $this->_request_data['priority_array'] = $schemadb['default']->fields['priority']['type_config']['options']; 120 121 foreach($this->_request_data['priority_array'] as $key => $title) 122 { 123 $this->_request_data['priority_array'][$key] = array(); 124 $this->_request_data['priority_array'][$key]['title'] = $title; 125 } 117 126 118 127 if (count($args) > 0) branches/ragnaroek/midcom/org.openpsa.projects/locale/default.de.txt
r24764 r25007 460 460 ---STRINGEND 461 461 462 ---STRING priority 463 PrioritÀt 464 ---STRINGEND 465 466 ---STRING very high 467 sehr hoch 468 ---STRINGEND 469 470 ---STRING high 471 hoch 472 ---STRINGEND 473 474 ---STRING average 475 normal 476 ---STRINGEND 477 478 ---STRING low 479 gering 480 ---STRINGEND 481 482 ---STRING very low 483 sehr gering 484 ---STRINGEND 485 branches/ragnaroek/midcom/org.openpsa.projects/locale/default.en.txt
r23195 r25007 460 460 ---STRINGEND 461 461 462 ---STRING priority 463 Priority 464 ---STRINGEND branches/ragnaroek/midcom/org.openpsa.projects/style/show-project-list-status-header.php
r5048 r25007 13 13 <th><?php echo $data['l10n']->get('manager'); ?></th> 14 14 <th><?php echo $data['l10n']->get('customer'); ?></th> 15 <th><?php echo $data['l10n']->get('priority'); ?></th> 15 16 <th><?php echo $data['l10n']->get('start'); ?></th> 16 17 <th><?php echo $data['l10n']->get('end'); ?></th> branches/ragnaroek/midcom/org.openpsa.projects/style/show-project-list-status-item.php
r22825 r25007 22 22 } 23 23 ?></td> 24 <td> 25 <?php 26 if(isset($data['priority_array']) && array_key_exists($task->priority , $data['priority_array'])) 27 { 28 echo $data['l10n']->get($data['priority_array'][$task->priority]['title']); 29 } 30 ?> 31 </td> 24 32 <td><?php echo strftime("%x", $project->start); ?></td> 25 33 <td><?php echo strftime("%x", $project->end); ?></td> branches/ragnaroek/midcom/org.openpsa.projects/style/show-task_table-footer.php
r20261 r25007 4 4 if ($data['view_identifier'] == 'agreement') 5 5 { 6 $colspan = 5;6 $colspan = 6; 7 7 } 8 8 else 9 9 { 10 $colspan = 7;10 $colspan = 8; 11 11 } 12 12 ?> branches/ragnaroek/midcom/org.openpsa.projects/style/show-task_table-header.php
r20261 r25007 19 19 <th><?php echo $data['l10n']->get('task'); ?></th> 20 20 <th><?php echo $data['l10n']->get('project'); ?></th> 21 <th><?php echo $data['l10n']->get('priority'); ?></th> 21 22 <?php 22 23 if ($data['view_identifier'] != 'agreement') branches/ragnaroek/midcom/org.openpsa.projects/style/show-task_table-item.php
r22842 r25007 23 23 <td> 24 24 &(cells['parent']:h); 25 </td> 26 <td> 27 <?php 28 if(isset($data['priority_array']) && array_key_exists($task->priority , $data['priority_array'])) 29 { 30 echo $data['l10n']->get($data['priority_array'][$task->priority]['title']); 31 } 32 ?> 25 33 </td> 26 34 <?php branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-completed-item.php
r22842 r25007 48 48 </form> 49 49 </td> 50 <?php 51 echo "<td>\n"; 52 if(isset($data['priority_array']) && array_key_exists($task->priority , $data['priority_array'])) 53 { 54 echo $data['l10n']->get($data['priority_array'][$task->priority]['title']); 55 } 56 echo "</td>\n"; 57 ?> 50 58 </tr> branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-current-item.php
r22842 r25007 49 49 ?> 50 50 </td> 51 <td> 52 <?php 53 if(isset($data['priority_array']) && array_key_exists($task->priority , $data['priority_array'])) 54 { 55 echo $data['l10n']->get($data['priority_array'][$task->priority]['title']); 56 } 57 ?> 58 </td> 51 59 </tr> branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-header.php
r22842 r25007 3 3 <tr> 4 4 <th colspan="2"><?php echo $data['l10n']->get($data['view']); ?></th> 5 <th> <?php echo $data['l10n']->get('priority'); ?></th> 5 6 </tr> 6 7 </thead> branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-list-header.php
r22842 r25007 1 1 <tr class="&(data['list_type']);"> 2 <th colspan=" 2"><?php echo $data['l10n']->get($data['list_type'] . ' tasks'); ?></th>2 <th colspan="3"><?php echo $data['l10n']->get($data['list_type'] . ' tasks'); ?></th> 3 3 </tr> branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-pending_accept-item.php
r22842 r25007 37 37 38 38 echo "</td>\n"; 39 echo "<td>\n"; 40 if(isset($data['priority_array']) && array_key_exists($task->priority , $data['priority_array'])) 41 { 42 echo $data['l10n']->get($data['priority_array'][$task->priority]['title']); 43 } 44 echo "</td>\n"; 39 45 echo "</tr>\n"; 40 46 branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-pending_approve-item.php
r22842 r25007 55 55 ?> 56 56 </td> 57 <?php 58 echo "<td>\n"; 59 if(isset($data['priority_array']) && array_key_exists($task->priority , $data['priority_array'])) 60 { 61 echo $data['l10n']->get($data['priority_array'][$task->priority]['title']); 62 } 63 echo "</td>\n"; 64 ?> 57 65 </tr> 58 66 branches/ragnaroek/midcom/org.openpsa.projects/style/show-tasks-proposed-item.php
r22842 r25007 43 43 } 44 44 echo "</td>\n"; 45 echo "<td>\n"; 46 if(isset($data['priority_array']) && array_key_exists($task->priority , $data['priority_array'])) 47 { 48 echo $data['l10n']->get($data['priority_array'][$task->priority]['title']); 49 } 50 echo "</td>\n"; 45 51 echo "</tr>\n"; 46 52 ?>
