|
6 | 6 | @id="name" |
7 | 7 | @value={{this.data.event.name}} /> |
8 | 8 | </div> |
9 | | - <div class="field"> |
10 | | - <label class="required" for="location">{{t 'Location'}}</label> |
11 | | - <Widgets::Forms::LocationInput |
12 | | - @inputId="location" |
13 | | - @lat={{this.data.event.latitude}} |
14 | | - @lng={{this.data.event.longitude}} |
15 | | - @placeName={{this.data.event.locationName}} |
16 | | - @searchableName={{this.data.event.searchableLocationName}} |
17 | | - @zoom={{15}} |
18 | | - @placeholder={{t "Location is required to make this event live"}}> |
19 | | - <div class="inline field"> |
20 | | - <div class="ui slider checkbox"> |
21 | | - <Input |
22 | | - @id="show_map" |
23 | | - @type="checkbox" |
24 | | - @checked={{this.data.event.isMapShown}} /> |
25 | | - <label for="show_map">{{t 'Show map on event page'}}</label> |
26 | | - </div> |
27 | | - </div> |
28 | | - </Widgets::Forms::LocationInput> |
| 9 | + <div class="ui secondary pointing menu"> |
| 10 | + {{#each this.locationMenuItems as |item|}} |
| 11 | + <a role="button" href="#" class="{{if (eq item this.selectedLocationType) 'active'}} item" onclick={{action (mut this.selectedLocationType) item}}> |
| 12 | + {{t item}} |
| 13 | + </a> |
| 14 | + {{/each}} |
29 | 15 | </div> |
| 16 | + {{#if (or (eq this.selectedLocationType 'Venue') (eq this.selectedLocationType 'Mixed'))}} |
| 17 | + <div class="field"> |
| 18 | + <label class="{{if this.isLocationRequired 'required'}}" for="location">{{t 'Location'}}</label> |
| 19 | + <Widgets::Forms::LocationInput |
| 20 | + @inputId="{{if this.isLocationRequired 'location'}}" |
| 21 | + @lat={{this.data.event.latitude}} |
| 22 | + @lng={{this.data.event.longitude}} |
| 23 | + @placeName={{this.data.event.locationName}} |
| 24 | + @searchableName={{this.data.event.searchableLocationName}} |
| 25 | + @zoom={{15}} |
| 26 | + @placeholder={{t "Location is required to make this event live"}}> |
| 27 | + <div class="inline field"> |
| 28 | + <div class="ui slider checkbox"> |
| 29 | + <Input |
| 30 | + @id="show_map" |
| 31 | + @type="checkbox" |
| 32 | + @checked={{this.data.event.isMapShown}} /> |
| 33 | + <label for="show_map">{{t 'Show map on event page'}}</label> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | + </Widgets::Forms::LocationInput> |
| 37 | + </div> |
| 38 | + {{/if}} |
| 39 | + {{#if (or (eq this.selectedLocationType 'Online') (eq this.selectedLocationType 'Mixed'))}} |
| 40 | + <Widgets::Forms::LinkInput |
| 41 | + @hasLinkName={{true}} |
| 42 | + @fixedName={{true}} |
| 43 | + @linkName={{t "Live Stream URL"}} |
| 44 | + @inputId="live_stream_url" |
| 45 | + @segmentedLink={{this.data.event.segmentedLiveStreamUrl}} |
| 46 | + @canRemoveItem={{false}} /> |
| 47 | + <Widgets::Forms::LinkInput |
| 48 | + @hasLinkName={{true}} |
| 49 | + @fixedName={{true}} |
| 50 | + @linkName={{t "Webinar URL"}} |
| 51 | + @inputId="webinar_url" |
| 52 | + @segmentedLink={{this.data.event.segmentedWebinarUrl}} |
| 53 | + @canRemoveItem={{false}} /> |
| 54 | + {{/if}} |
30 | 55 | <div class="fields"> |
31 | 56 | <div class="five wide field"> |
32 | 57 | <label class="required" for="start_date">{{t 'Starts'}}</label> |
|
609 | 634 | <i class="save icon"></i> |
610 | 635 | </button> |
611 | 636 | {{/if}} |
612 | | - {{#if this.data.event.locationName}} |
| 637 | + {{#if this.data.event.name}} |
613 | 638 | <button class="green ui three field right labeled icon button {{if this.isLoading 'disabled'}}" type="button" {{action 'publish'}}> |
614 | 639 | {{t 'Publish'}} |
615 | 640 | <i class="check icon"></i> |
|
0 commit comments