Diff for /FreeBSD/tinderbox/webui/templates/paefchen/user_permissions.tpl between versions 1.1 and 1.1.2.1

version 1.1, 2008/01/05 12:25:17 version 1.1.2.1, 2008/01/06 23:47:07
Line 1 Line 1
   <br />
 <table>  <table>
         <tr>          <tr>
                   <th>Host</th>
                 <th>Build</th>                  <th>Build</th>
                 <th>Add<br />Queue<br />Entries</th>                  <th>Add<br />Queue<br />Entries</th>
                 <th>Modify<br />Own<br />Queue<br />Entries</th>                  <th>Modify<br />Own<br />Queue<br />Entries</th>
Line 9 Line 11
                 <th>Allow<br />Priority<br />&lt; 5</th>                  <th>Allow<br />Priority<br />&lt; 5</th>
         </tr>          </tr>
   
   <?foreach($all_hosts as $host) {?>
           <tr>
                   <td rowspan="<?=count($all_builds)+1?>"><?=$host['host_name']?></td>
           </tr>
         <?if($www_admin){?>          <?if($www_admin){?>
                 <?foreach($all_builds as $build) {?>                  <?foreach($all_builds as $build) {?>
                 <tr>                              <tr>            
                         <td><?=$build['build_name']?></td>                          <td><?=$build['build_name']?></td>
                        <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>                        <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>
                        <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>                        <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>
                        <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>                        <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>
                        <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>                        <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>
                        <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>                        <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>
                        <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>                        <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>
                 </tr>                  </tr>
                 <?}?>                  <?}?>
         <?}else{?>          <?}else{?>
                 <?foreach($all_builds as $build) {?>                  <?foreach($all_builds as $build) {?>
                 <tr>                              <tr>            
                         <td><?=$build['build_name']?></td>                          <td><?=$build['build_name']?></td>
                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_ADD_QUEUE']){?>X<?}?></td>                        <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_ADD_QUEUE']){?>X<?}?></td>
                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_MODIFY_OWN_QUEUE']){?>X<?}?></td>                        <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_MODIFY_OWN_QUEUE']){?>X<?}?></td>
                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_DELETE_OWN_QUEUE']){?>X<?}?></td>                        <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_DELETE_OWN_QUEUE']){?>X<?}?></td>
                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_MODIFY_OTHER_QUEUE']){?>X<?}?></td>                        <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_MODIFY_OTHER_QUEUE']){?>X<?}?></td>
                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_DELETE_OTHER_QUEUE']){?>X<?}?></td>                        <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_DELETE_OTHER_QUEUE']){?>X<?}?></td>
                        <td align="center"><?if($permission_object[$build['build_id']]['PERM_PRIO_LOWER_5']){?>X<?}?></td>                        <td align="center"><?if($permission_object[$host['host_id']][$build['build_id']]['PERM_PRIO_LOWER_5']){?>X<?}?></td>
                 </tr>                  </tr>
                 <?}?>                  <?}?>
         <?}?>          <?}?>
   <?}?>
   
 </table>  </table>

Removed from v.1.1  
changed lines
  Added in v.1.1.2.1