kaui 3.0.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/images/kaui/account/authorize.svg +4 -0
- data/app/assets/images/kaui/account/credit.svg +4 -0
- data/app/assets/images/kaui/account/down-arrow.svg +3 -0
- data/app/assets/images/kaui/account/edit.svg +4 -0
- data/app/assets/images/kaui/account/pay-all.svg +5 -0
- data/app/assets/images/kaui/account/plus.svg +3 -0
- data/app/assets/images/kaui/account/purchase.svg +5 -0
- data/app/assets/images/kaui/account/refresh.svg +5 -0
- data/app/assets/images/kaui/arrow.svg +3 -0
- data/app/assets/images/kaui/card.svg +5 -0
- data/app/assets/images/kaui/copy.svg +12 -0
- data/app/assets/images/kaui/dashboard/aviate.svg +6 -0
- data/app/assets/images/kaui/dashboard/custom-field.svg +5 -0
- data/app/assets/images/kaui/dashboard/kaui-doc-img.png +0 -0
- data/app/assets/images/kaui/dashboard/plugins.svg +7 -0
- data/app/assets/images/kaui/dashboard/tags.svg +4 -0
- data/app/assets/images/kaui/dashboard/users.svg +6 -0
- data/app/assets/images/kaui/delete.svg +6 -0
- data/app/assets/images/kaui/dots.svg +5 -0
- data/app/assets/images/kaui/download-csv.svg +5 -0
- data/app/assets/images/kaui/download.svg +4 -0
- data/app/assets/images/kaui/eye-off.svg +9 -0
- data/app/assets/images/kaui/eye.svg +7 -0
- data/app/assets/images/kaui/file-upload.svg +34 -0
- data/app/assets/images/kaui/generate.svg +5 -0
- data/app/assets/images/kaui/header/account.svg +4 -0
- data/app/assets/images/kaui/header/cog_icon.svg +4 -0
- data/app/assets/images/kaui/header/invoice.svg +5 -0
- data/app/assets/images/kaui/header/payment.svg +5 -0
- data/app/assets/images/kaui/header/search_icon.svg +4 -0
- data/app/assets/images/kaui/header/subscription.svg +6 -0
- data/app/assets/images/kaui/logout.svg +4 -0
- data/app/assets/images/kaui/modal/close.svg +3 -0
- data/app/assets/images/kaui/modal/plus.svg +3 -0
- data/app/assets/images/kaui/modal/red-close.svg +10 -0
- data/app/assets/images/kaui/modal/search.svg +4 -0
- data/app/assets/images/kaui/payment/payment.svg +4 -0
- data/app/assets/images/kaui/payment/refund.svg +4 -0
- data/app/assets/images/kaui/plus.svg +3 -0
- data/app/assets/images/kaui/search.svg +4 -0
- data/app/assets/images/kaui/setting/account.svg +10 -0
- data/app/assets/images/kaui/setting/analytics.svg +7 -0
- data/app/assets/images/kaui/setting/custom-field.svg +5 -0
- data/app/assets/images/kaui/setting/e-notifications.svg +6 -0
- data/app/assets/images/kaui/setting/plugins.svg +7 -0
- data/app/assets/images/kaui/setting/plus.svg +3 -0
- data/app/assets/images/kaui/setting/reset.svg +4 -0
- data/app/assets/images/kaui/setting/tag-definitions.svg +5 -0
- data/app/assets/images/kaui/setting/tags.svg +4 -0
- data/app/assets/images/kaui/setting/tenants.svg +6 -0
- data/app/assets/images/kaui/setting/users.svg +6 -0
- data/app/assets/images/kaui/setting.svg +4 -0
- data/app/assets/images/kaui/sidebar/account.svg +4 -0
- data/app/assets/images/kaui/sidebar/audit.svg +5 -0
- data/app/assets/images/kaui/sidebar/custom-fields.svg +5 -0
- data/app/assets/images/kaui/sidebar/invoices.svg +5 -0
- data/app/assets/images/kaui/sidebar/payments.svg +5 -0
- data/app/assets/images/kaui/sidebar/queues.svg +5 -0
- data/app/assets/images/kaui/sidebar/subscriptions.svg +6 -0
- data/app/assets/images/kaui/sidebar/tags.svg +5 -0
- data/app/assets/images/kaui/sidebar/timeline.svg +5 -0
- data/app/assets/images/kaui/sign_in_background.svg +57 -0
- data/app/assets/images/kaui/sort-down.svg +3 -0
- data/app/assets/images/kaui/sort-up.svg +3 -0
- data/app/assets/images/kaui/subscription/add-on.svg +7 -0
- data/app/assets/images/kaui/subscription/cancel.svg +6 -0
- data/app/assets/images/kaui/subscription/change.svg +6 -0
- data/app/assets/images/kaui/subscription/date.svg +6 -0
- data/app/assets/images/kaui/subscription/pause.svg +4 -0
- data/app/assets/images/kaui/timeline/authorize.svg +5 -0
- data/app/assets/images/kaui/timeline/capture.svg +5 -0
- data/app/assets/images/kaui/timeline/chargeback.svg +3 -0
- data/app/assets/images/kaui/timeline/credit.svg +6 -0
- data/app/assets/images/kaui/timeline/invoice.svg +5 -0
- data/app/assets/images/kaui/timeline/purchase.svg +5 -0
- data/app/assets/images/kaui/timeline/refund.svg +4 -0
- data/app/assets/images/kaui/timeline/void.svg +4 -0
- data/app/assets/images/kaui/view-doc.svg +6 -0
- data/app/assets/images/kaui/warning.png +0 -0
- data/app/assets/javascripts/application.js +2 -2
- data/app/assets/javascripts/kaui/kaui_override.js +232 -0
- data/app/assets/javascripts/kaui/multi_functions_bar_utils.js +125 -24
- data/app/assets/stylesheets/application.css +13 -1
- data/app/assets/stylesheets/kaui/account.css +2028 -14
- data/app/assets/stylesheets/kaui/account_timeline.css +183 -0
- data/app/assets/stylesheets/kaui/admin_allowed_users.css +260 -0
- data/app/assets/stylesheets/kaui/audit.css +26 -16
- data/app/assets/stylesheets/kaui/audit_logs.css +443 -0
- data/app/assets/stylesheets/kaui/auth_pages.css +72 -0
- data/app/assets/stylesheets/kaui/breadcrumb.css +38 -0
- data/app/assets/stylesheets/kaui/chargebacks.css +118 -0
- data/app/assets/stylesheets/kaui/clock.css +103 -0
- data/app/assets/stylesheets/kaui/common.css +1744 -401
- data/app/assets/stylesheets/kaui/custom_fields.css +546 -0
- data/app/assets/stylesheets/kaui/dashboard.css +26 -0
- data/app/assets/stylesheets/kaui/datatable.css +114 -56
- data/app/assets/stylesheets/kaui/header.css +221 -114
- data/app/assets/stylesheets/kaui/home.css +89 -62
- data/app/assets/stylesheets/kaui/invoice.css +1061 -27
- data/app/assets/stylesheets/kaui/kaui.css +217 -145
- data/app/assets/stylesheets/kaui/overdue.css +5 -3
- data/app/assets/stylesheets/kaui/payment.css +1102 -13
- data/app/assets/stylesheets/kaui/queues.css +269 -0
- data/app/assets/stylesheets/kaui/refunds.css +185 -0
- data/app/assets/stylesheets/kaui/role_definitions.css +111 -0
- data/app/assets/stylesheets/kaui/sidebar.css +122 -0
- data/app/assets/stylesheets/kaui/subscription.css +677 -0
- data/app/assets/stylesheets/kaui/tag_definitions.css +524 -0
- data/app/assets/stylesheets/kaui/tags.css +592 -121
- data/app/assets/stylesheets/kaui/tenants.css +1478 -0
- data/app/assets/stylesheets/kaui/tooltip.css +9 -5
- data/app/assets/stylesheets/kaui/wallets.css +121 -0
- data/app/controllers/kaui/accounts_controller.rb +3 -2
- data/app/controllers/kaui/admin_tenants_controller.rb +33 -0
- data/app/controllers/kaui/custom_fields_controller.rb +1 -1
- data/app/controllers/kaui/engine_controller.rb +1 -2
- data/app/controllers/kaui/engine_controller_util.rb +5 -7
- data/app/controllers/kaui/home_controller.rb +24 -17
- data/app/controllers/kaui/invoices_controller.rb +4 -15
- data/app/controllers/kaui/payments_controller.rb +1 -1
- data/app/controllers/kaui/sessions_controller.rb +1 -0
- data/app/controllers/kaui/tag_definitions_controller.rb +1 -0
- data/app/helpers/kaui/account_helper.rb +13 -0
- data/app/helpers/kaui/plugin_helper.rb +27 -0
- data/app/views/kaui/account_custom_fields/index.html.erb +95 -29
- data/app/views/kaui/account_emails/_account_emails_table.html.erb +13 -3
- data/app/views/kaui/account_emails/_form.html.erb +23 -6
- data/app/views/kaui/account_emails/new.html.erb +12 -6
- data/app/views/kaui/account_tags/_form_bar.html.erb +10 -1
- data/app/views/kaui/account_tags/index.html.erb +103 -24
- data/app/views/kaui/account_timelines/_multi_functions_bar.html.erb +302 -69
- data/app/views/kaui/account_timelines/show.html.erb +360 -254
- data/app/views/kaui/accounts/_account_details.html.erb +165 -0
- data/app/views/kaui/accounts/_account_filterbar.html.erb +70 -80
- data/app/views/kaui/accounts/_add_parent.html.erb +26 -0
- data/app/views/kaui/accounts/_billing_details.html.erb +196 -0
- data/app/views/kaui/accounts/_close_account_modal.html.erb +62 -40
- data/app/views/kaui/accounts/_form_account.html.erb +157 -0
- data/app/views/kaui/accounts/_functions_bar.html.erb +606 -0
- data/app/views/kaui/accounts/_link_parent_modal.html.erb +1 -1
- data/app/views/kaui/accounts/_link_parent_to_modal.html.erb +62 -0
- data/app/views/kaui/accounts/_multi_functions_bar.html.erb +67 -28
- data/app/views/kaui/accounts/_payment_gateways.html.erb +43 -0
- data/app/views/kaui/accounts/_personal_details.html.erb +67 -0
- data/app/views/kaui/accounts/edit.html.erb +15 -9
- data/app/views/kaui/accounts/index.html.erb +77 -27
- data/app/views/kaui/accounts/new.html.erb +14 -8
- data/app/views/kaui/accounts/show.html.erb +17 -11
- data/app/views/kaui/admin/index.html.erb +44 -19
- data/app/views/kaui/admin_allowed_users/_form.html.erb +123 -31
- data/app/views/kaui/admin_allowed_users/edit.html.erb +15 -9
- data/app/views/kaui/admin_allowed_users/index.html.erb +150 -30
- data/app/views/kaui/admin_allowed_users/new.html.erb +14 -8
- data/app/views/kaui/admin_allowed_users/show.html.erb +137 -32
- data/app/views/kaui/admin_tenants/_add_allowed_user_modal.html.erb +42 -15
- data/app/views/kaui/admin_tenants/_clock.html.erb +72 -0
- data/app/views/kaui/admin_tenants/_form.html.erb +32 -20
- data/app/views/kaui/admin_tenants/_form_catalog_translation.erb +21 -8
- data/app/views/kaui/admin_tenants/_form_invoice_template.erb +25 -9
- data/app/views/kaui/admin_tenants/_form_invoice_translation.erb +36 -20
- data/app/views/kaui/admin_tenants/_form_plugin_config.erb +16 -20
- data/app/views/kaui/admin_tenants/_show_catalog.erb +13 -6
- data/app/views/kaui/admin_tenants/_show_catalog_simple.erb +95 -46
- data/app/views/kaui/admin_tenants/_show_catalog_xml.erb +62 -37
- data/app/views/kaui/admin_tenants/_show_overdue.erb +91 -75
- data/app/views/kaui/admin_tenants/_tenant_details.html.erb +106 -17
- data/app/views/kaui/admin_tenants/_tenants_table.html.erb +67 -6
- data/app/views/kaui/admin_tenants/_useful_links.html.erb +21 -16
- data/app/views/kaui/admin_tenants/index.html.erb +35 -11
- data/app/views/kaui/admin_tenants/index.js.erb +3 -0
- data/app/views/kaui/admin_tenants/new.html.erb +19 -13
- data/app/views/kaui/admin_tenants/new_catalog.html.erb +230 -98
- data/app/views/kaui/admin_tenants/new_overdue_config.html.erb +152 -80
- data/app/views/kaui/admin_tenants/new_plan_currency.html.erb +44 -30
- data/app/views/kaui/admin_tenants/show.html.erb +211 -78
- data/app/views/kaui/admin_tenants/show.js.erb +3 -0
- data/app/views/kaui/audit_logs/_multi_functions_bar.html.erb +298 -101
- data/app/views/kaui/audit_logs/index.html.erb +137 -38
- data/app/views/kaui/bundle_tags/_form_bar.html.erb +11 -4
- data/app/views/kaui/bundles/_bundle_details.html.erb +24 -12
- data/app/views/kaui/bundles/index.html.erb +79 -104
- data/app/views/kaui/bundles/pause_resume.html.erb +73 -38
- data/app/views/kaui/chargebacks/_form.html.erb +35 -18
- data/app/views/kaui/chargebacks/new.html.erb +16 -9
- data/app/views/kaui/charges/_form.html.erb +54 -42
- data/app/views/kaui/charges/new.html.erb +15 -8
- data/app/views/kaui/components/breadcrumb/_breadcrumb.html.erb +146 -0
- data/app/views/kaui/components/button/_button.html.erb +16 -0
- data/app/views/kaui/components/dashboard/_card.html.erb +15 -0
- data/app/views/kaui/components/dashboard/_setting.html.erb +15 -0
- data/app/views/kaui/components/form_input/_form_input.html.erb +4 -0
- data/app/views/kaui/components/form_password/_form_password.html.erb +6 -0
- data/app/views/kaui/components/logo/_logo.html.erb +1 -0
- data/app/views/kaui/components/menu_dropdown/_menu_dropdown.html.erb +59 -0
- data/app/views/kaui/components/search_input/_search_input.html.erb +81 -0
- data/app/views/kaui/credits/_form.html.erb +42 -25
- data/app/views/kaui/credits/new.html.erb +15 -8
- data/app/views/kaui/custom_fields/_form.html.erb +37 -25
- data/app/views/kaui/custom_fields/_list_bar.html.erb +11 -10
- data/app/views/kaui/custom_fields/index.html.erb +121 -27
- data/app/views/kaui/custom_fields/new.html.erb +19 -8
- data/app/views/kaui/errors/500.html.erb +1 -1
- data/app/views/kaui/home/index.html.erb +77 -30
- data/app/views/kaui/invoice_items/_edit_form.html.erb +30 -14
- data/app/views/kaui/invoice_items/edit.html.erb +15 -7
- data/app/views/kaui/invoice_tags/_form_bar.html.erb +13 -3
- data/app/views/kaui/invoices/_invoice_filterbar.html.erb +53 -69
- data/app/views/kaui/invoices/_invoice_table.html.erb +77 -92
- data/app/views/kaui/invoices/_multi_functions_bar.html.erb +351 -140
- data/app/views/kaui/invoices/index.html.erb +89 -27
- data/app/views/kaui/invoices/show.html.erb +392 -80
- data/app/views/kaui/layouts/kaui_account_sidebar.html.erb +42 -0
- data/app/views/kaui/layouts/kaui_application.html.erb +29 -15
- data/app/views/kaui/layouts/kaui_flash.html.erb +82 -31
- data/app/views/kaui/layouts/kaui_navbar.html.erb +109 -82
- data/app/views/kaui/layouts/kaui_setting_sidebar.html.erb +36 -0
- data/app/views/kaui/payment_methods/_form.html.erb +32 -11
- data/app/views/kaui/payment_methods/_new_creditcard_payment_method.html.erb +35 -34
- data/app/views/kaui/payment_methods/_payment_methods_details_table.html.erb +27 -29
- data/app/views/kaui/payment_methods/_payment_methods_table.html.erb +116 -38
- data/app/views/kaui/payment_methods/_plugin_properties.html.erb +19 -9
- data/app/views/kaui/payment_methods/new.html.erb +14 -8
- data/app/views/kaui/payments/_form.html.erb +30 -13
- data/app/views/kaui/payments/_multi_functions_bar.html.erb +351 -141
- data/app/views/kaui/payments/_payment_filterbar.html.erb +63 -79
- data/app/views/kaui/payments/_payment_invoice_table.html.erb +105 -0
- data/app/views/kaui/payments/_payment_table.html.erb +4 -67
- data/app/views/kaui/payments/index.html.erb +90 -26
- data/app/views/kaui/payments/new.html.erb +15 -8
- data/app/views/kaui/payments/show.html.erb +222 -28
- data/app/views/kaui/queues/index.html.erb +329 -111
- data/app/views/kaui/refunds/_form.html.erb +68 -45
- data/app/views/kaui/refunds/new.html.erb +15 -8
- data/app/views/kaui/role_definitions/_form.html.erb +104 -17
- data/app/views/kaui/role_definitions/new.html.erb +15 -8
- data/app/views/kaui/sessions/_form.html.erb +9 -19
- data/app/views/kaui/sessions/new.html.erb +10 -9
- data/app/views/kaui/subscriptions/_cancel_by_date_modal.html.erb +65 -35
- data/app/views/kaui/subscriptions/_edit_form.html.erb +66 -35
- data/app/views/kaui/subscriptions/_form.html.erb +63 -32
- data/app/views/kaui/subscriptions/_subscriptions_table.html.erb +215 -57
- data/app/views/kaui/subscriptions/edit.html.erb +19 -8
- data/app/views/kaui/subscriptions/edit_bcd.erb +46 -16
- data/app/views/kaui/subscriptions/new.html.erb +22 -15
- data/app/views/kaui/tag_definitions/_form.html.erb +51 -30
- data/app/views/kaui/tag_definitions/index.html.erb +151 -40
- data/app/views/kaui/tag_definitions/new.html.erb +15 -8
- data/app/views/kaui/tags/index.html.erb +136 -47
- data/app/views/kaui/tenants/_form.html.erb +8 -5
- data/app/views/kaui/tenants/index.html.erb +15 -9
- data/app/views/kaui/transactions/_control_plugin_names.html.erb +18 -10
- data/app/views/kaui/transactions/_form.html.erb +86 -25
- data/app/views/kaui/transactions/new.html.erb +15 -9
- data/config/routes.rb +1 -0
- data/lib/kaui/engine.rb +11 -0
- data/lib/kaui/version.rb +1 -1
- data/lib/kaui.rb +0 -1
- metadata +120 -2
|
@@ -3,14 +3,23 @@
|
|
|
3
3
|
<%= hidden_field_tag :invoice_id, invoice_id %>
|
|
4
4
|
|
|
5
5
|
<% available_tags.each do |tag| %>
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<div class="label-group-item-manual">
|
|
7
|
+
<%= check_box_tag "tag_#{tag.id}", tag.name, tag_names.include?(tag.name), :disabled => !can_change_tags, :readonly => !can_change_tags %>
|
|
8
|
+
<label class='tag-description' rel='tooltip' title='<%= tag.description %>'><%= tag.name %></label>
|
|
9
|
+
</div>
|
|
8
10
|
<% end %>
|
|
9
11
|
|
|
10
12
|
<% if can_change_tags %>
|
|
11
13
|
<%= label_tag :comment, 'Comment', :class => 'col-sm-2 control-label' %>
|
|
12
14
|
<%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
|
|
13
|
-
|
|
15
|
+
<div class="d-flex align-items-right justify-content-end">
|
|
16
|
+
<%= render "kaui/components/button/button", {
|
|
17
|
+
label: "Update",
|
|
18
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
19
|
+
type: "submit",
|
|
20
|
+
html_class: "kaui-dropdown custom-hover",
|
|
21
|
+
} %>
|
|
22
|
+
</div>
|
|
14
23
|
<% end %>
|
|
15
24
|
<% end %>
|
|
16
25
|
|
|
@@ -19,3 +28,4 @@ $(function() {
|
|
|
19
28
|
$(".tag-description").tooltip();
|
|
20
29
|
});
|
|
21
30
|
<% end %>
|
|
31
|
+
|
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
<div class="modal-dialog" role="document">
|
|
3
3
|
<div class="modal-content">
|
|
4
4
|
<div class="modal-header">
|
|
5
|
-
<h5 class="modal-title" id="advanceSearchModalLabel">
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<h5 class="modal-title d-flex align-items-center gap-3" id="advanceSearchModalLabel">
|
|
6
|
+
<span class="icon-container">
|
|
7
|
+
<%= image_tag("kaui/modal/search.svg", width: 20, height: 20) %>
|
|
8
|
+
</span>
|
|
9
|
+
Advance Search
|
|
10
|
+
</h5>
|
|
11
|
+
<button type="button" class="close close-button custom-hover" data-bs-dismiss="modal" aria-label="Close">
|
|
12
|
+
<span aria-hidden="true">
|
|
13
|
+
<%= image_tag("kaui/modal/close.svg", width: 20, height: 20) %>
|
|
14
|
+
</span>
|
|
8
15
|
</button>
|
|
9
16
|
</div>
|
|
10
17
|
<div class="modal-body">
|
|
11
18
|
<form id="advanceSearchForm">
|
|
12
|
-
|
|
13
|
-
<label for="searchFieldSelect" class="mr-2" style="width: 30%;">Search
|
|
19
|
+
<div class="form-group d-flex align-items-center">
|
|
20
|
+
<label for="searchFieldSelect" class="mr-2 field-label" style="width: 30%;">Search Field</label>
|
|
14
21
|
<select id="searchFieldSelect" class="form-control mr-2">
|
|
15
22
|
<% if @account.account_id.present? %>
|
|
16
23
|
<% @search_fields.reject { |value, _| value == 'balance' || value == 'account_id' }.each do |value, title| %>
|
|
@@ -22,7 +29,9 @@
|
|
|
22
29
|
<% end %>
|
|
23
30
|
<% end %>
|
|
24
31
|
</select>
|
|
25
|
-
<button type="button" class="
|
|
32
|
+
<button type="button" class="border-button custom-hover" id="addSearchField">
|
|
33
|
+
<%= image_tag("kaui/modal/plus.svg", width: 16, height: 16) %>
|
|
34
|
+
</button>
|
|
26
35
|
</div>
|
|
27
36
|
<div id="search-fields-container">
|
|
28
37
|
</div>
|
|
@@ -34,18 +43,33 @@
|
|
|
34
43
|
<% end %>
|
|
35
44
|
</div>
|
|
36
45
|
<div class="modal-footer">
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
<%= render "kaui/components/button/button", {
|
|
47
|
+
label: 'Clear Search',
|
|
48
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
49
|
+
type: "button",
|
|
50
|
+
html_class: "kaui-button custom-hover",
|
|
51
|
+
html_options: {
|
|
52
|
+
id: "clearAdvanceSearch"
|
|
53
|
+
}
|
|
54
|
+
} %>
|
|
55
|
+
<%= render "kaui/components/button/button", {
|
|
56
|
+
label: 'Apply Search',
|
|
57
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
58
|
+
type: "button",
|
|
59
|
+
html_class: "kaui-dropdown custom-hover",
|
|
60
|
+
html_options: {
|
|
61
|
+
id: "applyAdvanceSearch"
|
|
62
|
+
}
|
|
63
|
+
} %>
|
|
40
64
|
</div>
|
|
41
65
|
</div>
|
|
42
66
|
</div>
|
|
43
67
|
</div>
|
|
44
68
|
|
|
45
69
|
<template id="search-field-template">
|
|
46
|
-
<div class="form-group row align-items-center search-field">
|
|
47
|
-
<label class="col-sm-
|
|
48
|
-
<div class="col-sm-
|
|
70
|
+
<div class="form-group row align-items-center justify-content-between search-field">
|
|
71
|
+
<label class="col-sm-3 col-form-label search-field-label"></label>
|
|
72
|
+
<div class="col-sm-4">
|
|
49
73
|
<select class="form-control search-field-filter">
|
|
50
74
|
<option value="eq">Equals</option>
|
|
51
75
|
<option value="neq">Not Equals</option>
|
|
@@ -59,60 +83,12 @@
|
|
|
59
83
|
<div class="col-sm-4">
|
|
60
84
|
<input type="text" class="form-control search-field-value">
|
|
61
85
|
</div>
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
</
|
|
86
|
+
<button type="button" class="button custom-hover" id="remove-search-field">
|
|
87
|
+
<%= image_tag("kaui/modal/red-close.svg", width: 16, height: 16) %>
|
|
88
|
+
</button>
|
|
65
89
|
</div>
|
|
66
90
|
</template>
|
|
67
91
|
|
|
68
|
-
<style>
|
|
69
|
-
.form-group.row.align-items-center {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.form-group.row.align-items-center label {
|
|
75
|
-
margin-bottom: 0; /* Remove default margin */
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.form-group.row.align-items-center .form-control {
|
|
79
|
-
margin-right: 10px; /* Add some space between elements */
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.form-group.d-flex {
|
|
83
|
-
display: flex;
|
|
84
|
-
align-items: center;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.form-group.d-flex label {
|
|
88
|
-
margin-bottom: 0; /* Remove default margin */
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.form-group.d-flex .form-control {
|
|
92
|
-
margin-right: 10px; /* Add some space between the select box and the button */
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
#search-labels-container .label {
|
|
96
|
-
margin-left: 5px; /* Add space between labels */
|
|
97
|
-
margin-bottom: 5px; /* Add space below labels if they wrap to the next line */
|
|
98
|
-
color: white;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.filter-bar-container {
|
|
102
|
-
display: flex;
|
|
103
|
-
justify-content: flex-start; /* Align items to the left */
|
|
104
|
-
align-items: center; /* Center items vertically */
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.filter-bar {
|
|
108
|
-
display: flex;
|
|
109
|
-
align-items: center; /* Center items vertically */
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.filter-bar label {
|
|
113
|
-
margin: 10px; /* Add some space between the label and the select box */
|
|
114
|
-
}
|
|
115
|
-
</style>
|
|
116
92
|
|
|
117
93
|
<%= javascript_tag do %>
|
|
118
94
|
$(document).ready(function() {
|
|
@@ -163,18 +139,26 @@ $(document).ready(function() {
|
|
|
163
139
|
}
|
|
164
140
|
|
|
165
141
|
searchFields.each(function() {
|
|
166
|
-
var filter = $(this).find('.search-field-filter option:selected').text();
|
|
167
|
-
var value = $(this).find('.search-field-value').val();
|
|
168
|
-
var columnName = $(this).find('.search-field-filter').attr('name').replace('Filter', '');
|
|
142
|
+
var filter = $(this).find('.search-field-filter option:selected').text().trim();
|
|
143
|
+
var value = $(this).find('.search-field-value').val().trim();
|
|
144
|
+
var columnName = $(this).find('.search-field-filter').attr('name').replace('Filter', '').trim();
|
|
169
145
|
|
|
170
146
|
// Create and append the search label
|
|
171
147
|
if (value !== '') {
|
|
172
148
|
var label = $('<span>', {
|
|
173
|
-
class: 'label label-info',
|
|
174
|
-
|
|
149
|
+
class: 'label label-info d-inline-flex align-items-center gap-2',
|
|
150
|
+
'data-field': columnName,
|
|
151
|
+
'data-filter': filter,
|
|
152
|
+
'data-value': value
|
|
175
153
|
});
|
|
154
|
+
var labelText = $('<span>', { text: columnName + ' [' + filter + '] ' + value });
|
|
155
|
+
var closeIcon = $('<span>', {
|
|
156
|
+
class: 'filter-close-icon',
|
|
157
|
+
style: 'cursor: pointer; margin-left: 5px; display: inline-flex; align-items: center;'
|
|
158
|
+
}).html('<svg width="12" height="12" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.8337 4.1665L4.16699 15.8332M4.16699 4.1665L15.8337 15.8332" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
|
|
159
|
+
label.append(labelText).append(closeIcon);
|
|
160
|
+
searchLabelsContainer.append(label);
|
|
176
161
|
}
|
|
177
|
-
searchLabelsContainer.append(label);
|
|
178
162
|
});
|
|
179
163
|
$('#advanceSearchModal').modal('hide');
|
|
180
164
|
});
|
|
@@ -1,76 +1,64 @@
|
|
|
1
1
|
<div class="info-wrapper">
|
|
2
|
-
|
|
3
|
-
<% display_payment_options = (!dry_run && ((can?(:credit, Kaui::Account) && @invoice.status == 'DRAFT') || (can?(:charge, Kaui::Account) && @invoice.status == 'DRAFT') || (@invoice.balance > 0 && can?(:trigger, Kaui::Payment))))
|
|
4
|
-
if !(@available_invoice_tags ||= nil).blank? || !(@custom_fields ||= nil).blank? || display_payment_options %>
|
|
5
|
-
<div class="tag-bar">
|
|
6
|
-
<% unless @available_invoice_tags.blank? %>
|
|
7
|
-
<div class="tag-select" onclick="void(0)">
|
|
8
|
-
<span><i class="fa fa-tag"></i><i class="fa fa-caret-down"></i></span>
|
|
9
|
-
|
|
10
|
-
<div class="tag-select-box">
|
|
11
|
-
<strong>Tag As:</strong>
|
|
12
|
-
<%= render :partial => 'kaui/invoice_tags/form_bar',
|
|
13
|
-
:locals => {:account_id => @account.account_id,
|
|
14
|
-
:invoice_id => @invoice.invoice_id,
|
|
15
|
-
:tag_names => @invoice_tags.map { |tag| tag.tag_definition_name },
|
|
16
|
-
:available_tags => @available_invoice_tags} %>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<% end %>
|
|
20
|
-
<%= render :partial => 'kaui/custom_fields/list_bar',
|
|
21
|
-
:locals => {:custom_fields => @custom_fields} %>
|
|
22
|
-
|
|
23
|
-
<% if display_payment_options %>
|
|
24
|
-
<div class="tag-select" onclick="void(0)">
|
|
25
|
-
<span><i class="fa fa-credit-card"></i><i class="fa fa-caret-down"></i></span>
|
|
26
|
-
|
|
27
|
-
<div class="tag-select-box">
|
|
28
|
-
|
|
29
|
-
<% if can?(:credit, Kaui::Account) && @invoice.status == 'DRAFT' %>
|
|
30
|
-
<%= link_to '<i class="fa fa-plus-square"></i> Add credit'.html_safe,
|
|
31
|
-
kaui_engine.new_account_credit_path(@invoice.account_id, :currency => @invoice.currency, :invoice_id => @invoice.invoice_id) %>
|
|
32
|
-
<% end %>
|
|
33
|
-
<% if can?(:charge, Kaui::Account) && @invoice.status == 'DRAFT' %>
|
|
34
|
-
<%= link_to '<i class="fa fa-plus-square"></i> Create charge'.html_safe,
|
|
35
|
-
kaui_engine.new_account_charge_path(@invoice.account_id, :currency => @invoice.currency, :invoice_id => @invoice.invoice_id) %>
|
|
36
|
-
<% end %>
|
|
37
|
-
<% if @invoice.balance > 0 && can?(:trigger, Kaui::Payment) %>
|
|
38
|
-
<%= link_to '<i class="fa fa-plus-square"></i> Make payment'.html_safe,
|
|
39
|
-
kaui_engine.new_account_payment_path(@invoice.account_id, :invoice_id => @invoice.invoice_id) %>
|
|
40
|
-
<% end %>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
</div>
|
|
44
|
-
<% end %>
|
|
45
|
-
|
|
46
|
-
<% if can?(:void, Kaui::Invoice) && @invoice.status != 'VOID' && @invoice_tags.find { |t| t.tag_definition_name == 'WRITTEN_OFF' }.nil? # The backend will do more comprehensive checks %>
|
|
47
|
-
<div class="tag-select" onclick="void(0)">
|
|
48
|
-
<span><i class="fa fa-trash"></i><i class="fa fa-caret-down"></i></span>
|
|
49
|
-
|
|
50
|
-
<div class="tag-select-box">
|
|
51
|
-
<%= form_tag void_invoice_path(:id => @invoice.invoice_id), :method => :delete do %>
|
|
52
|
-
<%= label_tag :comment, 'Comment', :class => 'col-sm-2 control-label' %>
|
|
53
|
-
<%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
|
|
54
|
-
<%= submit_tag 'Void', :class => 'btn btn-default' %>
|
|
55
|
-
<% end %>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
<% end %>
|
|
59
|
-
</div>
|
|
60
|
-
<% end %>
|
|
61
|
-
|
|
62
|
-
<table id="invoice-table" class="table table-condensed mobile-data">
|
|
2
|
+
<table id="invoice-table" class="invoice-table">
|
|
63
3
|
<thead>
|
|
64
4
|
<tr>
|
|
65
5
|
<% unless (@available_invoice_item_tags ||= nil).blank? && (@custom_fields_per_invoice_item ||= nil).blank? %>
|
|
66
6
|
<th></th>
|
|
67
7
|
<% end %>
|
|
68
|
-
<th>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
8
|
+
<th class="sortable-header" data-column="<%= (@available_invoice_item_tags.blank? && @custom_fields_per_invoice_item.blank?) ? 0 : 1 %>">
|
|
9
|
+
<div class="header-content">
|
|
10
|
+
<span class="header-text">Description</span>
|
|
11
|
+
<div class="sort-icons">
|
|
12
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
13
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</th>
|
|
17
|
+
<th class="sortable-header" data-column="<%= (@available_invoice_item_tags.blank? && @custom_fields_per_invoice_item.blank?) ? 1 : 2 %>">
|
|
18
|
+
<div class="header-content">
|
|
19
|
+
<span class="header-text">Start date</span>
|
|
20
|
+
<div class="sort-icons">
|
|
21
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
22
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</th>
|
|
26
|
+
<th class="sortable-header" data-column="<%= (@available_invoice_item_tags.blank? && @custom_fields_per_invoice_item.blank?) ? 2 : 3 %>">
|
|
27
|
+
<div class="header-content">
|
|
28
|
+
<span class="header-text">End date</span>
|
|
29
|
+
<div class="sort-icons">
|
|
30
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
31
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</th>
|
|
35
|
+
<th class="sortable-header" data-column="<%= (@available_invoice_item_tags.blank? && @custom_fields_per_invoice_item.blank?) ? 3 : 4 %>">
|
|
36
|
+
<div class="header-content">
|
|
37
|
+
<span class="header-text">Subscription ID</span>
|
|
38
|
+
<div class="sort-icons">
|
|
39
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
40
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</th>
|
|
44
|
+
<th class="sortable-header" data-column="<%= (@available_invoice_item_tags.blank? && @custom_fields_per_invoice_item.blank?) ? 4 : 5 %>">
|
|
45
|
+
<div class="header-content">
|
|
46
|
+
<span class="header-text">Amount</span>
|
|
47
|
+
<div class="sort-icons">
|
|
48
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
49
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</th>
|
|
53
|
+
<th class="sortable-header" data-column="<%= (@available_invoice_item_tags.blank? && @custom_fields_per_invoice_item.blank?) ? 5 : 6 %>">
|
|
54
|
+
<div class="header-content">
|
|
55
|
+
<span class="header-text">Comments</span>
|
|
56
|
+
<div class="sort-icons">
|
|
57
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
58
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</th>
|
|
74
62
|
<th></th>
|
|
75
63
|
</tr>
|
|
76
64
|
</thead>
|
|
@@ -114,9 +102,14 @@
|
|
|
114
102
|
<td>
|
|
115
103
|
<% if can? :item_adjust, Kaui::Invoice %>
|
|
116
104
|
<nobr>
|
|
117
|
-
<%= link_to '
|
|
118
|
-
|
|
119
|
-
|
|
105
|
+
<%= link_to kaui_engine.edit_account_invoice_item_path(@invoice.account_id, item.invoice_item_id, :invoice_id => @invoice.invoice_id), :class => " #{'disabled' unless item.amount > 0}" do %>
|
|
106
|
+
<%= render "kaui/components/button/button", {
|
|
107
|
+
label: "Adjust",
|
|
108
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
109
|
+
type: "button",
|
|
110
|
+
html_class: "adjust-button kaui-button",
|
|
111
|
+
} %>
|
|
112
|
+
<% end %>
|
|
120
113
|
</nobr>
|
|
121
114
|
<% end %>
|
|
122
115
|
</td>
|
|
@@ -124,28 +117,20 @@
|
|
|
124
117
|
<% end %>
|
|
125
118
|
</tbody>
|
|
126
119
|
</table>
|
|
127
|
-
<
|
|
128
|
-
<
|
|
129
|
-
<
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<
|
|
138
|
-
<
|
|
139
|
-
</
|
|
140
|
-
|
|
141
|
-
<th>Refunded:</th>
|
|
142
|
-
<td><%= humanized_money_with_symbol @invoice.refund_adjustment_to_money %> (<%= @invoice.currency %>)</td>
|
|
143
|
-
</tr>
|
|
144
|
-
<tr>
|
|
145
|
-
<th>Balance:</th>
|
|
146
|
-
<td><%= humanized_money_with_symbol @invoice.balance_to_money %> (<%= @invoice.currency %>)</td>
|
|
147
|
-
</tr>
|
|
148
|
-
</table>
|
|
120
|
+
<div class="invoice-totals d-flex align-items-center justify-content-end gap-5">
|
|
121
|
+
<div class="d-flex align-items-end justify-content-between mb-3 flex-column">
|
|
122
|
+
<p>Invoice Total:</p>
|
|
123
|
+
<p>Resulting available credits:</p>
|
|
124
|
+
<p>Refunded:</p>
|
|
125
|
+
<p>Balance:</p>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="d-flex align-items-start justify-content-between mb-3 flex-column">
|
|
128
|
+
<p><%= humanized_money_with_symbol @invoice.amount_to_money %> (<%= @invoice.currency %>)</p>
|
|
129
|
+
<p><%= humanized_money_with_symbol @invoice.credit_adjustment_to_money %> (<%= @invoice.currency %>)</p>
|
|
130
|
+
<p><%= humanized_money_with_symbol @invoice.refund_adjustment_to_money %> (<%= @invoice.currency %>)</p>
|
|
131
|
+
<p><%= humanized_money_with_symbol @invoice.balance_to_money %> (<%= @invoice.currency %>)</p>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
149
134
|
|
|
150
135
|
</div>
|
|
151
136
|
|