Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: show ticket box expanded with all settings #4628

Merged
merged 1 commit into from
Jul 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
{{#each this.tickets as |ticket index|}}
<Widgets::Forms::TicketInput
@ticket={{ticket}}
@isExpanded="true"
@timezone={{this.data.event.timezone}}
@canMoveUp={{not-eq index 0}}
@canMoveDown={{not-eq ticket.position (dec this.data.event.tickets.length)}}
Expand Down
20 changes: 12 additions & 8 deletions app/templates/components/widgets/forms/ticket-input.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,23 @@
<div class="column {{unless this.device.isLargeMonitor 'less right padding'}}">
<div class="field">
<div class="ui icon buttons">
<button type="button" class="ui button" {{action 'toggleSettings'}} data-content="Settings"><i
class="setting icon"></i></button>
<button type="button" class="ui button" {{action this.removeTicket}} data-content="Delete"><i
class="trash icon"></i></button>
<button type="button" class="ui button" {{action 'toggleSettings'}} data-content="Settings">
<i class="setting icon"></i>
</button>
<button type="button" class="ui button" {{action this.removeTicket}} data-content="Delete">
<i class="trash icon"></i>
</button>
</div>
<div class="ui icon buttons {{if this.device.isLargeMonitor 'right floated'}}">
{{#if this.canMoveUp}}
<button type="button" class="ui button" {{action this.moveTicketUp}} data-content="Move ticket up"><i
class="up arrow icon"></i></button>
<button type="button" class="ui button" {{action this.moveTicketUp}} data-content="Move ticket up">
<i class="up arrow icon"></i>
</button>
{{/if}}
{{#if this.canMoveDown}}
<button type="button" class="ui button" {{action this.moveTicketDown}} data-content="Move ticket down"><i
class="down arrow icon"></i></button>
<button type="button" class="ui button" {{action this.moveTicketDown}} data-content="Move ticket down">
<i class="down arrow icon"></i>
</button>
{{/if}}
</div>
</div>
Expand Down