|
4 | 4 | {{input type='text' id='name' value=data.event.name}} |
5 | 5 | </div> |
6 | 6 | <div class="field"> |
7 | | - <label for="location">{{t 'Location'}}</label> |
| 7 | + <label class="required" for="location">{{t 'Location'}}</label> |
8 | 8 | {{#widgets/forms/location-input |
9 | 9 | inputId='location' |
10 | 10 | lat=data.event.latitude |
|
143 | 143 | </div> |
144 | 144 | {{#if data.module.ticketInclude}} |
145 | 145 | <div class="ui section divider"></div> |
146 | | - <div class="field"> |
147 | | - <div class="ui slider checkbox"> |
148 | | - {{input type='checkbox' checked=data.event.isTicketingEnabled id='use_ticketing_system'}} |
149 | | - <label for="use_ticketing_system">{{t 'Use ticketing system'}}</label> |
| 146 | + {{!-- Hiding toggle ticket feature temporarily |
| 147 | + <div class="field"> |
| 148 | + <div class="ui slider checkbox"> |
| 149 | + {{input type='checkbox' checked=data.event.isTicketingEnabled id='use_ticketing_system'}} |
| 150 | + <label for="use_ticketing_system">{{t 'Use ticketing system'}}</label> |
| 151 | + </div> |
150 | 152 | </div> |
151 | | - </div> |
152 | | - {{#if data.event.isTicketingEnabled}} |
| 153 | + --}} |
| 154 | + <div class="field"> |
| 155 | + <label class="required">{{t 'Ticketing System'}}</label> |
| 156 | + {{!-- {{#if data.event.isTicketingEnabled}} --}} |
153 | 157 | <div class="ui attached segment {{unless data.event.tickets 'center aligned'}}"> |
154 | 158 | {{#if data.event.tickets}} |
155 | 159 | <div class="ui stackable celled five column grid ticket-header"> |
|
179 | 183 | {{/each}} |
180 | 184 | {{else}} |
181 | 185 | <h3 class="text muted weight-500"> |
182 | | - {{t 'You don\'t have any tickets added. Add one of your choice.'}} |
| 186 | + {{t 'You don\'t have any tickets added. Please add atleast one ticket to publish your event.'}} |
183 | 187 | </h3> |
184 | 188 | {{/if}} |
185 | 189 | </div> |
|
197 | 201 | </i> |
198 | 202 | {{t 'Paid Ticket'}} |
199 | 203 | </button> |
200 | | - {{else}} |
201 | | - <div class="field"> |
202 | | - <label for="ticket_url">{{t 'Ticket URL'}}</label> |
203 | | - {{widgets/forms/link-input inputId='ticket_url' segmentedLink=data.event.segmentedTicketUrl}} |
204 | | - </div> |
205 | | - {{/if}} |
| 204 | + {{!-- {{else}} |
| 205 | + <div class="field"> |
| 206 | + <label for="ticket_url">{{t 'Ticket URL'}}</label> |
| 207 | + {{widgets/forms/link-input inputId='ticket_url' segmentedLink=data.event.segmentedTicketUrl}} |
| 208 | + </div> |
| 209 | + {{/if}} --}} |
| 210 | + </div> |
206 | 211 | {{/if}} |
207 | | - {{#if (and hasPaidTickets data.event.isTicketingEnabled)}} |
| 212 | + {{#if hasPaidTickets}} |
208 | 213 | {{!-- Hiding discount code temporarily, till we get this feature ready to apply discount codes for events. |
209 | 214 | <div class="ui section divider"></div> |
210 | 215 | <div class="field"> |
|
571 | 576 | <i class="save icon"></i> |
572 | 577 | </button> |
573 | 578 | {{/if}} |
574 | | - {{#if data.event.locationName}} |
| 579 | + {{#if (and data.event.locationName data.event.tickets.length)}} |
575 | 580 | <button class="green ui three field right labeled icon button {{if isLoading 'disabled'}}" type="button" {{action 'publish'}}> |
576 | 581 | {{t 'Publish'}} |
577 | 582 | <i class="check icon"></i> |
|
0 commit comments