4 * Copyright (c) 2003-2008 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
7 * Display list of groups in press management.
9 * $Id: groups.tpl,v 1.4 2009/06/09 23:37:16 tylerl Exp $
12 {assign var="pageTitle" value="manager.groups"}
13 {assign var="pageId" value="manager.groups"}
14 {include file="common/header.tpl"}
19 <form action="{url op="setBoardEnabled"}" method="post">
20 {url|assign:"aboutEditorialTeamUrl" page="about" op="editorialTeam"}
21 {url|assign:"peopleManagementUrl" page="manager" op="people" path="all"}
22 {translate key="manager.groups.enableBoard.description" aboutEditorialTeamUrl=$aboutEditorialTeamUrl}<br/>
23 <input type="radio" id="boardEnabledOff" {if !$boardEnabled}checked="checked" {/if}name="boardEnabled" value="0"/> <label for="boardEnabledOff">{translate key="manager.groups.disableBoard"}</label><br/>
24 <input type="radio" id="boardEnabledOn" {if $boardEnabled}checked="checked" {/if}name="boardEnabled" value="1"/> <label for="boardEnabledOn">{translate key="manager.groups.enableBoard"}</label><br/>
25 <input type="submit" value="{translate key="common.record"}" class="button defaultButton"/>
32 <table width="100%" class="listing">
34 <td colspan="3" class="headseparator"> </td>
36 <tr class="heading" valign="bottom">
37 <td colspan="2" width="75%">{translate key="manager.groups.title"}</td>
38 <td width="25%">{translate key="common.action"}</td>
41 <td colspan="3" class="headseparator"> </td>
43 {assign var="isFirstEditorialTeamEntry" value=1}
44 {iterate from=groups item=group}
46 {if $group->getContext() == GROUP_CONTEXT_EDITORIAL_TEAM}
47 {if $isFirstEditorialTeamEntry}
48 {assign var="isFirstEditorialTeamEntry" value=0}
49 <td colspan="3">{translate key="manager.groups.context.editorialTeam.short"}</td>
52 <td colspan="3" class="separator"> </td>
56 <td width="5%"> </td>
58 {url|assign:"url" page="manager" op="email" toGroup=$group->getId()}
59 {$group->getLocalizedTitle()|escape} {icon name="mail" url=$url}
63 {url|assign:"url" page="manager" op="email" toGroup=$group->getId()}
64 {$group->getLocalizedTitle()|escape} {icon name="mail" url=$url}
68 <a href="{url op="editGroup" path=$group->getId()}" class="action">{translate key="common.edit"}</a> | <a href="{url op="groupMembership" path=$group->getId()}" class="action">{translate key="manager.groups.membership"}</a> | <a href="{url op="deleteGroup" path=$group->getId()}" onclick="return confirm('{translate|escape:"jsparam" key="manager.groups.confirmDelete"}')" class="action">{translate key="common.delete"}</a> | <a href="{url op="moveGroup" d=u groupId=$group->getId()}">↑</a> <a href="{url op="moveGroup" d=d groupId=$group->getId()}">↓</a>
72 <td colspan="3" class="{if $groups->eof()}end{/if}separator"> </td>
75 {if $groups->wasEmpty()}
77 <td colspan="3" class="nodata">{translate key="manager.groups.noneCreated"}</td>
80 <td colspan="3" class="endseparator"> </td>
84 <td colspan="2" align="left">{page_info iterator=$groups}</td>
85 <td colspan="1" align="right">{page_links anchor="groups" name="groups" iterator=$groups}</td>
90 <a href="{url op="createGroup"}" class="action">{translate key="manager.groups.create"}</a>
93 {include file="common/footer.tpl"}