Added primary contact column to user view

This commit is contained in:
Karl Cordes 2013-06-27 00:12:29 +10:00
parent ff47f0a413
commit ef536a285b

View file

@ -7,6 +7,7 @@
<th><?php echo __('phone');?></th> <th><?php echo __('phone');?></th>
<th><?php echo __('fax');?></th> <th><?php echo __('fax');?></th>
<th><?php echo __('notes');?></th> <th><?php echo __('notes');?></th>
<th>Primary Contact</th>
<th class="actions"><?php __('Actions');?></th> <th class="actions"><?php __('Actions');?></th>
</tr> </tr>
<?php <?php
@ -36,7 +37,12 @@
<td> <td>
<?php echo $principleContact['PrincipleContact']['notes']; ?> <?php echo $principleContact['PrincipleContact']['notes']; ?>
</td> </td>
<td class="actions"> <td>
<?php if($principleContact['PrincipleContact']['primary_contact']) {
echo "Yes";
} ?>
</td>
<td class="actions">
<button id="<?=$principleContact['PrincipleContact']['id']?>" class="ViewEditButton">View/Edit</button> <button id="<?=$principleContact['PrincipleContact']['id']?>" class="ViewEditButton">View/Edit</button>
</td> </td>
@ -44,4 +50,4 @@
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
<span id="userType">principle</span> <span id="userType">principle</span>