Annotation of FreeBSD/tinderbox/webui/templates/default/user_permissions.tpl, revision 1.1

1.1     ! as          1: <table>
        !             2:        <tr>
        !             3:                <th>Build</th>
        !             4:                <th>Add<br />Queue<br />Entries</th>
        !             5:                <th>Modify<br />Own<br />Queue<br />Entries</th>
        !             6:                <th>Delete<br />Own<br />Queue<br />Entries</th>
        !             7:                <th>Modify<br />Other<br />Queue<br />Entries</th>
        !             8:                <th>Delete<br />Other<br />Queue<br />Entries</th>
        !             9:                <th>Allow<br />Priority<br />&lt; 5</th>
        !            10:        </tr>
        !            11: 
        !            12:        <?if($www_admin){?>
        !            13:                <?foreach($all_builds as $build) {?>
        !            14:                <tr>            
        !            15:                        <td><?=$build['build_name']?></td>
        !            16:                        <td align="center"><input type="checkbox" name="permission_object[<?=$build['build_id']?>][PERM_ADD_QUEUE]"          <?if(isset($permission_object[$build['build_id']]['PERM_ADD_QUEUE'])){?>checked="checked"<?}?> /></td>
        !            17:                        <td align="center"><input type="checkbox" name="permission_object[<?=$build['build_id']?>][PERM_MODIFY_OWN_QUEUE]"   <?if(isset($permission_object[$build['build_id']]['PERM_MODIFY_OWN_QUEUE'])){?>checked="checked"<?}?> /></td>
        !            18:                        <td align="center"><input type="checkbox" name="permission_object[<?=$build['build_id']?>][PERM_DELETE_OWN_QUEUE]"   <?if(isset($permission_object[$build['build_id']]['PERM_DELETE_OWN_QUEUE'])){?>checked="checked"<?}?> /></td>
        !            19:                        <td align="center"><input type="checkbox" name="permission_object[<?=$build['build_id']?>][PERM_MODIFY_OTHER_QUEUE]" <?if(isset($permission_object[$build['build_id']]['PERM_MODIFY_OTHER_QUEUE'])){?>checked="checked"<?}?> /></td>
        !            20:                        <td align="center"><input type="checkbox" name="permission_object[<?=$build['build_id']?>][PERM_DELETE_OTHER_QUEUE]" <?if(isset($permission_object[$build['build_id']]['PERM_DELETE_OTHER_QUEUE'])){?>checked="checked"<?}?> /></td>
        !            21:                        <td align="center"><input type="checkbox" name="permission_object[<?=$build['build_id']?>][PERM_PRIO_LOWER_5]"       <?if(isset($permission_object[$build['build_id']]['PERM_PRIO_LOWER_5'])){?>checked="checked"<?}?> /></td>
        !            22:                </tr>
        !            23:                <?}?>
        !            24:        <?}else{?>
        !            25:                <?foreach($all_builds as $build) {?>
        !            26:                <tr>            
        !            27:                        <td><?=$build['build_name']?></td>
        !            28:                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_ADD_QUEUE']){?>X<?}?></td>
        !            29:                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_MODIFY_OWN_QUEUE']){?>X<?}?></td>
        !            30:                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_DELETE_OWN_QUEUE']){?>X<?}?></td>
        !            31:                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_MODIFY_OTHER_QUEUE']){?>X<?}?></td>
        !            32:                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_DELETE_OTHER_QUEUE']){?>X<?}?></td>
        !            33:                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_PRIO_LOWER_5']){?>X<?}?></td>
        !            34:                </tr>
        !            35:                <?}?>
        !            36:        <?}?>
        !            37: 
        !            38: </table>