<%= render 'shared/settings_nav' %>

Storage

Select files storage option (TODO)

<% value = @encrypted_config.value || { 'service' => 'disk' } %> <% configs = value['configs'] || {} %> <%= form_for @encrypted_config, url: settings_storage_index_path, method: :post, html: { autocomplete: 'off', class: 'w-full' } do |f| %> <% options = [['Disk', 'disk'], ['AWS S3', 'aws_s3'], ['Google Cloud', 'google'], ['Azure', 'azure']] %>
    <% options.each do |(label, val)| %>
  • <%= f.radio_button :selected, val, checked: value['service'] == val, data: { action: 'change:toggle-visible#trigger' }, class: 'base-radio' %> <%= f.label :selected, label, value: val, class: 'w-full py-3 ml-2 text-sm font-medium' %>
  • <% end %>
<%= render "disk_form", f: f %> <%= render "aws_form", f: f, configs: configs, value: value %> <%= render "google_cloud_form", f: f, configs: configs, value: value %> <%= render "azure_form", f: f, configs: configs, value: value %>
<%= f.button button_title(title: 'Save', disabled_with: 'Saving'), class: 'base-button' %>
<% end %>