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
|
@@ -1,48 +1,110 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
<div class="
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
<div class="kaui-container kaui-audit-logs-index">
|
|
2
|
+
<%= render "kaui/components/breadcrumb/breadcrumb" %>
|
|
3
|
+
<div class="d-flex " style="gap: 4rem;">
|
|
4
|
+
<%= render :template => 'kaui/layouts/kaui_account_sidebar' %>
|
|
5
|
+
<div class="audit-logs">
|
|
6
|
+
<div class="d-flex flex-column ">
|
|
7
|
+
<div class="audit-logs-header mb-4">
|
|
8
|
+
<div class="d-flex align-items-center">
|
|
9
|
+
<h2>Audit logs</h2>
|
|
10
|
+
</div>
|
|
11
|
+
<span>
|
|
12
|
+
<%= render :partial => 'multi_functions_bar' %>
|
|
13
|
+
<input type="hidden" id="audit-logs" value="<%= @audit_logs_json %>">
|
|
14
|
+
</span>
|
|
15
|
+
</div>
|
|
16
|
+
<table id="audit-logs-table" class="audit-logs-table">
|
|
17
|
+
<thead>
|
|
18
|
+
<tr>
|
|
19
|
+
<th class="sortable-header" data-column="0">
|
|
20
|
+
<div class="header-content">
|
|
21
|
+
<span class="header-text">Created date</span>
|
|
22
|
+
<div class="sort-icons">
|
|
23
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
24
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</th>
|
|
28
|
+
<th class="sortable-header" data-column="1">
|
|
29
|
+
<div class="header-content">
|
|
30
|
+
<span class="header-text">Object id</span>
|
|
31
|
+
<div class="sort-icons">
|
|
32
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
33
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</th>
|
|
37
|
+
<th class="sortable-header" data-column="2">
|
|
38
|
+
<div class="header-content">
|
|
39
|
+
<span class="header-text">Object type</span>
|
|
40
|
+
<div class="sort-icons">
|
|
41
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
42
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</th>
|
|
46
|
+
<th class="sortable-header" data-column="3">
|
|
47
|
+
<div class="header-content">
|
|
48
|
+
<span class="header-text">Change type</span>
|
|
49
|
+
<div class="sort-icons">
|
|
50
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
51
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</th>
|
|
55
|
+
<th class="sortable-header" data-column="4">
|
|
56
|
+
<div class="header-content">
|
|
57
|
+
<span class="header-text">Username</span>
|
|
58
|
+
<div class="sort-icons">
|
|
59
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
60
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</th>
|
|
64
|
+
<th class="sortable-header" data-column="5">
|
|
65
|
+
<div class="header-content">
|
|
66
|
+
<span class="header-text">Reason</span>
|
|
67
|
+
<div class="sort-icons">
|
|
68
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
69
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</th>
|
|
73
|
+
<th class="sortable-header" data-column="6">
|
|
74
|
+
<div class="header-content">
|
|
75
|
+
<span class="header-text">Comment</span>
|
|
76
|
+
<div class="sort-icons">
|
|
77
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
78
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</th>
|
|
82
|
+
<th class="sortable-header" data-column="7">
|
|
83
|
+
<div class="header-content">
|
|
84
|
+
<span class="header-text">User token</span>
|
|
85
|
+
<div class="sort-icons">
|
|
86
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
87
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</th>
|
|
91
|
+
</tr>
|
|
92
|
+
</thead>
|
|
93
|
+
<tbody>
|
|
94
|
+
</tbody>
|
|
95
|
+
</table>
|
|
96
|
+
</div>
|
|
97
|
+
<%= render :partial => 'show_history_modal' %>
|
|
98
|
+
</div>
|
|
28
99
|
</div>
|
|
29
|
-
|
|
30
|
-
<%= render :partial => 'show_history_modal' %>
|
|
31
|
-
|
|
32
100
|
</div>
|
|
33
101
|
|
|
34
|
-
<style>
|
|
35
|
-
#audit-logs-table td, #audit-logs-table tr {
|
|
36
|
-
white-space: nowrap;
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
39
|
-
|
|
40
|
-
|
|
41
102
|
<%= javascript_tag do %>
|
|
42
103
|
$(document).ready(function() {
|
|
43
104
|
var auditLogs = JSON.parse($("#audit-logs").val());
|
|
44
|
-
$('#audit-logs-table').DataTable({
|
|
105
|
+
var table = $('#audit-logs-table').DataTable({
|
|
45
106
|
dom: "<'row'<'col-md-6'l><'col-md-6'f>r>t<'row'<'col-md-6'i><'col-md-6'p>>",
|
|
107
|
+
pagingType: "full_numbers",
|
|
46
108
|
data: auditLogs,
|
|
47
109
|
"scrollX": true,
|
|
48
110
|
order: [[ 0, 'desc' ]],
|
|
@@ -54,11 +116,48 @@
|
|
|
54
116
|
} else if ( data[3] == "DELETE" ) {
|
|
55
117
|
$(row).addClass( 'delete' );
|
|
56
118
|
}
|
|
119
|
+
if (data[4] || data[3]) {
|
|
120
|
+
$(row).each(function () {
|
|
121
|
+
$(this).find('td').each(function () {
|
|
122
|
+
const content = $(this).text().trim();
|
|
123
|
+
$(this).html(`<span>${content}</span>`);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}
|
|
57
127
|
},
|
|
58
128
|
drawCallback: function() {
|
|
59
129
|
setObjectIdPopover();
|
|
60
130
|
}
|
|
61
131
|
});
|
|
132
|
+
|
|
133
|
+
// Custom sorting functionality and indicators
|
|
134
|
+
(function() {
|
|
135
|
+
var currentSortColumn = 0;
|
|
136
|
+
var currentSortDirection = 'desc';
|
|
137
|
+
|
|
138
|
+
updateSortIndicators(currentSortColumn, currentSortDirection);
|
|
139
|
+
|
|
140
|
+
$('#audit-logs-table thead .sortable-header').on('click', function() {
|
|
141
|
+
var columnIndex = parseInt($(this).data('column'));
|
|
142
|
+
var newDirection = (currentSortColumn === columnIndex && currentSortDirection === 'asc') ? 'desc' : 'asc';
|
|
143
|
+
currentSortColumn = columnIndex;
|
|
144
|
+
currentSortDirection = newDirection;
|
|
145
|
+
updateSortIndicators(columnIndex, newDirection);
|
|
146
|
+
table.order([columnIndex, newDirection]).draw();
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
function updateSortIndicators(columnIndex, direction) {
|
|
150
|
+
var $table = $('#audit-logs-table');
|
|
151
|
+
$table.find('.sortable-header').removeClass('sort-asc-active sort-desc-active');
|
|
152
|
+
$table.find('.sort-icon').removeClass('active');
|
|
153
|
+
var $header = $table.find('.sortable-header[data-column="' + columnIndex + '"]');
|
|
154
|
+
$header.addClass(direction + '-active');
|
|
155
|
+
$header.find('.sort-' + direction).addClass('active');
|
|
156
|
+
}
|
|
157
|
+
})();
|
|
62
158
|
});
|
|
63
159
|
|
|
160
|
+
setTimeout(() => {
|
|
161
|
+
|
|
162
|
+
}, 50);
|
|
64
163
|
<% end %>
|
|
@@ -5,14 +5,21 @@
|
|
|
5
5
|
<% end %>
|
|
6
6
|
|
|
7
7
|
<% available_tags.each do |tag| %>
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
<div class="label-group-item-manual">
|
|
9
|
+
<%= check_box_tag "tag_#{tag.id}", tag.name, tag_names.include?(tag.name), :disabled => !can_change_tags, :readonly => !can_change_tags %>
|
|
10
|
+
<label class='tag-description text-start' rel='tooltip' title='<%= tag.description %>'><%= tag.name %></label>
|
|
11
|
+
</div>
|
|
10
12
|
<% end %>
|
|
11
13
|
|
|
12
14
|
<% if can_change_tags %>
|
|
13
|
-
<%= label_tag :comment, 'Comment', :class => 'col-sm-2 control-label' %>
|
|
15
|
+
<%= label_tag :comment, 'Comment', :class => 'col-sm-2 control-label text-start' %>
|
|
14
16
|
<%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
|
|
15
|
-
<%=
|
|
17
|
+
<%= render "kaui/components/button/button", {
|
|
18
|
+
label: "Update",
|
|
19
|
+
variant: "outline-secondary gap-1",
|
|
20
|
+
type: "submit",
|
|
21
|
+
html_class: "kaui-dropdown custom-hover",
|
|
22
|
+
} %>
|
|
16
23
|
<% end %>
|
|
17
24
|
<% end %>
|
|
18
25
|
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<div class="d-flex align-items-center w-100 mb-4 bundle-details-header">
|
|
2
|
+
<div class="col-sm-6">
|
|
3
|
+
<b>Bundle ID</b>
|
|
4
|
+
<p class="text-muted small d-flex align-items-center mb-0">
|
|
5
|
+
<%= bundle.bundle_id %>
|
|
6
|
+
<svg
|
|
7
|
+
class="mx-2"
|
|
8
|
+
width="16"
|
|
9
|
+
height="16"
|
|
10
|
+
viewBox="0 0 16 16"
|
|
11
|
+
fill="none"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
style="cursor: pointer;"
|
|
14
|
+
onclick="navigator.clipboard.writeText('<%= bundle.bundle_id %>')"
|
|
15
|
+
>
|
|
16
|
+
<path d="M11.3332 5.94864V2.66659C11.3332 1.93021 10.7363 1.33325 9.99989 1.33325H2.66659C1.93021 1.33325 1.33325 1.93021 1.33325 2.66659V9.99992C1.33325 10.7363 1.93021 11.3333 2.66659 11.3333H5.94864" stroke="#717680" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
17
|
+
<path d="M13.3333 6C14.0697 6 14.6666 6.59695 14.6666 7.33333M7.33331 6C6.59695 6 6 6.59695 6 7.33333M13.3333 14.6667C14.0697 14.6667 14.6666 14.0697 14.6666 13.3333M7.33331 14.6667C6.59695 14.6667 6 14.0697 6 13.3333M9.33331 6H11.3333M9.33331 14.6667H11.3333M14.6666 9.33333V11.3333M6 9.33333V11.3333" stroke="#717680" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
+
</svg>
|
|
19
|
+
</p>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="col-sm-6">
|
|
22
|
+
<%= render :partial => 'kaui/custom_fields/list_bar', :locals => {:custom_fields => @custom_fields_per_bundle[bundle.bundle_id] || []} %>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
@@ -1,113 +1,88 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
<div class="kaui-container subscription-bundl-index pb-5">
|
|
2
|
+
<%= render "kaui/components/breadcrumb/breadcrumb" %>
|
|
3
|
+
<div class="d-flex mb-5" style="gap: 4rem;">
|
|
4
|
+
<%= render :template => 'kaui/layouts/kaui_account_sidebar' %>
|
|
5
|
+
<div class="subscription-bundle">
|
|
6
|
+
<div class="d-flex flex-column ">
|
|
7
|
+
<div class="subscription-bundle-header mb-4">
|
|
8
|
+
<div class="d-flex align-items-center">
|
|
9
|
+
<h2>Subscription Bundles</h2>
|
|
10
|
+
</div>
|
|
11
|
+
<span>
|
|
12
|
+
<% if can? :create, Kaui::Subscription %>
|
|
13
|
+
<%= link_to kaui_engine.new_subscription_path(:params => { :account_id => @account.account_id, :product_category => 'BASE' }) do %>
|
|
14
|
+
<%= render "kaui/components/button/button", {
|
|
15
|
+
label: "Create Subscription",
|
|
16
|
+
icon: "kaui/plus.svg",
|
|
17
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
18
|
+
type: "button",
|
|
19
|
+
html_class: "kaui-dropdown custom-hover",
|
|
20
|
+
} %>
|
|
21
|
+
<% end %>
|
|
22
|
+
<% end %>
|
|
23
|
+
</span>
|
|
15
24
|
</div>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<% unless @available_tags.empty? %>
|
|
22
|
-
<div class="tag-select" onclick="void(0)">
|
|
23
|
-
<span><i class="fa fa-tag"></i><i class="fa fa-caret-down"></i></span>
|
|
24
|
-
|
|
25
|
-
<div class="tag-select-box">
|
|
26
|
-
<strong>Tag as:</strong>
|
|
27
|
-
|
|
28
|
-
<%= render :partial => 'kaui/bundle_tags/form_bar',
|
|
29
|
-
:locals => {:params => { :bundle_id => bundle.bundle_id},
|
|
30
|
-
:tag_names => (@tags_per_bundle[bundle.bundle_id] || []).map { |tag| tag.tag_definition_name },
|
|
31
|
-
:available_tags => @available_tags,
|
|
32
|
-
:update_tags_path => update_bundle_tags_path
|
|
33
|
-
} %>
|
|
25
|
+
<div class="subscriptions-scroll">
|
|
26
|
+
<% @bundles.each_with_index do |bundle, idx| %>
|
|
27
|
+
<div class="row">
|
|
28
|
+
<div class="d-flex">
|
|
29
|
+
<%= render :partial => Kaui.bundle_details_partial, :locals => { :bundle => bundle, :account => @account, :catalog => @catalog } %>
|
|
34
30
|
</div>
|
|
31
|
+
<% if bundle.subscriptions.present? %>
|
|
32
|
+
<div class="search">
|
|
33
|
+
<%= render :partial => 'kaui/subscriptions/subscriptions_table', :locals => {:bundle => bundle, :account => @account, :catalog => @catalog} %>
|
|
34
|
+
</div>
|
|
35
|
+
<% end %>
|
|
35
36
|
</div>
|
|
36
37
|
<% end %>
|
|
37
|
-
<%= render :partial => 'kaui/custom_fields/list_bar',
|
|
38
|
-
:locals => {:custom_fields => @custom_fields_per_bundle[bundle.bundle_id] || []} %>
|
|
39
|
-
|
|
40
|
-
<% if !subscription_cancelled?(@subscription[bundle.bundle_id]) &&
|
|
41
|
-
(can?(:create, Kaui::Subscription) || can?(:transfer, Kaui::Subscription) || can?(:pause_resume, Kaui::Subscription)) %>
|
|
42
|
-
<div class="tag-select" onclick="void(0)">
|
|
43
|
-
<span><i class="fa fa-gift"></i><i class="fa fa-caret-down"></i></span>
|
|
44
|
-
|
|
45
|
-
<div class="tag-select-box">
|
|
46
|
-
<% if can?(:create, Kaui::Subscription) && @subscription[bundle.bundle_id].present? %>
|
|
47
|
-
<%= link_to "<i class='fa fa-plus'></i> #{@subscription[bundle.bundle_id].product_category == 'BASE' ? 'Add add-on' : 'Add standalone subscription'}".html_safe,
|
|
48
|
-
kaui_engine.new_subscription_path(:params => {
|
|
49
|
-
:account_id => bundle.account_id,
|
|
50
|
-
:bundle_id => bundle.bundle_id,
|
|
51
|
-
:base_product_name => @subscription[bundle.bundle_id].product_name,
|
|
52
|
-
:product_category => @subscription[bundle.bundle_id].product_category == 'BASE' ? 'ADD_ON' : 'STANDALONE'}) %>
|
|
53
|
-
<% end %>
|
|
54
|
-
<% if can? :transfer, Kaui::Subscription %>
|
|
55
|
-
<%= link_to '<i class="fa fa-random"></i> Transfer Ownership'.html_safe, kaui_engine.transfer_bundle_path(bundle.bundle_id) %>
|
|
56
|
-
<% end %>
|
|
57
|
-
<% if can? :pause_resume, Kaui::Subscription %>
|
|
58
|
-
<%= link_to '<i class="fa fa-pause"></i> Pause / resume'.html_safe, kaui_engine.pause_resume_bundle_path(:account_id => bundle.account_id, :id => bundle.bundle_id) %>
|
|
59
|
-
<% end %>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
<% end %>
|
|
63
38
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<% if idx < @bundles.size - 1 %>
|
|
75
|
-
<hr class="breathe"/>
|
|
76
|
-
<% end %>
|
|
77
|
-
<% end %>
|
|
78
|
-
|
|
79
|
-
<div class="text-right" style="margin-top: 20px;">
|
|
80
|
-
<%= link_to 'First', account_bundles_path(page: 1), class: "btn btn-custom #{'disabled' if @page == 1}" %>
|
|
81
|
-
<%= link_to 'Previous', account_bundles_path(page: @page - 1), class: "btn btn-custom #{'disabled' if @page == 1}" %>
|
|
82
|
-
|
|
83
|
-
<% if @total_pages <= 10 %>
|
|
84
|
-
<% (1..@total_pages).each do |num| %>
|
|
85
|
-
<%= link_to num, account_bundles_path(page: num), class: paging_button_class(num, @page) %>
|
|
86
|
-
<% end %>
|
|
87
|
-
<% else %>
|
|
88
|
-
<%= link_to 1, account_bundles_path(page: 1), class: paging_button_class(1, @page) %>
|
|
89
|
-
<% if @page < 5 %>
|
|
90
|
-
<% (2..5).each do |num| %>
|
|
91
|
-
<%= link_to num, account_bundles_path(page: num), class: paging_button_class(num, @page) %>
|
|
39
|
+
|
|
40
|
+
<div class="text-right d-flex justify-content-end pagination" style="">
|
|
41
|
+
<%= link_to account_bundles_path(page: @page - 1), class: "btn btn-custom #{'disabled' if @page == 1}" do %>
|
|
42
|
+
<%= render "kaui/components/button/button", {
|
|
43
|
+
label: "Previous",
|
|
44
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
45
|
+
type: "button",
|
|
46
|
+
html_class: "kaui-button custom-hover"
|
|
47
|
+
} %>
|
|
92
48
|
<% end %>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
49
|
+
|
|
50
|
+
<% if @total_pages <= 10 %>
|
|
51
|
+
<% (1..@total_pages).each do |num| %>
|
|
52
|
+
<%= link_to num, account_bundles_path(page: num), class: paging_button_class(num, @page) %>
|
|
53
|
+
<% end %>
|
|
54
|
+
<% else %>
|
|
55
|
+
<%= link_to 1, account_bundles_path(page: 1), class: paging_button_class(1, @page) %>
|
|
56
|
+
<% if @page < 5 %>
|
|
57
|
+
<% (2..5).each do |num| %>
|
|
58
|
+
<%= link_to num, account_bundles_path(page: num), class: paging_button_class(num, @page) %>
|
|
59
|
+
<% end %>
|
|
60
|
+
<%= '...' %>
|
|
61
|
+
<% elsif @page > @total_pages - 4 %>
|
|
62
|
+
<%= '...' %>
|
|
63
|
+
<% (@total_pages-4..@total_pages-1).each do |num| %>
|
|
64
|
+
<%= link_to num, account_bundles_path(page: num), class: paging_button_class(num, @page) %>
|
|
65
|
+
<% end %>
|
|
66
|
+
<% else %>
|
|
67
|
+
<%= '...' %>
|
|
68
|
+
<% (@page-1..@page+1).each do |num| %>
|
|
69
|
+
<%= link_to num, account_bundles_path(page: num), class: paging_button_class(num, @page) %>
|
|
70
|
+
<% end %>
|
|
71
|
+
<%= '...' %>
|
|
72
|
+
<% end %>
|
|
73
|
+
<%= link_to @total_pages, account_bundles_path(page: @total_pages), class: paging_button_class(@total_pages, @page) %>
|
|
98
74
|
<% end %>
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
75
|
+
<%= link_to account_bundles_path(page: @page + 1), class: "btn btn-custom #{'disabled' if @page == @total_pages}" do %>
|
|
76
|
+
<%= render "kaui/components/button/button", {
|
|
77
|
+
label: "Next",
|
|
78
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
79
|
+
type: "button",
|
|
80
|
+
html_class: "kaui-button custom-hover"
|
|
81
|
+
} %>
|
|
103
82
|
<% end %>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
<%= link_to 'Next', account_bundles_path(page: @page + 1), class: "btn btn-custom #{'disabled' if @page == @total_pages}" %>
|
|
110
|
-
<%= link_to 'Last', account_bundles_path(page: @total_pages), class: "btn btn-custom #{'disabled' if @page == @total_pages}" %>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
111
87
|
</div>
|
|
112
|
-
|
|
113
|
-
</div>
|
|
88
|
+
</div>
|
|
@@ -1,42 +1,77 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
<div class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
<div class="register kaui-subscription-new">
|
|
2
|
+
<div class="">
|
|
3
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
4
|
+
<h5 class="add-account-title border-bottom pb-3 mb-3">
|
|
5
|
+
<span class="icon-container">
|
|
6
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path d="M9.16675 11.6665H13.3334M6.66675 11.6665H6.67423M10.8334 14.9998H6.66675M13.3334 14.9998H13.3259" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M13.75 1.6665V4.99984M6.25 1.6665V4.99984" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M15.8333 3.3335H4.16667C3.24619 3.3335 2.5 4.07969 2.5 5.00016V16.6668C2.5 17.5873 3.24619 18.3335 4.16667 18.3335H15.8333C16.7538 18.3335 17.5 17.5873 17.5 16.6668V5.00016C17.5 4.07969 16.7538 3.3335 15.8333 3.3335Z" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
<path d="M2.5 8.3335H17.5" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11
|
+
</svg>
|
|
12
|
+
</span>
|
|
13
|
+
<% if @base_subscription.state == 'BLOCKED' %>
|
|
14
|
+
Resume
|
|
15
|
+
<% else %>
|
|
16
|
+
Pause / Resume
|
|
17
|
+
<% end %>
|
|
18
|
+
</h5>
|
|
19
|
+
<%= form_tag do_pause_resume_bundle_path(:account_id => @account.account_id, :id => @bundle.bundle_id), :class => 'form-horizontal', :method => :put do %>
|
|
20
|
+
<% if @base_subscription.state != 'BLOCKED' %>
|
|
21
|
+
<div class="form-group d-flex pb-3" id="form_effective_from_date">
|
|
22
|
+
<%= label_tag :pause_requested_date, 'Pause date', :class => 'col-sm-3 control-label' %>
|
|
23
|
+
<div class="col-sm-9">
|
|
24
|
+
<div class="custom-date-input-wrapper kaui-button custom-hover">
|
|
25
|
+
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
26
|
+
<path d="M14.9167 12.5V18.3333M17.8333 15.4167H12" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
27
|
+
<path d="M14.0833 1.66675V5.00008M6.58325 1.66675V5.00008" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
28
|
+
<path d="M17.8333 10.8333V4.99992C17.8333 4.07944 17.0871 3.33325 16.1666 3.33325H4.49992C3.57944 3.33325 2.83325 4.07944 2.83325 4.99992V16.6666C2.83325 17.5871 3.57944 18.3333 4.49992 18.3333H10.3333" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
29
|
+
<path d="M2.83325 8.33325H17.8333" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
30
|
+
</svg>
|
|
31
|
+
<input class="form-control" name="pause_requested_date" type="text" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-today-highlight="true">
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
17
34
|
</div>
|
|
35
|
+
<% end %>
|
|
36
|
+
<div class="form-group d-flex pb-3" id="form_effective_from_date">
|
|
37
|
+
<%= label_tag :resume_requested_date, 'Resume date', :class => 'col-sm-3 control-label' %>
|
|
38
|
+
<div class="col-sm-9">
|
|
39
|
+
<div class="custom-date-input-wrapper kaui-button custom-hover">
|
|
40
|
+
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
41
|
+
<path d="M14.9167 12.5V18.3333M17.8333 15.4167H12" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
42
|
+
<path d="M14.0833 1.66675V5.00008M6.58325 1.66675V5.00008" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
43
|
+
<path d="M17.8333 10.8333V4.99992C17.8333 4.07944 17.0871 3.33325 16.1666 3.33325H4.49992C3.57944 3.33325 2.83325 4.07944 2.83325 4.99992V16.6666C2.83325 17.5871 3.57944 18.3333 4.49992 18.3333H10.3333" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
44
|
+
<path d="M2.83325 8.33325H17.8333" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
45
|
+
</svg>
|
|
46
|
+
<input class="form-control" name="resume_requested_date" type="text" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-today-highlight="true">
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="form-group d-flex pb-3 border-bottom mb-3">
|
|
51
|
+
<%= label_tag :comment, 'Comment', :class => 'col-sm-3 control-label' %>
|
|
52
|
+
<div class="col-sm-9">
|
|
53
|
+
<%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="form-group d-flex justify-content-end pb-3">
|
|
57
|
+
<%= render "kaui/components/button/button", {
|
|
58
|
+
label: 'Close',
|
|
59
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
60
|
+
type: "button",
|
|
61
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
62
|
+
html_options: {
|
|
63
|
+
id: "closeButton",
|
|
64
|
+
onclick: "window.history.back();"
|
|
65
|
+
}
|
|
66
|
+
} %>
|
|
67
|
+
<%= render "kaui/components/button/button", {
|
|
68
|
+
label: @base_subscription.state == 'BLOCKED' ? 'Resume' : 'Pause / Resume',
|
|
69
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
70
|
+
type: "submit",
|
|
71
|
+
html_class: "kaui-dropdown custom-hover"
|
|
72
|
+
} %>
|
|
18
73
|
</div>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<%= label_tag :resume_requested_date, 'Resume date', :class => 'col-sm-2 control-label' %>
|
|
22
|
-
<div class="col-sm-3">
|
|
23
|
-
<input class="form-control" name="resume_requested_date" type="text" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-today-highlight="true">
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="form-group">
|
|
27
|
-
<%= label_tag :comment, 'Comment', :class => 'col-sm-2 control-label' %>
|
|
28
|
-
<div class="col-sm-10">
|
|
29
|
-
<%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="form-group">
|
|
33
|
-
<div class="col-sm-offset-2 col-sm-10">
|
|
34
|
-
<%= submit_tag @base_subscription.state == 'BLOCKED' ? 'Resume' : 'Pause / Resume', :class => 'btn btn-default' %>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<% end %>
|
|
38
|
-
|
|
74
|
+
<% end %>
|
|
75
|
+
</div>
|
|
39
76
|
</div>
|
|
40
|
-
|
|
41
|
-
</div>
|
|
42
77
|
</div>
|