{literal} {/literal}
{if $smarty.get.cat == 'edit'} {else} {/if} {if $result != ""} {/if}
Manage Groups
{if $smarty.post.cat == "new"} {if $result == -1} An error occurred while trying to add the new group. {elseif $result == 1} Thank you, the group was added successfully. {/if} {elseif $smarty.post.cat == "update"} {if $result == -1} An error occurred while trying to update the group information. {elseif $result == 1} Thank you, the group was updated successfully. {/if} {/if}
Name: * {include file="error_icon.tpl.html" field="group_name"}
Description: {include file="error_icon.tpl.html" field="description"}
Assigned Projects: * {include file="error_icon.tpl.html" field="projects[]"}
Users: * {include file="error_icon.tpl.html" field="users[]"}
Manager: * {include file="error_icon.tpl.html" field="manager"} {include file="lookup_field.tpl.html" lookup_field_name="manager_search" lookup_field_target="manager"}
{if $smarty.get.cat == 'edit'} {else} {/if}
Existing Groups
{section name="i" loop=$list} {cycle values=$cycle assign="row_color"} {sectionelse} {/section}
 Name  Description  Manager  Projects
 {$list[i].grp_name}  {$list[i].grp_description}  {$list[i].manager}  {", "|join:$list[i].projects}
No groups could be found.