-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
contact-organizer.hbs
51 lines (51 loc) · 1.84 KB
/
contact-organizer.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
<i class="black close icon"></i>
<div class="header">
{{t 'Contact the Organizer'}}
</div>
<div class="ui content">
{{#if this.mailSent}}
<h4>
{{#if @group}}
{{t 'Your message was sent to the organizers of this group.' }}
{{else}}
{{t 'Your message was sent to the organizers of this event.' }}
{{/if}}
{{t 'You should receive a copy of the message to your email inbox.'}}
{{t 'The organizers will contact you by email.'}}
</h4>
<button class="ui red deny right floated button" {{action 'close'}}>
{{t 'Close'}}
</button>
{{else}}
<div class="ui form">
<div class="field">
<label>{{t 'From'}}</label>
<Input
type="text"
name="from"
value={{this.from}}
disabled />
</div>
<div class="field">
<label>{{t 'To'}}</label>
<Input
type="text"
name="cc"
value={{if @group (t 'Group Organizer') (t 'Event Organizer')}}
disabled />
</div>
<div class="field">
<label for="message">{{t 'Message'}}</label>
<Textarea @type="text" @name="message" @value={{this.message}} />
</div>
<button class="ui positive right labeled icon submit right floated button" {{action 'contactOrganizer'}}>
{{t 'Send Email'}}
<i class="checkmark icon"></i>
</button>
<button class="ui red deny right floated button" {{action 'close'}}>
{{t 'Cancel'}}
</button>
</div>
{{/if}}
</div>
<div class="ui hidden divider"></div>