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,38 +1,55 @@
|
|
|
1
1
|
<%= form_for @credit, :url => {:action => :create}, :html => {:class => 'form-horizontal'} do |f| %>
|
|
2
2
|
<%= f.hidden_field :invoice_id %>
|
|
3
3
|
|
|
4
|
-
<div class="form-group">
|
|
5
|
-
<%= f.label :amount, 'Amount', :
|
|
6
|
-
<div class="
|
|
7
|
-
<%= f.number_field :amount, :
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<div class="form-group d-flex pb-3">
|
|
5
|
+
<%= f.label :amount, 'Amount', class: 'col-sm-3 control-label' %>
|
|
6
|
+
<div class="input-group">
|
|
7
|
+
<%= f.number_field :amount, step: :any, id: 'charge_amount', class: 'form-control', placeholder: '$ 0.00' %>
|
|
8
|
+
|
|
9
|
+
<div>
|
|
10
|
+
<% if @invoice.present? %>
|
|
11
|
+
<span class="input-group-text"><%= @invoice.currency %></span>
|
|
12
|
+
<%= f.hidden_field :currency %>
|
|
13
|
+
<% else %>
|
|
14
|
+
<%= f.select :currency, currencies, {}, class: 'form-control currency-select' %>
|
|
15
|
+
<% end %>
|
|
16
|
+
</div>
|
|
11
17
|
</div>
|
|
18
|
+
<% if @invoice.present? %>
|
|
19
|
+
<p class="help-block mt-1">Currency: <%= @invoice.currency %></p>
|
|
20
|
+
<% end %>
|
|
12
21
|
</div>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<div class="col-sm-10">
|
|
17
|
-
<%= f.select :currency, currencies, {}, :class => 'form-control' %>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<% end %>
|
|
21
|
-
<div class="form-group">
|
|
22
|
-
<%= label_tag :reason, 'Reason', :class => 'col-sm-2 control-label' %>
|
|
23
|
-
<div class="col-sm-10">
|
|
22
|
+
<div class="form-group d-flex pb-3">
|
|
23
|
+
<%= label_tag :reason, 'Reason', :class => 'col-sm-3 control-label' %>
|
|
24
|
+
<div class="input-group">
|
|
24
25
|
<%= select_tag :reason, options_for_select(Kaui.credit_reason_codes), :class => 'form-control' %>
|
|
25
26
|
</div>
|
|
26
27
|
</div>
|
|
27
|
-
<div class="form-group">
|
|
28
|
-
<%= label_tag :comment, 'Comment', :class => 'col-sm-
|
|
29
|
-
<div class="
|
|
28
|
+
<div class="form-group d-flex pb-3 border-bottom mb-3">
|
|
29
|
+
<%= label_tag :comment, 'Comment', :class => 'col-sm-3 control-label' %>
|
|
30
|
+
<div class="input-group">
|
|
30
31
|
<%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
|
|
31
32
|
</div>
|
|
32
33
|
</div>
|
|
33
|
-
<div class="form-group">
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
<div class="form-group d-flex justify-content-end pb-3">
|
|
35
|
+
<%= render "kaui/components/button/button", {
|
|
36
|
+
label: 'Close',
|
|
37
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
38
|
+
type: "button",
|
|
39
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
40
|
+
html_options: {
|
|
41
|
+
id: "closeButton",
|
|
42
|
+
onclick: "window.history.back();"
|
|
43
|
+
}
|
|
44
|
+
} %>
|
|
45
|
+
<%= render "kaui/components/button/button", {
|
|
46
|
+
label: 'Save Credit',
|
|
47
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
48
|
+
type: "submit",
|
|
49
|
+
html_class: "kaui-dropdown custom-hover",
|
|
50
|
+
html_options: {
|
|
51
|
+
id: "saveButton"
|
|
52
|
+
}
|
|
53
|
+
} %>
|
|
37
54
|
</div>
|
|
38
55
|
<% end %>
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
<div class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<div class="register add-new-credit-modal">
|
|
2
|
+
<div class="">
|
|
3
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
4
|
+
<h5 class="add-account-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="M9.58325 9.1665H7.08325" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M12.0833 5.8335H7.08325" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M16.6666 17.9165V3.33317C16.6666 2.4127 15.9204 1.6665 14.9999 1.6665H4.99992C4.07944 1.6665 3.33325 2.4127 3.33325 3.33317V17.9165L6.66659 16.2498L9.99992 18.3332L13.3333 16.2498L16.6666 17.9165Z" stroke="#414651" stroke-width="1.5" stroke-linejoin="round"/>
|
|
10
|
+
</svg>
|
|
11
|
+
</span>
|
|
12
|
+
Add new credit
|
|
13
|
+
</h5>
|
|
14
|
+
<%= render 'form' %>
|
|
15
|
+
</div>
|
|
7
16
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
17
|
</div>
|
|
@@ -1,31 +1,43 @@
|
|
|
1
1
|
<%= form_for @custom_field, :html => {:class => 'form-horizontal'} do |f| %>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</div>
|
|
2
|
+
<div class="form-group d-flex pb-3">
|
|
3
|
+
<%= f.label :object_id, 'Object ID', :class => 'col-sm-3 control-label' %>
|
|
4
|
+
<div class="col-sm-9">
|
|
5
|
+
<%= f.text_field :object_id, :class => 'form-control' %>
|
|
7
6
|
</div>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
</div>
|
|
8
|
+
<div class="form-group d-flex pb-3">
|
|
9
|
+
<%= f.label :object_type, 'Object type', :class => 'col-sm-3 control-label' %>
|
|
10
|
+
<div class="col-sm-9">
|
|
11
|
+
<%= f.select :object_type, [:ACCOUNT, :BUNDLE, :SUBSCRIPTION, :INVOICE, :INVOICE_ITEM, :PAYMENT], {:selected => :account}, :class => 'form-control' %>
|
|
13
12
|
</div>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
</div>
|
|
14
|
+
<div class="form-group d-flex pb-3">
|
|
15
|
+
<%= f.label :name, 'Name', :class => 'col-sm-3 control-label' %>
|
|
16
|
+
<div class="col-sm-9">
|
|
17
|
+
<%= f.text_field :name, :class => 'form-control' %>
|
|
19
18
|
</div>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</div>
|
|
26
|
-
<div class="form-group">
|
|
27
|
-
<div class="col-sm-offset-2 col-sm-10">
|
|
28
|
-
<%= submit_tag 'Save', :class => 'btn btn-default' %>
|
|
29
|
-
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="form-group d-flex pb-3">
|
|
21
|
+
<%= f.label :value, 'Value', :class => 'col-sm-3 control-label' %>
|
|
22
|
+
<div class="col-sm-9">
|
|
23
|
+
<%= f.text_field :value, :class => 'form-control' %>
|
|
30
24
|
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="form-group d-flex justify-content-end pt-3 border-top">
|
|
27
|
+
<%= render "kaui/components/button/button", {
|
|
28
|
+
label: 'Close',
|
|
29
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
30
|
+
type: "button",
|
|
31
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
32
|
+
html_options: {
|
|
33
|
+
onclick: "window.history.back();"
|
|
34
|
+
}
|
|
35
|
+
} %>
|
|
36
|
+
<%= render "kaui/components/button/button", {
|
|
37
|
+
label: 'Save Field',
|
|
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>
|
|
31
43
|
<% end %>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
<%
|
|
2
|
-
|
|
3
|
-
<span><i class="fa fa-sticky-note"></i><i class="fa fa-caret-down"></i></span>
|
|
1
|
+
<% container_class = ['tag-select custom-fields', local_assigns[:container_class]].compact.join(' ') %>
|
|
2
|
+
<% label_class = ['tag-description', local_assigns[:label_class]].compact.join(' ') %>
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<% unless custom_fields.blank? %>
|
|
5
|
+
<div class="<%= container_class %> list-bar-custom-fields">
|
|
6
|
+
<strong>Custom fields</strong>
|
|
7
|
+
<div class="tag-select-box">
|
|
8
|
+
<% custom_fields.each do |cf| %>
|
|
9
|
+
<label class="<%= label_class %>"><%= cf.name %>: <%= cf.value %></label>
|
|
10
|
+
<% end %>
|
|
11
11
|
</div>
|
|
12
|
-
|
|
12
|
+
</div>
|
|
13
|
+
<% end %>
|
|
@@ -1,31 +1,82 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<% end %>
|
|
9
|
-
</h1>
|
|
10
|
-
|
|
11
|
-
<table id="custom_fields-table" class="table table-condensed mobile-data">
|
|
12
|
-
<thead>
|
|
13
|
-
<tr>
|
|
14
|
-
<th>Object ID</th>
|
|
15
|
-
<th>Object type</th>
|
|
16
|
-
<th>Name</th>
|
|
17
|
-
<th>Value</th>
|
|
18
|
-
</tr>
|
|
19
|
-
</thead>
|
|
20
|
-
<tbody>
|
|
21
|
-
<tr>
|
|
22
|
-
<td colspan="1" class="dataTables_empty">Loading data from server</td>
|
|
23
|
-
</tr>
|
|
24
|
-
</tbody>
|
|
25
|
-
</table>
|
|
1
|
+
<div class="kaui-container kaui-custom-fields-index">
|
|
2
|
+
<%= render partial: 'kaui/components/breadcrumb/breadcrumb', locals: {
|
|
3
|
+
breadcrumbs: [
|
|
4
|
+
{ label: 'Settings', href: '/' },
|
|
5
|
+
{ label: "Custom Fields", href: '#' }
|
|
6
|
+
]
|
|
7
|
+
} %>
|
|
26
8
|
|
|
27
|
-
|
|
9
|
+
<div class="d-flex" style="gap: 4rem;">
|
|
10
|
+
<%= render :template => 'kaui/layouts/kaui_setting_sidebar' %>
|
|
11
|
+
|
|
12
|
+
<div class="custom-fields-details w-100">
|
|
13
|
+
<div class="d-flex flex-column">
|
|
14
|
+
<div class="custom-fields-details-header">
|
|
15
|
+
<h2>Custom Fields</h2>
|
|
16
|
+
<span>
|
|
17
|
+
<% if can? :add, Kaui::CustomField %>
|
|
18
|
+
<%= link_to new_custom_field_path do %>
|
|
19
|
+
<%= render "kaui/components/button/button", {
|
|
20
|
+
label: "Create Field",
|
|
21
|
+
icon: "kaui/plus.svg",
|
|
22
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
23
|
+
type: "button",
|
|
24
|
+
html_class: "kaui-dropdown custom-hover",
|
|
25
|
+
} %>
|
|
26
|
+
<% end %>
|
|
27
|
+
<% end %>
|
|
28
|
+
</span>
|
|
29
|
+
</div>
|
|
28
30
|
|
|
31
|
+
<div class="mt-4">
|
|
32
|
+
<table id="custom_fields-table" class="table table-condensed mobile-data">
|
|
33
|
+
<thead>
|
|
34
|
+
<tr>
|
|
35
|
+
<th class="sortable-header" data-column="0">
|
|
36
|
+
<div class="header-content">
|
|
37
|
+
<span class="header-text">Object 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="1">
|
|
45
|
+
<div class="header-content">
|
|
46
|
+
<span class="header-text">Object type</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="2">
|
|
54
|
+
<div class="header-content">
|
|
55
|
+
<span class="header-text">Name</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>
|
|
62
|
+
<th class="sortable-header" data-column="3">
|
|
63
|
+
<div class="header-content">
|
|
64
|
+
<span class="header-text">Value</span>
|
|
65
|
+
<div class="sort-icons">
|
|
66
|
+
<%= image_tag "kaui/sort-up.svg", class: "sort-icon sort-asc" %>
|
|
67
|
+
<%= image_tag "kaui/sort-down.svg", class: "sort-icon sort-desc" %>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</th>
|
|
71
|
+
</tr>
|
|
72
|
+
</thead>
|
|
73
|
+
<tbody>
|
|
74
|
+
</tbody>
|
|
75
|
+
</table>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
29
80
|
</div>
|
|
30
81
|
|
|
31
82
|
<%= javascript_tag do %>
|
|
@@ -44,9 +95,52 @@ $(document).ready(function() {
|
|
|
44
95
|
<% end %>
|
|
45
96
|
"processing": true,
|
|
46
97
|
"serverSide": true,
|
|
47
|
-
"ajax": "<%= custom_fields_pagination_path(:ordering => @ordering, :format => :json) %>"
|
|
98
|
+
"ajax": "<%= custom_fields_pagination_path(:ordering => @ordering, :format => :json, :advance_search_query => @advance_search_query) %>"
|
|
48
99
|
});
|
|
49
100
|
|
|
101
|
+
// Custom sorting functionality
|
|
102
|
+
var currentSortColumn = -1;
|
|
103
|
+
var currentSortDirection = 'asc';
|
|
104
|
+
|
|
105
|
+
// Handle custom header clicks
|
|
106
|
+
$('.sortable-header').on('click', function() {
|
|
107
|
+
var columnIndex = parseInt($(this).data('column'));
|
|
108
|
+
var newDirection = 'asc';
|
|
109
|
+
|
|
110
|
+
// If clicking the same column, toggle direction
|
|
111
|
+
if (currentSortColumn === columnIndex) {
|
|
112
|
+
newDirection = currentSortDirection === 'asc' ? 'desc' : 'asc';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
currentSortColumn = columnIndex;
|
|
116
|
+
currentSortDirection = newDirection;
|
|
117
|
+
|
|
118
|
+
// Update visual indicators
|
|
119
|
+
updateSortIndicators(columnIndex, newDirection);
|
|
120
|
+
|
|
121
|
+
// Apply DataTable sorting
|
|
122
|
+
table.order([columnIndex, newDirection]).draw();
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
// Function to update sort indicators
|
|
126
|
+
function updateSortIndicators(columnIndex, direction) {
|
|
127
|
+
// Reset all headers
|
|
128
|
+
$('.sortable-header').removeClass('sort-asc-active sort-desc-active');
|
|
129
|
+
$('.sort-icon').removeClass('active');
|
|
130
|
+
|
|
131
|
+
// Set active state for current column
|
|
132
|
+
var $header = $('.sortable-header[data-column="' + columnIndex + '"]');
|
|
133
|
+
$header.addClass(direction + '-active');
|
|
134
|
+
$header.find('.sort-' + direction).addClass('active');
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// Initialize sort indicators based on current ordering
|
|
138
|
+
<% unless @ordering.blank? %>
|
|
139
|
+
currentSortColumn = 0;
|
|
140
|
+
currentSortDirection = '<%= @ordering %>';
|
|
141
|
+
updateSortIndicators(0, '<%= @ordering %>');
|
|
142
|
+
<% end %>
|
|
143
|
+
|
|
50
144
|
<!-- When we don't know the total number of pages, we need to hide the legend and next button manually -->
|
|
51
145
|
<% if @max_nb_records.nil? %>
|
|
52
146
|
$('#custom_fields-table').on('draw.dt', function() {
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
<div class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<div class="register add-new-custom-field-details">
|
|
2
|
+
<div class="">
|
|
3
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
4
|
+
<% if can? :create, Kaui::AdminTenant %>
|
|
5
|
+
<h5 class="add-new-custom-field-title border-bottom pb-3 mb-3">
|
|
6
|
+
<span class="icon-container">
|
|
7
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M1.66699 5.83366C1.66699 4.91318 2.41318 4.16699 3.33366 4.16699H16.667C17.5875 4.16699 18.3337 4.91318 18.3337 5.83366V14.167C18.3337 15.0875 17.5875 15.8337 16.667 15.8337H3.33366C2.41318 15.8337 1.66699 15.0875 1.66699 14.167V5.83366Z" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M11.667 8.74967L13.3337 7.08301L15.0003 8.74967M11.667 11.2497L13.3337 12.9163L15.0003 11.2497" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
<path d="M5 10H8.33333" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
11
|
+
</svg>
|
|
12
|
+
</span>
|
|
13
|
+
Add New Custom Field
|
|
14
|
+
</h5>
|
|
15
|
+
<%= render 'form' %>
|
|
16
|
+
<% else %>
|
|
17
|
+
<p>You are not allowed to create tenants, please contact your administrator.</p>
|
|
18
|
+
<% end %>
|
|
19
|
+
</div>
|
|
7
20
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
21
|
</div>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
width: 35em; /* Increase the width of the dialog */
|
|
9
9
|
padding: 1em 6em; /* Increase the padding of the dialog */
|
|
10
10
|
margin: 4em auto 0 auto;
|
|
11
|
-
border:
|
|
11
|
+
border: 0.0625rem solid #ccc;
|
|
12
12
|
border-right-color: #999;
|
|
13
13
|
border-bottom-color: #999;
|
|
14
14
|
font-size: 1.2em; /* Increase the font size in the dialog */
|
|
@@ -1,38 +1,85 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<div class="pt-4">
|
|
2
|
+
<div class="kaui-container py-5">
|
|
3
|
+
<div class="row">
|
|
4
|
+
<div class="col-md-9 col-lg-9 mb-4">
|
|
5
|
+
<h5 class="fw-semibold pb-4 text-black-900 fs-4 fw-500">Get Started</h5>
|
|
6
|
+
<div class="row mb-4">
|
|
7
|
+
<%= render partial: "kaui/components/dashboard/card", locals: { title: "Accounts", count: @max_records[:account], icon: "kaui/header/account.svg", path: kaui_engine.accounts_path } %>
|
|
8
|
+
<%= render partial: "kaui/components/dashboard/card", locals: { title: "Invoices", count: @max_records[:invoice], icon: "kaui/header/invoice.svg", path: kaui_engine.invoices_path } %>
|
|
9
|
+
<%= render partial: "kaui/components/dashboard/card", locals: { title: "Payments", count: @max_records[:payment], icon: "kaui/header/payment.svg", path: kaui_engine.payments_path } %>
|
|
10
|
+
</div>
|
|
4
11
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
<!-- Settings Section -->
|
|
13
|
+
<h5 class="fw-semibold pb-4 text-black-900 pt-4 fs-4 fw-500">Settings</h5>
|
|
14
|
+
<div class="row row-cols-1 row-cols-md-2 g-4 mb-5">
|
|
15
|
+
<%= render partial: "kaui/components/dashboard/setting", locals: { path: kaui_engine.admin_tenants_path, icon: "kaui/dashboard/users.svg", title: "Tenant", desc: "Run multiple tenants for each Kill Bill deployment." } %>
|
|
16
|
+
<%= render partial: "kaui/components/dashboard/setting", locals: { path: kaui_engine.admin_allowed_users_path, icon: "kaui/dashboard/users.svg", title: "Users", desc: "Manage users in Kaui – create user roles, create and edit users, assign roles and tenants to users." } %>
|
|
17
|
+
<%= render partial: "kaui/components/dashboard/setting", locals: { path: kaui_engine.tags_path, icon: "kaui/dashboard/tags.svg", title: "Tags", desc: "Apply one or more tags to accounts and invoices, a tag being a single value." } %>
|
|
18
|
+
<%= render partial: "kaui/components/dashboard/setting", locals: { path: kaui_engine.custom_fields_path, icon: "kaui/dashboard/custom-field.svg", title: "Custom Fields", desc: "Create custom fields (key/value pairs) and attach them to objects like accounts, payments." } %>
|
|
19
|
+
<% if kpm_plugin_installed %>
|
|
20
|
+
<%= render partial: "kaui/components/dashboard/setting", locals: { path: "kpm", icon: "kaui/dashboard/plugins.svg", title: "Plugins", desc: "Install and uninstall plugins, as well as start, stop, and restart them at runtime." } %>
|
|
21
|
+
<% end %>
|
|
22
|
+
<% if aviate_plugin_installed %>
|
|
23
|
+
<%= render partial: "kaui/components/dashboard/setting", locals: { path: "/aviate", icon: "kaui/dashboard/aviate.svg", title: "Aviate", desc: "Enhanced system observability, streamlined configurations, and valuable business intelligence." } %>
|
|
24
|
+
<% end %>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
8
27
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
28
|
+
<div class="col-md-3 col-lg-3 mb-4">
|
|
29
|
+
<!-- Documentation Section -->
|
|
30
|
+
<h5 class="fw-semibold mb-3 text-black-900 fs-4 fw-500">Documentation</h5>
|
|
31
|
+
<div class="card border-0 shadow-sm rounded-3 p-4" style="max-width: 22.5rem;">
|
|
13
32
|
|
|
33
|
+
<%= image_tag 'kaui/dashboard/kaui-doc-img.png', class: "mb-3 img-fluid" %>
|
|
34
|
+
<h6>Kaui</h6>
|
|
35
|
+
<p class="text-muted small">Kill Bill's Admin User Interface for Subscription Management</p>
|
|
36
|
+
<%= link_to "View Docs", "https://docs.killbill.io/", class: "text-primary text-decoration-none fw-medium small" %>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
14
40
|
</div>
|
|
15
|
-
<div class="col-md-6 col-md-offset-3 legend">
|
|
16
|
-
<p class="text-center">
|
|
17
|
-
<%= link_to 'Latest accounts', kaui_engine.accounts_path %> /
|
|
18
|
-
<%= link_to 'Latest invoices', kaui_engine.invoices_path %> /
|
|
19
|
-
<%= link_to 'Latest payments', kaui_engine.payments_path %>
|
|
20
|
-
</p>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<span class="duck_help">Accounts are searched by default. For complex searches, use <b>Advanced Search</b>.</span>
|
|
24
41
|
|
|
25
|
-
</div>
|
|
26
42
|
|
|
27
|
-
|
|
43
|
+
<%
|
|
44
|
+
=begin%>
|
|
45
|
+
<div class="home">
|
|
46
|
+
<div class="row">
|
|
47
|
+
<div class="col-md-6 col-md-offset-3 text-center">
|
|
48
|
+
|
|
49
|
+
<%= form_tag search_path, :id => 'home_searchform', :method => 'get' do %>
|
|
50
|
+
<%= text_field_tag :q, @search_query, :id => 'search', :placeholder => 'What are you looking for?' %>
|
|
51
|
+
<%= submit_tag 'Search' %>
|
|
52
|
+
|
|
53
|
+
<div id="advanced">
|
|
54
|
+
<%= link_to('Advanced search','#advancedSearchModal', data: { toggle: 'modal', target: '#advancedSearchModal' }) %>
|
|
55
|
+
</div>
|
|
56
|
+
<% end %>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
<div class="col-md-6 col-md-offset-3 legend">
|
|
60
|
+
<p class="text-center">
|
|
61
|
+
<%= link_to 'Latest accounts', kaui_engine.accounts_path %> /
|
|
62
|
+
<%= link_to 'Latest invoices', kaui_engine.invoices_path %> /
|
|
63
|
+
<%= link_to 'Latest payments', kaui_engine.payments_path %>
|
|
64
|
+
</p>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<span class="duck_help">Accounts are searched by default. For complex searches, use <b>Advanced Search</b>.</span>
|
|
68
|
+
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<%= render :partial => 'advanced_search_modal' %>
|
|
28
72
|
|
|
29
|
-
<script language="javascript">
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
73
|
+
<script language="javascript">
|
|
74
|
+
$(document).ready(function() {
|
|
75
|
+
function alignToSearch() {
|
|
76
|
+
var leftPosition = $('#search').position().left + 25;
|
|
77
|
+
$('#advanced').css('padding-left', leftPosition);
|
|
78
|
+
}
|
|
35
79
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</script>
|
|
80
|
+
alignToSearch();
|
|
81
|
+
});
|
|
82
|
+
</script>
|
|
83
|
+
<%
|
|
84
|
+
=end%>
|
|
85
|
+
</div>
|
|
@@ -4,28 +4,44 @@
|
|
|
4
4
|
<%= f.hidden_field :account_id %>
|
|
5
5
|
<%= f.hidden_field :currency %>
|
|
6
6
|
|
|
7
|
-
<div class="form-group">
|
|
8
|
-
<%= f.label :amount, 'Item amount', :class => 'col-sm-
|
|
9
|
-
<div class="col-sm-
|
|
7
|
+
<div class="form-group d-flex pb-3">
|
|
8
|
+
<%= f.label :amount, 'Item amount', :class => 'col-sm-3 control-label' %>
|
|
9
|
+
<div class="col-sm-9 d-flex currency-group">
|
|
10
10
|
<%= f.text_field :amount, :class => 'form-control' %>
|
|
11
|
-
<
|
|
11
|
+
<div class="currency"><%= @invoice_item.currency %></div>
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
|
-
<div class="form-group">
|
|
15
|
-
<%= label_tag :reason, 'Reason', :class => 'col-sm-
|
|
16
|
-
<div class="col-sm-
|
|
14
|
+
<div class="form-group d-flex pb-3">
|
|
15
|
+
<%= label_tag :reason, 'Reason', :class => 'col-sm-3 control-label' %>
|
|
16
|
+
<div class="col-sm-9 d-flex">
|
|
17
17
|
<%= select_tag :reason, options_for_select(Kaui.invoice_item_reason_codes), :class => 'form-control' %>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
|
-
<div class="form-group">
|
|
21
|
-
<%= label_tag :comment, 'Comment', :class => 'col-sm-
|
|
22
|
-
<div class="col-sm-
|
|
20
|
+
<div class="form-group d-flex pb-3 border-bottom mb-3">
|
|
21
|
+
<%= label_tag :comment, 'Comment', :class => 'col-sm-3 control-label' %>
|
|
22
|
+
<div class="col-sm-9 d-flex">
|
|
23
23
|
<%= text_area_tag :comment, nil, :rows => 3, :class => 'form-control' %>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
|
-
<div class="form-group">
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
<div class="form-group d-flex justify-content-end pb-3">
|
|
27
|
+
<%= render "kaui/components/button/button", {
|
|
28
|
+
label: 'Close',
|
|
29
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
30
|
+
type: "button",
|
|
31
|
+
html_class: "kaui-button custom-hover mx-2",
|
|
32
|
+
html_options: {
|
|
33
|
+
id: "closeButton",
|
|
34
|
+
onclick: "window.history.back();"
|
|
35
|
+
}
|
|
36
|
+
} %>
|
|
37
|
+
<%= render "kaui/components/button/button", {
|
|
38
|
+
label: 'Save Invoice',
|
|
39
|
+
variant: "outline-secondary d-inline-flex align-items-center gap-1",
|
|
40
|
+
type: "submit",
|
|
41
|
+
html_class: "kaui-dropdown custom-hover",
|
|
42
|
+
html_options: {
|
|
43
|
+
id: "saveButton"
|
|
44
|
+
}
|
|
45
|
+
} %>
|
|
30
46
|
</div>
|
|
31
47
|
<% end %>
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
<div class="register">
|
|
2
|
-
<div class="col-md-8 col-md-offset-2">
|
|
3
1
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<div class="register adjust-invoice-item-modal">
|
|
3
|
+
<div class="">
|
|
4
|
+
<div class="mx-auto" style="max-width: 37.5rem;">
|
|
5
|
+
<h5 class="add-account-title border-bottom">
|
|
6
|
+
<span class="icon-container">
|
|
7
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M9.58325 9.16699H7.08325" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M12.0833 5.83301H7.08325" stroke="#414651" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
10
|
+
<path d="M16.6666 17.917V3.33366C16.6666 2.41318 15.9204 1.66699 14.9999 1.66699H4.99992C4.07944 1.66699 3.33325 2.41318 3.33325 3.33366V17.917L6.66659 16.2503L9.99992 18.3337L13.3333 16.2503L16.6666 17.917Z" stroke="#414651" stroke-width="1.5" stroke-linejoin="round"/>
|
|
11
|
+
</svg>
|
|
12
|
+
</span>
|
|
13
|
+
Adjust Invoice Item
|
|
14
|
+
</h5>
|
|
15
|
+
<%= render 'edit_form' %>
|
|
16
|
+
</div>
|
|
7
17
|
</div>
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
18
|
</div>
|