Sha256: 877a5550ae3d19a747560232053553479882a816dc1fbb1ac89d301067e2bd74

Contents?: true

Size: 1.41 KB

Versions: 10

Compression:

Stored size: 1.41 KB

Contents

= form_for [spina, :admin, current_account] do |f|
  .table-container
    %table.table.table-form
      %tr
        %td
          = Spina::Account.human_attribute_name(:theme)
        %td
          .select-dropdown.account-theme{data: {layout_parts: current_theme.config.layout_parts.map{|layout_part| layout_part[:name]}}}
            - options = options_for_select(Spina.themes.map { |theme| [theme.to_s, theme.to_s, {'data-layout-parts' => theme.config.layout_parts.map{|layout_part| layout_part[:name] }}] }, current_account.theme)
            = f.select :theme, options
      %tr
        %td
          = Spina::Account.human_attribute_name(:logo)
        %td
          = image_tag current_account.logo
          = f.file_field :logo

      = f.fields_for :layout_parts do |layout_part_form|
        %tr.layout-part{data: {name: layout_part_form.object.name}}
          %td
            = layout_part_form.object.title
          %td
            = layout_part_form.hidden_field :id
            = layout_part_form.hidden_field :title
            = layout_part_form.hidden_field :layout_partable_type
            = layout_part_form.hidden_field :name

            = render partial: "spina/admin/layout_partables/#{layout_part_form.object.layout_partable_type.demodulize.underscore}_form", object: layout_part_form

  %button.button.button-primary{type: 'submit', data: {icon: 'o'}}
    = icon('check')
    = t('spina.preferences.style_save')

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spina-0.8.3 app/views/spina/admin/accounts/style.html.haml
spina-0.8.2 app/views/spina/admin/accounts/style.html.haml
spina-0.8.1 app/views/spina/admin/accounts/style.html.haml
spina-0.8.0 app/views/spina/admin/accounts/style.html.haml
spina-0.7.3 app/views/spina/admin/accounts/style.html.haml
spina-0.7.2 app/views/spina/admin/accounts/style.html.haml
spina-0.7.0 app/views/spina/admin/accounts/style.html.haml
spina-0.6.29 app/views/spina/admin/accounts/style.html.haml
spina-0.6.28 app/views/spina/admin/accounts/style.html.haml
spina-0.6.27 app/views/spina/admin/accounts/style.html.haml