forked from evoko/zendesk-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
new_community_post_page.hbs
67 lines (61 loc) · 1.82 KB
/
new_community_post_page.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<div class="container-divider"></div>
<div class="container">
<nav class="sub-nav">
{{breadcrumbs}}
{{search submit=false}}
</nav>
<h1 class="form-header">
{{t 'what_is_your_post_about'}}
</h1>
<div class="form">
{{#form 'post' class='new_community_post'}}
<div class="form-field">
{{#required 'title'}}
{{label 'title'}}
{{else}}
{{#label 'title'}}
{{t 'title_label'}}<span class="optional">({{t 'optional'}})</span>
{{/label}}
{{/required}}
{{input 'title' autofocus=true}}
{{#validate 'title'}}
<div class="notification notification-error notification-inline">
{{error 'title'}}
</div>
{{/validate}}
</div>
{{suggestion_list class='suggestion-list'}}
<div class="form-field">
{{#required 'details'}}
{{label 'details'}}
{{else}}
{{#label 'details'}}
{{t 'details_label'}}<span class="optional">({{t 'optional'}})</span>
{{/label}}
{{/required}}
{{wysiwyg 'details'}}
{{#validate 'details'}}
<div class="notification notification-error notification-inline">
{{error 'details'}}
</div>
{{/validate}}
</div>
<div class="form-field">
{{#required 'topic'}}
{{label 'topic'}}
{{else}}
{{#label 'topic'}}
{{t 'topic_label'}}<span class="optional">({{t 'optional'}})</span>
{{/label}}
{{/required}}
{{select 'topic'}}
{{#validate 'topic'}}
<div class="notification notification-error notification-inline">
{{error 'topic'}}
</div>
{{/validate}}
</div>
<footer>{{input type='submit'}}</footer>
{{/form}}
</div>
</div>