Commit | Line | Data |
---|---|---|
87d3a054 MS |
1 | {include file='header' pageTitle='wcf.acp.group.assignment.'|concat:$action} |
2 | ||
95961bdf | 3 | <header class="contentHeader"> |
b5c94e9e AE |
4 | <div class="contentHeaderTitle"> |
5 | <h1 class="contentTitle">{lang}wcf.acp.group.assignment.{$action}{/lang}</h1> | |
6 | </div> | |
7 | ||
8 | <nav class="contentHeaderNavigation"> | |
9 | <ul> | |
10 | <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> | |
11 | ||
12 | {event name='contentHeaderNavigation'} | |
13 | </ul> | |
14 | </nav> | |
87d3a054 MS |
15 | </header> |
16 | ||
fa6a7e74 | 17 | {include file='formNotice'} |
87d3a054 | 18 | |
87d3a054 | 19 | <form method="post" action="{if $action == 'add'}{link controller='UserGroupAssignmentAdd'}{/link}{else}{link controller='UserGroupAssignmentEdit' object=$assignment}{/link}{/if}"> |
95961bdf MW |
20 | <div class="section"> |
21 | <dl{if $errorField == 'title'} class="formError"{/if}> | |
22 | <dt><label for="title">{lang}wcf.global.name{/lang}</label></dt> | |
23 | <dd> | |
e5f9b56c | 24 | <input type="text" id="title" name="title" value="{$title}" class="long"> |
95961bdf MW |
25 | {if $errorField == 'title'} |
26 | <small class="innerError"> | |
27 | {if $errorType == 'empty'} | |
28 | {lang}wcf.global.form.error.empty{/lang} | |
29 | {else} | |
30 | {lang}wcf.acp.group.assignment.title.error.{@$errorType}{/lang} | |
31 | {/if} | |
32 | </small> | |
33 | {/if} | |
34 | </dd> | |
35 | </dl> | |
36 | ||
37 | <dl{if $errorField == 'groupID'} class="formError"{/if}> | |
38 | <dt><label for="groupID">{lang}wcf.user.group{/lang}</label></dt> | |
39 | <dd> | |
40 | {htmlOptions name='groupID' options=$userGroups selected=$groupID} | |
41 | {if $errorField == 'groupID'} | |
35dca983 MS |
42 | {if $errorType == 'noValidSelection'} |
43 | <small class="innerError">{lang}wcf.global.form.error.noValidSelection{/lang}</small> | |
44 | {else} | |
45 | <small class="innerError">{lang}wcf.acp.group.assignment.groupID.error.{@$errorType}{/lang}</small> | |
87d3a054 | 46 | {/if} |
95961bdf MW |
47 | {/if} |
48 | </dd> | |
49 | </dl> | |
87d3a054 | 50 | |
dbbc68db | 51 | <dl> |
95961bdf MW |
52 | <dt></dt> |
53 | <dd> | |
6f2bc235 | 54 | <label><input type="checkbox" id="isDisabled" name="isDisabled"{if $isDisabled} checked{/if}> {lang}wcf.acp.group.assignment.isDisabled{/lang}</label> |
95961bdf MW |
55 | </dd> |
56 | </dl> | |
57 | ||
58 | {event name='dataFields'} | |
87d3a054 MS |
59 | </div> |
60 | ||
95961bdf | 61 | {event name='sections'} |
87d3a054 | 62 | |
95961bdf MW |
63 | <section class="section"> |
64 | <header class="sectionHeader"> | |
65 | <h2 class="sectionTitle">{lang}wcf.acp.group.assignment.conditions{/lang}</h2> | |
114b5320 | 66 | <p class="sectionDescription">{lang}wcf.acp.group.assignment.conditions.description{/lang}</p> |
95961bdf MW |
67 | </header> |
68 | ||
69 | {if $errorField == 'conditions'} | |
70 | <p class="error">{lang}wcf.acp.group.assignment.error.noConditions{/lang}</p> | |
71 | {/if} | |
72 | ||
73 | {include file='userConditions'} | |
74 | </section> | |
87d3a054 MS |
75 | |
76 | <div class="formSubmit"> | |
e5f9b56c MW |
77 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s"> |
78 | <input type="hidden" name="action" value="{@$action}"> | |
87d3a054 MS |
79 | {@SECURITY_TOKEN_INPUT_TAG} |
80 | </div> | |
81 | </form> | |
82 | ||
83 | {include file='footer'} |