Skip to content
Snippets Groups Projects
Commit 40836b70 authored by Jared Hancock's avatar Jared Hancock
Browse files

Allow management of organization form

parent a088e511
No related branches found
No related tags found
No related merge requests found
......@@ -27,29 +27,21 @@ $showing=$pageNav->showing().' forms';
</thead>
<tbody>
<?php
foreach (UserForm::objects()->order_by('title') as $form) { ?>
$forms = array(
'U' => 'icon-user',
'T' => 'icon-ticket',
'C' => 'icon-building',
'O' => 'icon-group',
);
foreach (DynamicForm::objects()
->filter(array('type__in'=>array_keys($forms)))
->order_by('type', 'title') as $form) { ?>
<tr>
<td><i class="icon-user"></i></td>
<td><i class="<?php echo $forms[$form->get('type')]; ?>"></i></td>
<td><a href="?id=<?php echo $form->get('id'); ?>">
<?php echo $form->get('title'); ?></a>
<td><?php echo $form->get('updated'); ?></td>
</tr>
<?php }
foreach (TicketForm::objects()->order_by('title') as $form) { ?>
<tr>
<td><i class="icon-ticket"></i></td>
<td><a href="?id=<?php echo $form->get('id'); ?>">
<?php echo $form->get('title'); ?></a></td>
<td><?php echo $form->get('updated'); ?></td>
</tr>
<?php }
foreach (DynamicForm::objects()->filter(array('type'=>'C')) as $form) { ?>
<tr>
<td><i class="icon-building"></i></td>
<td><a href="?id=<?php echo $form->get('id'); ?>">
<?php echo $form->get('title'); ?></a></td>
<td><?php echo $form->get('updated'); ?></td>
</tr>
<?php } ?>
</tbody>
<tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment