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