Annotation of FreeBSD/tinderbox/webui/templates/paefchen/user_permissions.tpl, revision 1.1.2.1
1.1.2.1 ! as 1: <br />
1.1 as 2: <table>
3: <tr>
1.1.2.1 ! as 4: <th>Host</th>
1.1 as 5: <th>Build</th>
6: <th>Add<br />Queue<br />Entries</th>
7: <th>Modify<br />Own<br />Queue<br />Entries</th>
8: <th>Delete<br />Own<br />Queue<br />Entries</th>
9: <th>Modify<br />Other<br />Queue<br />Entries</th>
10: <th>Delete<br />Other<br />Queue<br />Entries</th>
11: <th>Allow<br />Priority<br />< 5</th>
12: </tr>
13:
1.1.2.1 ! as 14: <?foreach($all_hosts as $host) {?>
! 15: <tr>
! 16: <td rowspan="<?=count($all_builds)+1?>"><?=$host['host_name']?></td>
! 17: </tr>
1.1 as 18: <?if($www_admin){?>
19: <?foreach($all_builds as $build) {?>
20: <tr>
21: <td><?=$build['build_name']?></td>
1.1.2.1 ! as 22: <td align="center"><input type="checkbox" name="permission_object[<?=$host['host_id']?>][<?=$build['build_id']?>][PERM_ADD_QUEUE]" <?if(isset($permission_object[$host['host_id']][$build['build_id']]['PERM_ADD_QUEUE'])){?>checked="checked"<?}?> /></td>
! 23: <td align="center"><input type="checkbox" name="permission_object[<?=$host['host_id']?>][<?=$build['build_id']?>][PERM_MODIFY_OWN_QUEUE]" <?if(isset($permission_object[$host['host_id']][$build['build_id']]['PERM_MODIFY_OWN_QUEUE'])){?>checked="checked"<?}?> /></td>
! 24: <td align="center"><input type="checkbox" name="permission_object[<?=$host['host_id']?>][<?=$build['build_id']?>][PERM_DELETE_OWN_QUEUE]" <?if(isset($permission_object[$host['host_id']][$build['build_id']]['PERM_DELETE_OWN_QUEUE'])){?>checked="checked"<?}?> /></td>
! 25: <td align="center"><input type="checkbox" name="permission_object[<?=$host['host_id']?>][<?=$build['build_id']?>][PERM_MODIFY_OTHER_QUEUE]" <?if(isset($permission_object[$host['host_id']][$build['build_id']]['PERM_MODIFY_OTHER_QUEUE'])){?>checked="checked"<?}?> /></td>
! 26: <td align="center"><input type="checkbox" name="permission_object[<?=$host['host_id']?>][<?=$build['build_id']?>][PERM_DELETE_OTHER_QUEUE]" <?if(isset($permission_object[$host['host_id']][$build['build_id']]['PERM_DELETE_OTHER_QUEUE'])){?>checked="checked"<?}?> /></td>
! 27: <td align="center"><input type="checkbox" name="permission_object[<?=$host['host_id']?>][<?=$build['build_id']?>][PERM_PRIO_LOWER_5]" <?if(isset($permission_object[$host['host_id']][$build['build_id']]['PERM_PRIO_LOWER_5'])){?>checked="checked"<?}?> /></td>
1.1 as 28: </tr>
29: <?}?>
30: <?}else{?>
31: <?foreach($all_builds as $build) {?>
32: <tr>
33: <td><?=$build['build_name']?></td>
1.1.2.1 ! as 34: <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_ADD_QUEUE']){?>X<?}?></td>
! 35: <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_MODIFY_OWN_QUEUE']){?>X<?}?></td>
! 36: <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_DELETE_OWN_QUEUE']){?>X<?}?></td>
! 37: <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_MODIFY_OTHER_QUEUE']){?>X<?}?></td>
! 38: <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_DELETE_OTHER_QUEUE']){?>X<?}?></td>
! 39: <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_PRIO_LOWER_5']){?>X<?}?></td>
1.1 as 40: </tr>
41: <?}?>
42: <?}?>
1.1.2.1 ! as 43: <?}?>
1.1 as 44:
45: </table>