ubicloud/views/components
Jeremy Evans 64f9d09f65 Use normal HTML form submission for delete button with POST method
It looks like the private subnet disconnect button is the only button
we have that does this. There doesn't appear to be a need to use
an ajax submission in this case.  However, javascript is still needed
for the confirmation.

Change the javascript to use a normal HTTP form submission if the
method is POST, instead of using an ajax submission. This requires
wrapping the button in an HTML form, so do that in the delete button
template.

Change the private subnet disconnect route to redirect after
successful disconnect, instead of returning 204. Also, simplify the
error handling in the disconnect route, and use
handle_validation_failure.

This allows the specs to use normal Capybara methods for clicking the
button, instead of dropping down to rack-test methods.

Use Disconnect as the label for the disconnect button. Previously, this
just showed a trash icon, which was less accessible to non-visual users,
and even for visual users, odd, because the trash icon is for
deleting objects, and this does a disconnect and not a delete.
2025-08-08 01:52:14 +09:00
..
form Make name and label required keyword arguments to textarea component 2025-08-08 01:52:14 +09:00
rodauth Switch to multi phase login 2025-07-09 04:32:44 +09:00
billing_warning.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
button.erb Update erb-formatter version 2025-04-10 08:47:13 -07:00
config_card.erb Add PG Configuration UI 2025-07-24 15:03:27 +05:30
copyable_content.erb Add new PostgreSQL Connection page 2025-06-19 13:07:10 +03:00
delete_button.erb Use normal HTML form submission for delete button with POST method 2025-08-08 01:52:14 +09:00
discount_code.erb Create billing info as needed for discount code 2025-05-09 11:26:34 -04:00
download_button.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
empty_state.erb Support multiple buttons in empty state component 2025-06-20 06:00:14 +09:00
flash_message.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
free_quota.erb Add billing check and free quota for AI inference 2025-02-18 11:51:51 -05:00
icon.erb Add new PostgreSQL Settings page 2025-06-19 13:07:10 +03:00
icon_with_text.erb Add new PostgreSQL Connection page 2025-06-19 13:07:10 +03:00
inline_edit_buttons.erb Add edit inline button components 2025-05-29 02:44:27 +03:00
kubernetes_state_label.erb Add State for Kubernetes Cluster 2025-02-05 08:03:46 +02:00
kv_data_card.erb Change rubocop TargetRubyVersion to 3.4 2025-04-26 06:51:19 +09:00
page_header.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
pg_state_label.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
progress_bar.erb Fix division by zero in progress bar calculation 2025-03-24 09:19:45 +03:00
ps_state_label.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
revealable_content.erb Add new PostgreSQL Connection page 2025-06-19 13:07:10 +03:00
state_label.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
tabbar.erb Fix the active tab on the user tab bar for nested pages 2025-01-09 09:55:55 -08:00
table_card.erb Add a second line option to table_card component's cell 2025-05-15 15:31:18 +03:00
value_content.erb Use Roda part plugin to simplify render calls with locals 2025-01-31 09:47:06 -08:00
vm_state_label.erb Add views/components/state_label.erb, make views/components/*_state_label.erb call it 2025-01-14 09:04:22 -08:00