Commit | Line | Data |
---|---|---|
320f4a6d MW |
1 | {include file='documentHeader'} |
2 | ||
3 | <head> | |
fa8ab795 | 4 | <title>{lang}wcf.user.mail.title{/lang} - {PAGE_TITLE|language}</title> |
320f4a6d MW |
5 | |
6 | {include file='headInclude'} | |
7 | </head> | |
8 | ||
887a3153 | 9 | <body id="tpl{$templateName|ucfirst}" data-template="{$templateName}" data-application="{$templateNameApplication}"> |
320f4a6d MW |
10 | {include file='header'} |
11 | ||
95961bdf MW |
12 | <header class="contentHeader"> |
13 | <h1 class="contentTitle">{lang}wcf.user.mail.title{/lang}</h1> | |
320f4a6d MW |
14 | </header> |
15 | ||
16 | {include file='userNotice'} | |
17 | ||
ee629b22 | 18 | {include file='formError'} |
320f4a6d MW |
19 | |
20 | <div class="contentNavigation"> | |
21 | {hascontent} | |
22 | <nav> | |
23 | <ul> | |
24 | {content} | |
25 | {event name='contentNavigationButtons'} | |
26 | {/content} | |
27 | </ul> | |
28 | </nav> | |
29 | {/hascontent} | |
30 | </div> | |
31 | ||
32 | <form method="post" action="{link controller='Mail' object=$user}{/link}"> | |
95961bdf MW |
33 | <section class="section"> |
34 | <h2 class="sectionTitle">{lang}wcf.user.mail.information{/lang}</h2> | |
35 | ||
36 | <dl{if $errorField == 'subject'} class="formError"{/if}> | |
37 | <dt><label for="subject">{lang}wcf.user.mail.subject{/lang}</label></dt> | |
38 | <dd> | |
39 | <input type="text" id="subject" name="subject" value="{$subject}" required="required" class="long" /> | |
40 | {if $errorField == 'subject'} | |
41 | <small class="innerError"> | |
42 | {if $errorType == 'empty'} | |
43 | {lang}wcf.global.form.error.empty{/lang} | |
44 | {else} | |
45 | {lang}wcf.user.mail.subject.error.{@$errorType}{/lang} | |
320f4a6d | 46 | {/if} |
95961bdf MW |
47 | </small> |
48 | {/if} | |
49 | </dd> | |
50 | </dl> | |
320f4a6d | 51 | |
95961bdf MW |
52 | {if $__wcf->user->userID} |
53 | <dl> | |
54 | <dt></dt> | |
55 | <dd><label><input type="checkbox" name="showAddress" value="1" {if $showAddress == 1} checked="checked"{/if}/> {lang}wcf.user.mail.showAddress{/lang}</label></dd> | |
56 | </dl> | |
57 | {else} | |
58 | <dl{if $errorField == 'email'} class="formError"{/if}> | |
59 | <dt><label for="email">{lang}wcf.user.mail.senderEmail{/lang}</label></dt> | |
320f4a6d | 60 | <dd> |
95961bdf MW |
61 | <input type="email" id="email" name="email" value="{$email}" required="required" class="medium" /> |
62 | {if $errorField == 'email'} | |
320f4a6d MW |
63 | <small class="innerError"> |
64 | {if $errorType == 'empty'} | |
65 | {lang}wcf.global.form.error.empty{/lang} | |
95961bdf MW |
66 | {elseif $errorType == 'notValid'} |
67 | {lang}wcf.user.email.error.notValid{/lang} | |
320f4a6d | 68 | {else} |
95961bdf | 69 | {lang}wcf.user.mail.senderEmail.error.{@$errorType}{/lang} |
320f4a6d MW |
70 | {/if} |
71 | </small> | |
72 | {/if} | |
73 | </dd> | |
74 | </dl> | |
95961bdf | 75 | {/if} |
320f4a6d | 76 | |
95961bdf MW |
77 | {event name='informationFields'} |
78 | </section> | |
79 | ||
80 | <section class="section"> | |
81 | <h2 class="sectionTitle">{lang}wcf.user.mail.message{/lang}</h2> | |
320f4a6d | 82 | |
95961bdf MW |
83 | <dl class="wide{if $errorField == 'message'} formError{/if}"> |
84 | <dd> | |
85 | <textarea rows="15" cols="40" name="message" id="message" required="required">{$message}</textarea> | |
86 | {if $errorField == 'message'} | |
87 | <small class="innerError"> | |
88 | {if $errorType == 'empty'} | |
89 | {lang}wcf.global.form.error.empty{/lang} | |
90 | {else} | |
91 | {lang}wcf.user.mail.message.error.{@$errorType}{/lang} | |
92 | {/if} | |
93 | </small> | |
94 | {/if} | |
95 | </dd> | |
96 | </dl> | |
97 | ||
98 | {event name='messageFields'} | |
99 | </section> | |
100 | ||
101 | {event name='sections'} | |
102 | ||
103 | {include file='captcha'} | |
320f4a6d MW |
104 | |
105 | <div class="formSubmit"> | |
106 | <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> | |
ee629b22 | 107 | {@SECURITY_TOKEN_INPUT_TAG} |
320f4a6d MW |
108 | </div> |
109 | </form> | |
110 | ||
111 | {include file='footer'} | |
112 | ||
113 | </body> | |
114 | </html> |