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,10 +1,17 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
<div class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<div class="register process-refund-modal">
|
|
2
|
+
<div class="">
|
|
3
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
4
|
+
<h5 class="process-refund-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="M16.6667 3.33301H3.33341C2.41294 3.33301 1.66675 4.0792 1.66675 4.99967V14.9997C1.66675 15.9202 2.41294 16.6663 3.33341 16.6663H16.6667C17.5872 16.6663 18.3334 15.9202 18.3334 14.9997V4.99967C18.3334 4.0792 17.5872 3.33301 16.6667 3.33301Z" stroke="#535862" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M8.33325 13.333H9.58325M12.0833 13.333H14.9999" stroke="#535862" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M1.66675 7.5H18.3334" stroke="#535862" stroke-width="1.5" stroke-linecap="square" stroke-linejoin="round"/>
|
|
10
|
+
</svg>
|
|
11
|
+
</span>
|
|
12
|
+
Process refund
|
|
13
|
+
</h5>
|
|
14
|
+
<%= render 'form' %>
|
|
15
|
+
</div>
|
|
7
16
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
17
|
</div>
|
|
@@ -1,20 +1,107 @@
|
|
|
1
|
-
<%= form_for @role_definition, :
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</div>
|
|
1
|
+
<%= form_for @role_definition, html: { class: 'form-horizontal' } do |f| %>
|
|
2
|
+
<div class="form-group d-flex pb-3">
|
|
3
|
+
<%= f.label :role, 'Role name', class: 'col-sm-3 control-label' %>
|
|
4
|
+
<div class="col-sm-9">
|
|
5
|
+
<%= f.text_field :role, class: 'form-control' %>
|
|
7
6
|
</div>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<div class="col-sm-offset-3 col-sm-9">
|
|
17
|
-
<%= submit_tag 'Save', :class => 'btn btn-default' %>
|
|
18
|
-
</div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="form-group d-flex pb-3 premissions-group">
|
|
9
|
+
<%= f.label :permissions, 'Permissions', class: 'col-sm-3 control-label' %>
|
|
10
|
+
<div class="col-sm-9">
|
|
11
|
+
<%= f.hidden_field :permissions, id: "permissions_hidden" %>
|
|
12
|
+
|
|
13
|
+
<div id="chip-wrapper" class="form-control d-flex flex-wrap align-items-center p-2 chip-input-container" style="min-height: 2.625rem; border: 0.0625rem solid #ccc; border-radius: 0.25rem;">
|
|
14
|
+
<input type="text" id="chip-input" style="border: none; outline: none; flex: 1;" />
|
|
19
15
|
</div>
|
|
16
|
+
|
|
17
|
+
<p class="help-block">
|
|
18
|
+
Comma separated, e.g. account:create, entitlement:change_plan, invoice:credit
|
|
19
|
+
</p>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<div class="form-group d-flex justify-content-end pt-3 border-top mb-3">
|
|
25
|
+
<%= render "kaui/components/button/button", {
|
|
26
|
+
label: 'Close',
|
|
27
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
28
|
+
type: "button",
|
|
29
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
30
|
+
html_options: {
|
|
31
|
+
id: "closeButton",
|
|
32
|
+
onclick: "window.history.back();"
|
|
33
|
+
}
|
|
34
|
+
} %>
|
|
35
|
+
|
|
36
|
+
<%= render "kaui/components/button/button", {
|
|
37
|
+
label: 'Save User',
|
|
38
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
39
|
+
type: "submit",
|
|
40
|
+
html_class: "kaui-dropdown custom-hover",
|
|
41
|
+
} %>
|
|
42
|
+
</div>
|
|
20
43
|
<% end %>
|
|
44
|
+
|
|
45
|
+
<%= javascript_tag do %>
|
|
46
|
+
document.addEventListener('DOMContentLoaded', function () {
|
|
47
|
+
const input = document.getElementById('chip-input');
|
|
48
|
+
const wrapper = document.getElementById('chip-wrapper');
|
|
49
|
+
const hidden = document.getElementById('permissions_hidden');
|
|
50
|
+
let permissions = [];
|
|
51
|
+
|
|
52
|
+
function renderChips() {
|
|
53
|
+
// Remove all chips except the input box
|
|
54
|
+
[...wrapper.querySelectorAll('.chip')].forEach(chip => chip.remove());
|
|
55
|
+
|
|
56
|
+
permissions.forEach((perm) => {
|
|
57
|
+
const chip = document.createElement('div');
|
|
58
|
+
chip.className = 'chip badge bg-secondary text-white d-inline-flex align-items-center px-2 py-1 me-1 mb-1';
|
|
59
|
+
chip.textContent = perm;
|
|
60
|
+
|
|
61
|
+
const closeBtn = document.createElement('span');
|
|
62
|
+
closeBtn.className = 'remove-chip ms-1 d-flex align-items-center';
|
|
63
|
+
closeBtn.style.cursor = 'pointer';
|
|
64
|
+
closeBtn.innerHTML = `
|
|
65
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
66
|
+
<path d="M8.50049 1.5L1.50049 8.50001M1.50049 1.5L8.50049 8.50001" stroke="#A4A7AE" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
|
67
|
+
</svg>
|
|
68
|
+
`;
|
|
69
|
+
closeBtn.onclick = () => {
|
|
70
|
+
permissions = permissions.filter(p => p !== perm);
|
|
71
|
+
renderChips();
|
|
72
|
+
updateHiddenField();
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
chip.appendChild(closeBtn);
|
|
76
|
+
wrapper.insertBefore(chip, input);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function updateHiddenField() {
|
|
81
|
+
hidden.value = permissions.join(',');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function addPermission(value) {
|
|
85
|
+
const cleaned = value.trim().replace(/,$/, '');
|
|
86
|
+
if (cleaned && !permissions.includes(cleaned)) {
|
|
87
|
+
permissions.push(cleaned);
|
|
88
|
+
renderChips();
|
|
89
|
+
updateHiddenField();
|
|
90
|
+
}
|
|
91
|
+
input.value = '';
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
input.addEventListener('keydown', function (e) {
|
|
95
|
+
if (e.key === 'Enter' || e.key === ',') {
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
addPermission(input.value);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
input.addEventListener('blur', function () {
|
|
102
|
+
if (input.value.trim() !== '') {
|
|
103
|
+
addPermission(input.value);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
<% end %>
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
<div class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<div class="register kaui-container kaui-role-definitions-new">
|
|
2
|
+
<div class="">
|
|
3
|
+
<div class="" style="max-width: 37.5rem; margin: 0 auto;">
|
|
4
|
+
<h5 class="new-role-definition-title border-bottom">
|
|
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="M13.3334 5.83333C13.3334 7.67428 11.841 9.16667 10.0001 9.16667C8.15913 9.16667 6.66675 7.67428 6.66675 5.83333C6.66675 3.99238 8.15913 2.5 10.0001 2.5C11.841 2.5 13.3334 3.99238 13.3334 5.83333Z" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M15.8334 15.8337C15.8334 13.5325 13.9679 11.667 11.6667 11.667H8.33341C6.03223 11.667 4.16675 13.5325 4.16675 15.8337V17.5003H15.8334V15.8337Z" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
</svg>
|
|
10
|
+
</span>
|
|
11
|
+
Add New Role Definition
|
|
12
|
+
</h5>
|
|
13
|
+
<%= render 'form' %>
|
|
14
|
+
</div>
|
|
7
15
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
16
|
</div>
|
|
17
|
+
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
<%= form_for resource, :
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<div class="col-sm-10">
|
|
11
|
-
<%= f.password_field :password, :class => 'form-control' %>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="form-group">
|
|
15
|
-
<div class="col-sm-offset-2 col-sm-10">
|
|
16
|
-
<%= f.submit 'Sign in', :class => 'btn btn-default' %>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<% end %>
|
|
1
|
+
<%= form_for resource, as: resource_name, url: session_path(resource_name), html: { class: "" } do |f| %>
|
|
2
|
+
|
|
3
|
+
<%= render "kaui/components/form_input/form_input", f: f, field: :kb_username, label: "Admin Username", placeholder: "Enter your admin username" %>
|
|
4
|
+
<%= render "kaui/components/form_password/form_password", f: f, field: :password, label: "Admin Password", placeholder: "*****" %>
|
|
5
|
+
|
|
6
|
+
<div class="d-grid mt-4">
|
|
7
|
+
<%= render "kaui/components/button/button", label: "Sign in", variant: "btn-primary custom-hover", type: "submit", html_class: "w-100" %>
|
|
8
|
+
</div>
|
|
9
|
+
<% end %>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<div class="auth-form-container">
|
|
2
|
+
<div class="auth-form-background" style="background-image: url(<%= asset_path('kaui/sign_in_background.svg') %>)"></div>
|
|
3
|
+
<div class="auth-form-content">
|
|
4
|
+
<div class="text-center mb-4">
|
|
5
|
+
<%= render "kaui/components/logo/logo" %>
|
|
6
|
+
<h2 class="text-black-900 mt-4 mb-0 fs-2 fw-600">Log in to your account</h2>
|
|
7
|
+
<p class="text-tertiary mt-2 text-center fs-6 fw-normal">Welcome back! Please enter your details.</p>
|
|
8
|
+
</div>
|
|
9
|
+
<%= render 'form' %>
|
|
7
10
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
+
</div>
|
|
@@ -1,46 +1,76 @@
|
|
|
1
|
-
<div class="modal fade" id="cancel_subscription_by_date_modal" tabindex="-1" role="dialog">
|
|
1
|
+
<div class="modal fade cancel_subscription_by_date_modal" id="cancel_subscription_by_date_modal" tabindex="-1" role="dialog">
|
|
2
2
|
<div class="modal-dialog" role="document">
|
|
3
|
-
<div class="modal-content
|
|
4
|
-
<div>
|
|
5
|
-
<
|
|
6
|
-
|
|
3
|
+
<div class="modal-content">
|
|
4
|
+
<div class="modal-header">
|
|
5
|
+
<h5 class="modal-title d-flex align-items-center gap-3">
|
|
6
|
+
<span class="icon-container">
|
|
7
|
+
<%= image_tag("kaui/subscription/cancel.svg" , width: 20, height: 20) %>
|
|
8
|
+
</span>
|
|
9
|
+
Cancel a Subscription Given a Date
|
|
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>
|
|
15
|
+
</button>
|
|
7
16
|
</div>
|
|
8
|
-
<div class="modal-body">
|
|
9
17
|
<%= form_for :subscription, :url => '' , :method => :delete, :html => {:class => 'form-horizontal', :id => 'cancel_subscription_form'} do |f| %>
|
|
10
|
-
<div class="
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
<div class="modal-body">
|
|
19
|
+
<div class="form-group d-flex pb-3">
|
|
20
|
+
<%= label_tag :resume_requested_date, 'Date', :class => 'col-sm-3 control-label field-label' %>
|
|
21
|
+
<div class="col-sm-9">
|
|
22
|
+
<div class="custom-date-input-wrapper kaui-button custom-hover">
|
|
23
|
+
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
24
|
+
<path d="M14.9167 12.5V18.3333M17.8333 15.4167H12" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
25
|
+
<path d="M14.0833 1.66675V5.00008M6.58325 1.66675V5.00008" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
26
|
+
<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"/>
|
|
27
|
+
<path d="M2.83325 8.33325H17.8333" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
28
|
+
</svg>
|
|
29
|
+
<input class="form-control" value="<%=Date.parse(Time.now.to_s).to_s%>" name="requested_date" type="text" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-today-highlight="true">
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="form-group d-flex">
|
|
34
|
+
<div class="col-sm-3"></div>
|
|
35
|
+
<div class="checkbox col-sm-9">
|
|
36
|
+
<%= label_tag :use_requested_date_for_billing do %>
|
|
37
|
+
<input type="checkbox" class="form-check-input" id="is_requested_date_for_billing">
|
|
38
|
+
Use requested date for billing
|
|
39
|
+
<input type="hidden" id="use_requested_date_for_billing" name="use_requested_date_for_billing" value="0">
|
|
40
|
+
<% end %>
|
|
41
|
+
</div>
|
|
24
42
|
</div>
|
|
25
|
-
</div>
|
|
26
43
|
</div>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<div
|
|
30
|
-
|
|
44
|
+
<div class="notice-worning">
|
|
45
|
+
<%= image_tag("kaui/warning.png", width: 35, height: 35) %>
|
|
46
|
+
<div>
|
|
47
|
+
<strong>Notice</strong>
|
|
48
|
+
<%= raw t('views.subscriptions.requested_date_for_billing_notice') %>
|
|
31
49
|
</div>
|
|
32
50
|
</div>
|
|
51
|
+
<div class="modal-footer">
|
|
52
|
+
<%= render "kaui/components/button/button", {
|
|
53
|
+
label: 'Close',
|
|
54
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
55
|
+
type: "button",
|
|
56
|
+
html_class: "kaui-button custom-hover",
|
|
57
|
+
html_options: {
|
|
58
|
+
data: {
|
|
59
|
+
bs_dismiss: "modal"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
} %>
|
|
63
|
+
<%= render "kaui/components/button/button", {
|
|
64
|
+
label: 'Save Subscription',
|
|
65
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
66
|
+
type: "submit",
|
|
67
|
+
html_class: "kaui-dropdown custom-hover"
|
|
68
|
+
} %>
|
|
69
|
+
</div>
|
|
33
70
|
<% end %>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<strong>Notice</strong>
|
|
38
|
-
<%= raw t('views.subscriptions.requested_date_for_billing_notice') %>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</div><!-- /.modal-content -->
|
|
42
|
-
</div><!-- /.modal-dialog -->
|
|
43
|
-
</div><!-- /.modal -->
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
44
74
|
|
|
45
75
|
<%= javascript_tag do %>
|
|
46
76
|
$(document).ready(function() {
|
|
@@ -1,56 +1,78 @@
|
|
|
1
1
|
<%= form_for @subscription, :url => subscription_path(@subscription.subscription_id), :html => {:method => :put, :class => 'form-horizontal'} do |f| %>
|
|
2
|
-
<div class="form-group">
|
|
2
|
+
<div class="form-group d-flex pb-3">
|
|
3
3
|
<%= label_tag :plan_name, 'New plan', :class => 'col-sm-3 control-label' %>
|
|
4
4
|
<div class="col-sm-9">
|
|
5
5
|
<%= select_tag :plan_name, options_for_select(@plans, @subscription.plan_name.gsub(/ *-\d+$/, '')), :class => 'form-control' %>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
<div class="form-group">
|
|
9
|
+
<div class="form-group d-flex pb-3 border-bottom mb-3">
|
|
10
10
|
<%= label_tag :price_override, 'Price Override', :class => 'col-sm-3 control-label' %>
|
|
11
11
|
<div class="col-sm-9">
|
|
12
12
|
<%= number_field_tag :price_override, nil, min: 0, :step => :any, :class => 'form-control' %>
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
|
-
<div class="form-group">
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
<div class="form-group d-flex pb-3" id="radio_group">
|
|
16
|
+
<%= label_tag :type_change, 'Type', :class => 'col-sm-3 control-label' %>
|
|
17
|
+
<div class="col-sm-offset-2 col-sm-9">
|
|
18
|
+
<div class="toggle-segment">
|
|
19
|
+
<div class="radio">
|
|
20
|
+
<%= label_tag 'type_change_default' do %>
|
|
21
|
+
<%= radio_button_tag :type_change, 'DEFAULT', true, id: 'type_change_default' %>
|
|
20
22
|
Default policy
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
<% end %>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="radio">
|
|
27
|
+
<%= label_tag 'type_change_policy' do %>
|
|
28
|
+
<%= radio_button_tag :type_change, 'POLICY', false, id: 'type_change_policy' %>
|
|
26
29
|
Specify Policy
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
<% end %>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="radio">
|
|
34
|
+
<%= label_tag 'type_change_date' do %>
|
|
35
|
+
<%= radio_button_tag :type_change, 'DATE', false, id: 'type_change_date' %>
|
|
32
36
|
Specify a date
|
|
33
|
-
|
|
37
|
+
<% end %>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
34
40
|
</div>
|
|
35
41
|
</div>
|
|
36
42
|
</div>
|
|
37
|
-
|
|
43
|
+
|
|
44
|
+
<div class="form-group pb-3 border-bottom mb-3", id="form_requested_date" >
|
|
38
45
|
<%= label_tag :requested_date, 'Change Date', :class => 'col-sm-3 control-label' %>
|
|
39
46
|
<div class="col-sm-9">
|
|
40
47
|
<input class="form-control" value="<%=Date.parse(Time.now.to_s).to_s%>" name="requested_date" type="text" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-today-highlight="true">
|
|
41
48
|
</div>
|
|
42
49
|
</div>
|
|
43
|
-
<div class="form-group", id="form_policy">
|
|
50
|
+
<div class="form-group pb-3 border-bottom mb-3", id="form_policy">
|
|
44
51
|
<%= label_tag :policy, 'Policy', :class => 'col-sm-3 control-label' %>
|
|
45
52
|
<div class="col-sm-9">
|
|
46
53
|
<%= select_tag :policy, options_for_select(['', 'IMMEDIATE', 'END_OF_TERM']), :class => 'form-control' %>
|
|
47
|
-
<p class="help-block">Leave blank for default</p>
|
|
48
54
|
</div>
|
|
49
55
|
</div>
|
|
50
|
-
<div class="form-group">
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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: 'Save Subscription',
|
|
69
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
70
|
+
type: "submit",
|
|
71
|
+
html_class: "kaui-dropdown custom-hover",
|
|
72
|
+
html_options: {
|
|
73
|
+
id: "saveButton"
|
|
74
|
+
}
|
|
75
|
+
} %>
|
|
54
76
|
</div>
|
|
55
77
|
<% end %>
|
|
56
78
|
|
|
@@ -58,22 +80,31 @@
|
|
|
58
80
|
|
|
59
81
|
function onTypeChange() {
|
|
60
82
|
var value = $("input[type=radio]:checked").val();
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
83
|
+
var radioGroupDiv = $("#radio_group");
|
|
84
|
+
|
|
85
|
+
if (value == "DEFAULT") {
|
|
86
|
+
radioGroupDiv.addClass("border-bottom mb-3");
|
|
87
|
+
$("#form_requested_date").hide();
|
|
88
|
+
$("#form_policy").hide();
|
|
89
|
+
$("#form_requested_date, #form_policy").removeClass("d-flex");
|
|
90
|
+
} else if (value == "POLICY") {
|
|
91
|
+
radioGroupDiv.removeClass("border-bottom mb-3");
|
|
92
|
+
$("#form_requested_date").hide();
|
|
93
|
+
$("#form_policy").show().addClass("d-flex");
|
|
94
|
+
$("#form_requested_date").removeClass("d-flex");
|
|
95
|
+
} else if (value == "DATE") {
|
|
96
|
+
radioGroupDiv.removeClass("border-bottom mb-3");
|
|
97
|
+
$("#form_policy").hide();
|
|
98
|
+
$("#form_requested_date").show().addClass("d-flex");
|
|
99
|
+
$("#form_policy").removeClass("d-flex");
|
|
70
100
|
}
|
|
71
101
|
}
|
|
72
102
|
|
|
103
|
+
|
|
73
104
|
$(document).ready(function() {
|
|
74
105
|
onTypeChange();
|
|
75
106
|
$( "input[type=radio]").on("click", function() {
|
|
76
107
|
onTypeChange();
|
|
77
108
|
});
|
|
78
109
|
});
|
|
79
|
-
<% end %>
|
|
110
|
+
<% end %>
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
<% if @subscription.product_category == 'ADD_ON' %>
|
|
7
7
|
<%= hidden_field_tag :base_product_name, @base_product_name %>
|
|
8
8
|
<% elsif @subscription.product_category == 'BASE' %>
|
|
9
|
-
<div class="form-group">
|
|
10
|
-
<%= f.label :bundle_external_key, 'Bundle Key', :class => 'col-sm-
|
|
11
|
-
<div class="col-sm-
|
|
9
|
+
<div class="form-group d-flex pb-3">
|
|
10
|
+
<%= f.label :bundle_external_key, 'Bundle Key', :class => 'col-sm-3 control-label' %>
|
|
11
|
+
<div class="col-sm-9">
|
|
12
12
|
<%= f.text_field :bundle_external_key, :class => 'form-control', :id => 'bundle_external_key' %>
|
|
13
13
|
<div class="subscription_bundle_external_key_invalid_msg text-danger">
|
|
14
14
|
Warning! External key already in use.
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
<% end %>
|
|
19
19
|
|
|
20
|
-
<div class="form-group">
|
|
21
|
-
<%= f.label :subscription_external_key, 'Subscription Key', :class => 'col-sm-
|
|
22
|
-
<div class="col-sm-
|
|
20
|
+
<div class="form-group d-flex pb-3">
|
|
21
|
+
<%= f.label :subscription_external_key, 'Subscription Key', :class => 'col-sm-3 control-label' %>
|
|
22
|
+
<div class="col-sm-9">
|
|
23
23
|
<%= f.text_field :external_key, :class => 'form-control', :id => 'subscription_external_key' %>
|
|
24
24
|
<div class="subscription_external_key_invalid_msg text-danger">
|
|
25
25
|
Warning! External key already in use.
|
|
@@ -28,44 +28,75 @@
|
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
<div class="form-group">
|
|
32
|
-
<%= label_tag :plan_name, 'Plan', :class => 'col-sm-
|
|
33
|
-
<div class="col-sm-
|
|
31
|
+
<div class="form-group d-flex pb-3">
|
|
32
|
+
<%= label_tag :plan_name, 'Plan', :class => 'col-sm-3 control-label' %>
|
|
33
|
+
<div class="col-sm-9">
|
|
34
34
|
<%= select_tag :plan_name, options_for_select(@plans), :class => 'form-control' %>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
|
-
<div class="form-group">
|
|
38
|
-
<%= label_tag :price_override, 'Price Override', :class => 'col-sm-
|
|
39
|
-
<div class="col-sm-
|
|
37
|
+
<div class="form-group d-flex pb-3 border-bottom mb-3">
|
|
38
|
+
<%= label_tag :price_override, 'Price Override', :class => 'col-sm-3 control-label' %>
|
|
39
|
+
<div class="col-sm-9">
|
|
40
40
|
<%= number_field_tag :price_override, nil, :step => :any, :min => 0, :class => 'form-control' %>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
|
-
<div class="form-group">
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
<div class="form-group d-flex pb-3">
|
|
44
|
+
<%= label_tag :type_change, 'Type', :class => 'col-sm-3 control-label' %>
|
|
45
|
+
<div class="col-sm-offset-2 col-sm-9">
|
|
46
|
+
<div class="toggle-segment">
|
|
47
|
+
<div class="radio">
|
|
48
|
+
<%= label_tag 'type_change_imm' do %>
|
|
49
|
+
<%= radio_button_tag :type_change, 'IMM', true, id: 'type_change_imm' %>
|
|
48
50
|
Immediate Creation
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
<% end %>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div class="radio">
|
|
55
|
+
<%= label_tag 'type_change_date' do %>
|
|
56
|
+
<%= radio_button_tag :type_change, 'DATE', false, id: 'type_change_date' %>
|
|
54
57
|
Specify a date
|
|
55
|
-
|
|
58
|
+
<% end %>
|
|
59
|
+
</div>
|
|
56
60
|
</div>
|
|
61
|
+
|
|
57
62
|
</div>
|
|
58
63
|
</div>
|
|
59
|
-
<div
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
<div id="form_requested_date" style="dispay: none;">
|
|
65
|
+
<div class="form-group d-flex pb-3">
|
|
66
|
+
<%= label_tag :requested_date, 'Date', :class => 'col-sm-3 control-label' %>
|
|
67
|
+
<div class="col-sm-9">
|
|
68
|
+
<div class="custom-date-input-wrapper kaui-button custom-hover">
|
|
69
|
+
<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
70
|
+
<path d="M14.9167 12.5V18.3333M17.8333 15.4167H12" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
71
|
+
<path d="M14.0833 1.66675V5.00008M6.58325 1.66675V5.00008" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
72
|
+
<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"/>
|
|
73
|
+
<path d="M2.83325 8.33325H17.8333" stroke="#A4A7AE" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
74
|
+
</svg>
|
|
75
|
+
<input class="form-control" value="<%=Date.parse(Time.now.to_s).to_s%>" name="requested_date" type="text" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-date-today-highlight="true">
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
63
78
|
</div>
|
|
64
79
|
</div>
|
|
65
|
-
<div class="form-group">
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
80
|
+
<div class="form-group d-flex justify-content-end pt-3 border-top">
|
|
81
|
+
<%= render "kaui/components/button/button", {
|
|
82
|
+
label: 'Close',
|
|
83
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
84
|
+
type: "button",
|
|
85
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
86
|
+
html_options: {
|
|
87
|
+
id: "closeButton",
|
|
88
|
+
onclick: "window.history.back();"
|
|
89
|
+
}
|
|
90
|
+
} %>
|
|
91
|
+
<%= render "kaui/components/button/button", {
|
|
92
|
+
label: 'Save Subscription',
|
|
93
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
94
|
+
type: "submit",
|
|
95
|
+
html_class: "kaui-dropdown custom-hover",
|
|
96
|
+
html_options: {
|
|
97
|
+
id: "saveButton"
|
|
98
|
+
}
|
|
99
|
+
} %>
|
|
69
100
|
</div>
|
|
70
101
|
<% end %>
|
|
71
102
|
|
|
@@ -87,4 +118,4 @@ $(document).ready(function() {
|
|
|
87
118
|
onTypeChange();
|
|
88
119
|
});
|
|
89
120
|
});
|
|
90
|
-
<% end %>
|
|
121
|
+
<% end %>
|