baseline
[omp.pkp.sfu.ca.git] / templates / manager / groups / groups.tpl
blobc3e4ccefb22b21d20242d42133dbbda6508bf3c5
1 {**
2  * groups.tpl
3  *
4  * Copyright (c) 2003-2008 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * Display list of groups in press management.
8  *
9  * $Id: groups.tpl,v 1.4 2009/06/09 23:37:16 tylerl Exp $
10  *}
11 {strip}
12 {assign var="pageTitle" value="manager.groups"}
13 {assign var="pageId" value="manager.groups"}
14 {include file="common/header.tpl"}
15 {/strip}
17 <br/>
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"/>&nbsp;<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"/>&nbsp;<label for="boardEnabledOn">{translate key="manager.groups.enableBoard"}</label><br/>
25         <input type="submit" value="{translate key="common.record"}" class="button defaultButton"/>
26 </form>
28 <br />
30 <div id="groups">
32 <table width="100%" class="listing">
33         <tr>
34                 <td colspan="3" class="headseparator">&nbsp;</td>
35         </tr>
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>
39         </tr>
40         <tr>
41                 <td colspan="3" class="headseparator">&nbsp;</td>
42         </tr>
43 {assign var="isFirstEditorialTeamEntry" value=1}
44 {iterate from=groups item=group}
45         <tr valign="top">
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>
50                                         </tr>
51                                         <tr>
52                                                 <td colspan="3" class="separator">&nbsp;</td>
53                                         </tr>
54                                         <tr valign="top">
55                         {/if}
56                         <td width="5%">&nbsp;</td>
57                         <td>
58                                 {url|assign:"url" page="manager" op="email" toGroup=$group->getId()}
59                                 {$group->getLocalizedTitle()|escape}&nbsp;{icon name="mail" url=$url}
60                         </td>
61                 {else}
62                         <td colspan="2">
63                                 {url|assign:"url" page="manager" op="email" toGroup=$group->getId()}
64                                 {$group->getLocalizedTitle()|escape}&nbsp;{icon name="mail" url=$url}
65                         </td>
66                 {/if}
67                 <td>
68                         <a href="{url op="editGroup" path=$group->getId()}" class="action">{translate key="common.edit"}</a>&nbsp;|&nbsp;<a href="{url op="groupMembership" path=$group->getId()}" class="action">{translate key="manager.groups.membership"}</a>&nbsp;|&nbsp;<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>&nbsp;|&nbsp;<a href="{url op="moveGroup" d=u groupId=$group->getId()}">&uarr;</a>&nbsp;<a href="{url op="moveGroup" d=d groupId=$group->getId()}">&darr;</a>
69                 </td>
70         </tr>
71         <tr>
72                 <td colspan="3" class="{if $groups->eof()}end{/if}separator">&nbsp;</td>
73         </tr>
74 {/iterate}
75 {if $groups->wasEmpty()}
76         <tr>
77                 <td colspan="3" class="nodata">{translate key="manager.groups.noneCreated"}</td>
78         </tr>
79         <tr>
80                 <td colspan="3" class="endseparator">&nbsp;</td>
81         </tr>
82 {else}
83         <tr>
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>
86         </tr>
87 {/if}
88 </table>
90 <a href="{url op="createGroup"}" class="action">{translate key="manager.groups.create"}</a>
91 </div>
93 {include file="common/footer.tpl"}