Sha256: 9a158fd8ba7e543d9b6b3e67cafb34fa5c7981c87dc271f0c5f71e43bf8adc1c

Contents?: true

Size: 843 Bytes

Versions: 21

Compression:

Stored size: 843 Bytes

Contents

<%= form_with model: Spina::Current.account, url: spina.admin_theme_path do |f| %>

  <%= render Spina::UserInterface::HeaderComponent.new do |header| %>
    <% header.actions do %>
      
      <%= button_tag t('spina.theme.save'), type: :submit, class: 'btn btn-primary', data: {controller: "button hotkeys", hotkeys: "command+s, ctrl+s", hotkeys_target: "button", action: "button#loading", loading_message: t("spina.ui.saving")} %>
      
    <% end %>
  <% end %>
  
  <div class="p-4 md:p-8 max-w-screen-2xl">
      
    <%= render Spina::Forms::GroupComponent.new(label: Spina::Account.human_attribute_name(:theme), description: t('spina.theme.theme_description')) do %>
    
      <%= f.select :theme, Spina::Theme.all.map{|theme| [theme.title, theme.name]}, {}, class: "form-select" %>
      
    <% end %>
      
  </div>
  
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
spina-2.1.0 app/views/spina/admin/theme/edit.html.erb