-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from fnf-org/mfl/view-addons
Mfl/view addons
- Loading branch information
Showing
12 changed files
with
218 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.12 | ||
1.3.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.card | ||
.card-body | ||
.vertical-20 | ||
|
||
%table.table.border-dark-subtle.border-2.overflow-scroll.w-100.shadow-lg#camping-permits-summary | ||
|
||
%thead.border-dark-subtle.border-2 | ||
|
||
%tr | ||
%th.text-nowrap.bg-dark-subtle.text-left Tickets Status | ||
%th.bg-dark-subtle.text-center Requests | ||
- if event.active_event_addons_camping_count > 0 | ||
%th.bg-dark-subtle.text-center | ||
=Addon::HUMANIZED_CATEGORIES[Addon::CATEGORY_CAMP] | ||
|
||
%tbody.border-2.border-dark-subtle | ||
|
||
%tr.fs-6 | ||
%td.bg-success-subtle | ||
%span.text-nowrap Paid | ||
%td.text-center.bg-success-subtle | ||
%span= stats[:completed][:requests] | ||
- if event.active_event_addons_camping_count > 0 | ||
%td.text-center.bg-success-subtle | ||
%span= stats[:completed][:addon_camping] | ||
|
||
%tr.fs-6 | ||
%td.text-nowrap.bg-warning | ||
Pending Approval | ||
%td.text-center.bg-warning= stats[:pending][:requests] | ||
- if event.active_event_addons_camping_count > 0 | ||
%td.text-center.bg-warning= stats[:pending][:addon_camping] | ||
|
||
%tr.fs-6 | ||
%td.text-nowrap.bg-warning-subtle | ||
Awaiting Payment | ||
%td.text-center.bg-warning-subtle= stats[:awaiting_payment][:requests] | ||
- if event.active_event_addons_camping_count > 0 | ||
%td.text-center.bg-warning-subtle= stats[:awaiting_payment][:addon_camping] | ||
|
||
%tr.muted.border-1.border-dark-subtle.fs-6 | ||
%td.bg-dark-subtle.text-start | ||
%strong | ||
Total | ||
%td.bg-dark-subtle.text-center= stats[:total][:requests] | ||
- if event.active_event_addons_camping_count > 0 | ||
%td.bg-dark-subtle.text-center= stats[:total][:addon_camping] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.card | ||
.card-body | ||
.vertical-20 | ||
|
||
%table.table.border-dark-subtle.border-2.overflow-scroll.w-100.shadow-lg#event-passes-summary | ||
|
||
%thead.border-dark-subtle.border-2 | ||
|
||
%tr | ||
%th.text-nowrap.bg-dark-subtle.text-left Payment Status | ||
- if event.active_event_addons_passes_count > 0 | ||
%th.bg-dark-subtle.text-center | ||
=Addon::HUMANIZED_CATEGORIES[Addon::CATEGORY_PASS] | ||
|
||
%tbody.border-2.border-dark-subtle | ||
|
||
%tr.fs-6 | ||
%td.bg-success-subtle | ||
%span.text-nowrap Paid | ||
- if event.active_event_addons_passes_count > 0 | ||
%td.text-center.bg-success-subtle | ||
%span= stats[:completed][:addon_passes] | ||
|
||
%tr.fs-6 | ||
%td.text-nowrap.bg-warning | ||
Pending Approval | ||
- if event.active_event_addons_passes_count > 0 | ||
%td.text-center.bg-warning= stats[:pending][:addon_passes] | ||
|
||
%tr.fs-6 | ||
%td.text-nowrap.bg-warning-subtle | ||
Awaiting Payment | ||
- if event.active_event_addons_passes_count > 0 | ||
%td.text-center.bg-warning-subtle= stats[:awaiting_payment][:addon_passes] | ||
|
||
%tr.muted.border-1.border-dark-subtle.fs-6 | ||
%td.bg-dark-subtle.text-start | ||
%strong | ||
Total | ||
- if event.active_event_addons_passes_count > 0 | ||
%td.bg-dark-subtle.text-center= stats[:total][:addon_passes] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
.card | ||
.card-body.overflow-x-scroll | ||
%table.table.border-dark-subtle.border-2.shadow-lg | ||
%thead.border-dark-subtle.border-2 | ||
%tr | ||
%th.bg-dark-subtle Name | ||
- if event.require_role | ||
%th.bg-dark-subtle Role | ||
%th.bg-dark-subtle.text-center Type | ||
%th.bg-dark-subtle.text-center Count | ||
%th.bg-dark-subtle.text-center Date | ||
%th.bg-dark-subtle.text-center Status | ||
|
||
%tbody.border-dark-subtle.border-2 | ||
- ticket_requests.each do |ticket_request| | ||
- next unless ticket_request.active_addon_camp_sum > 0 | ||
%tr{ class: "ticket-request-row" } | ||
%td.align-content-center.ticket-user | ||
= link_to event_ticket_request_path(event, ticket_request) do | ||
= ticket_request.user.name | ||
- if event.require_role | ||
%td.muted.align-content-center | ||
= TicketRequest::ROLES[ticket_request.role] | ||
- ticket_request.active_sorted_addons_by_category(Addon::CATEGORY_CAMP).each do |tr_event_addon| | ||
%td.align-content-center.text-center | ||
= "#{tr_event_addon.name}" | ||
%td.align-content-center.text-center | ||
= "#{tr_event_addon.quantity}" | ||
|
||
%td.align-content-center.text-center | ||
= ticket_request.created_at.to_date | ||
|
||
%td.align-content-center.text-center.ticket-status | ||
%span.p-2.rounded.small.bi-credit-card.text-black{ class: text_class_for_status(ticket_request) } | ||
= text_for_status ticket_request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
.card | ||
.card-body.overflow-x-scroll | ||
%table.table.border-dark-subtle.border-2.shadow-lg | ||
%thead.border-dark-subtle.border-2 | ||
%tr | ||
%th.bg-dark-subtle Name | ||
- if event.require_role | ||
%th.bg-dark-subtle Role | ||
%th.bg-dark-subtle.text-center Type | ||
%th.bg-dark-subtle.text-center Count | ||
%th.bg-dark-subtle.text-center Date | ||
%th.bg-dark-subtle.text-center Status | ||
|
||
%tbody.border-dark-subtle.border-2 | ||
- ticket_requests.each do |ticket_request| | ||
- next unless ticket_request.active_addon_pass_sum > 0 | ||
%tr{ class: "ticket-request-row" } | ||
%td.align-content-center.ticket-user | ||
= link_to event_ticket_request_path(event, ticket_request) do | ||
= ticket_request.user.name | ||
- if event.require_role | ||
%td.muted.align-content-center | ||
= TicketRequest::ROLES[ticket_request.role] | ||
- ticket_request.active_sorted_addons_by_category(Addon::CATEGORY_PASS).each do |tr_event_addon| | ||
%td.align-content-center.text-center | ||
= "#{tr_event_addon.name}" | ||
%td.align-content-center.text-center | ||
= "#{tr_event_addon.quantity}" | ||
|
||
%td.align-content-center.text-center | ||
= ticket_request.created_at.to_date | ||
|
||
%td.align-content-center.text-center.ticket-status | ||
%span.p-2.rounded.small.bi-credit-card.text-black{ class: text_class_for_status(ticket_request) } | ||
= text_for_status ticket_request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
= render partial: 'shared/nav_event', locals: { event: @event, active_tab: { camping_permits: 'active' } } | ||
= render partial: 'table_addons_camping_statuses', locals: { event: @event, stats: @stats } | ||
= render partial: 'table_camping_permits', locals: { event: @event, ticket_requests: @ticket_requests } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
= render partial: 'shared/nav_event', locals: { event: @event, active_tab: { event_passes: 'active' } } | ||
= render partial: 'table_addons_passes_statuses', locals: { event: @event, stats: @stats } | ||
= render partial: 'table_event_passes', locals: { event: @event, ticket_requests: @ticket_requests } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters