Sha256: cf634a77d1fbe2bfecb95fc71a9ceb61f14b86b9ddae6fa3a41273a3595ed77c

Contents?: true

Size: 794 Bytes

Versions: 25

Compression:

Stored size: 794 Bytes

Contents

<%= form_with model: @setting, scope: :setting, url: admin_settings_path do |f| %>

  <%= render Spina::UserInterface::HeaderComponent.new do |header| %>
    <% header.actions do %>
    
      <%= button_tag type: :submit, class: 'btn btn-primary', data: {controller: "button", action: "button#loading", loading_message: t('spina.ui.saving')} do %>
        <%= heroicon('check', style: :solid, class: 'w-5 h-5 mr-1 -ml-2') %>
        <%=t 'spina.settings.save' %>
      <% end %>
      
    <% end %>
  <% end %>
  
  <div class="py-4 p-8">
    <% plugin.settings.each do |key, value| %>
    
      <%= render "#{value.is_a?(Hash) ? value.first.first : value}_field", f: f, attribute: key %>
      
      <div class="border-t border-gray-200 my-6"></div>
    
    <% end %>
  </div>

<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
spina-2.14.0 app/views/spina/admin/settings/edit.html.erb
spina-2.13.1 app/views/spina/admin/settings/edit.html.erb
spina-2.13.0 app/views/spina/admin/settings/edit.html.erb
spina-2.12.0 app/views/spina/admin/settings/edit.html.erb
spina-2.11.0 app/views/spina/admin/settings/edit.html.erb
spina-2.10.0 app/views/spina/admin/settings/edit.html.erb
spina-2.9.1 app/views/spina/admin/settings/edit.html.erb
spina-2.9.0 app/views/spina/admin/settings/edit.html.erb
spina-2.8.1 app/views/spina/admin/settings/edit.html.erb
spina-2.8.0 app/views/spina/admin/settings/edit.html.erb
spina-2.7.0 app/views/spina/admin/settings/edit.html.erb
spina-2.6.2 app/views/spina/admin/settings/edit.html.erb
spina-2.6.1 app/views/spina/admin/settings/edit.html.erb
spina-2.6.0 app/views/spina/admin/settings/edit.html.erb
spina-2.5.0 app/views/spina/admin/settings/edit.html.erb
spina-2.4.0 app/views/spina/admin/settings/edit.html.erb
spina-2.3.5 app/views/spina/admin/settings/edit.html.erb
spina-2.3.4 app/views/spina/admin/settings/edit.html.erb
spina-2.3.3 app/views/spina/admin/settings/edit.html.erb
spina-2.3.2 app/views/spina/admin/settings/edit.html.erb