Commit | Line | Data |
---|---|---|
87d3a054 MS |
1 | {include file='header' pageTitle='wcf.acp.group.assignment.'|concat:$action} |
2 | ||
3 | <script data-relocate="true"> | |
4 | //<![CDATA[ | |
5 | $(function() { | |
6 | WCF.TabMenu.init(); | |
7 | }); | |
8 | //]]> | |
9 | </script> | |
10 | ||
95961bdf MW |
11 | <header class="contentHeader"> |
12 | <h1 class="contentTitle">{lang}wcf.acp.group.assignment.{$action}{/lang}</h1> | |
87d3a054 MS |
13 | </header> |
14 | ||
15 | {include file='formError'} | |
16 | ||
17 | {if $success|isset} | |
18 | <p class="success">{lang}wcf.global.success.{@$action}{/lang}</p> | |
19 | {/if} | |
20 | ||
21 | <div class="contentNavigation"> | |
22 | <nav> | |
23 | <ul> | |
f2b50825 | 24 | <li><a href="{link controller='UserGroupAssignmentList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.group.assignment.button.list{/lang}</span></a></li> |
87d3a054 MS |
25 | |
26 | {event name='contentNavigationButtons'} | |
27 | </ul> | |
28 | </nav> | |
29 | </div> | |
30 | ||
31 | <form method="post" action="{if $action == 'add'}{link controller='UserGroupAssignmentAdd'}{/link}{else}{link controller='UserGroupAssignmentEdit' object=$assignment}{/link}{/if}"> | |
95961bdf MW |
32 | <div class="section"> |
33 | <dl{if $errorField == 'title'} class="formError"{/if}> | |
34 | <dt><label for="title">{lang}wcf.global.name{/lang}</label></dt> | |
35 | <dd> | |
36 | <input type="text" id="title" name="title" value="{$title}" class="long" /> | |
37 | {if $errorField == 'title'} | |
38 | <small class="innerError"> | |
39 | {if $errorType == 'empty'} | |
40 | {lang}wcf.global.form.error.empty{/lang} | |
41 | {else} | |
42 | {lang}wcf.acp.group.assignment.title.error.{@$errorType}{/lang} | |
43 | {/if} | |
44 | </small> | |
45 | {/if} | |
46 | </dd> | |
47 | </dl> | |
48 | ||
49 | <dl{if $errorField == 'groupID'} class="formError"{/if}> | |
50 | <dt><label for="groupID">{lang}wcf.user.group{/lang}</label></dt> | |
51 | <dd> | |
52 | {htmlOptions name='groupID' options=$userGroups selected=$groupID} | |
53 | {if $errorField == 'groupID'} | |
54 | <small class="innerError">{lang}wcf.acp.group.assignment.groupID.error.{@$errorType}{/lang}</small> | |
55 | {/if} | |
56 | </dd> | |
57 | </dl> | |
87d3a054 | 58 | |
95961bdf MW |
59 | <dl class="formError"> |
60 | <dt></dt> | |
61 | <dd> | |
62 | <label><input type="checkbox" id="isDisabled" name="isDisabled"{if $isDisabled} checked="checked"{/if} /> {lang}wcf.acp.group.assignment.isDisabled{/lang}</label> | |
63 | </dd> | |
64 | </dl> | |
65 | ||
66 | {event name='dataFields'} | |
87d3a054 MS |
67 | </div> |
68 | ||
95961bdf | 69 | {event name='sections'} |
87d3a054 | 70 | |
95961bdf MW |
71 | <section class="section"> |
72 | <header class="sectionHeader"> | |
73 | <h2 class="sectionTitle">{lang}wcf.acp.group.assignment.conditions{/lang}</h2> | |
74 | <small class="sectionDescription">{lang}wcf.acp.group.assignment.conditions.description{/lang}</small> | |
75 | </header> | |
76 | ||
77 | {if $errorField == 'conditions'} | |
78 | <p class="error">{lang}wcf.acp.group.assignment.error.noConditions{/lang}</p> | |
79 | {/if} | |
80 | ||
81 | {include file='userConditions'} | |
82 | </section> | |
87d3a054 MS |
83 | |
84 | <div class="formSubmit"> | |
85 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> | |
86 | <input type="hidden" name="action" value="{@$action}" /> | |
87 | {@SECURITY_TOKEN_INPUT_TAG} | |
88 | </div> | |
89 | </form> | |
90 | ||
91 | {include file='footer'} |