<%= render 'shared/turbo_modal', title: 'Update Initials' do %> <% options = [%w[Draw draw], %w[Upload upload]] %>
<% options.each_with_index do |(label, value), index| %> <%= radio_button_tag 'option', value, value == 'draw', class: 'peer hidden', data: { action: 'change:toggle-visible#trigger' } %> <% end %>
<%= form_for @user_config, url: user_initials_path, method: :put, data: { turbo_frame: :_top }, html: { autocomplete: :off, enctype: 'multipart/form-data' } do |f| %> Clear
<%= f.button button_title(title: 'Save', disabled_with: 'Saving'), class: 'base-button', data: { target: 'signature-form.button' } %>
<% end %>
<% end %>