Sha256: 96312a8952f52c5911f06599e3e9637161325759f9ed93d902cbe1d9693434aa

Contents?: true

Size: 1.35 KB

Versions: 9

Compression:

Stored size: 1.35 KB

Contents

= form_for [spina, :admin, current_account], url: spina.admin_account_path do |f|
  %header#header
    = render partial: 'spina/admin/shared/breadcrumbs'

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

  .well
    .horizontal-form
      .horizontal-form-group
        .horizontal-form-label
          = Spina::Account.human_attribute_name(:theme)
        .horizontal-form-content
          .select-dropdown.account-theme{data: {layout_parts: current_theme.layout_parts.map{|layout_part| layout_part[:name]}}}
            - options = options_for_select(::Spina::Theme.all.map { |theme| [theme.name, theme.name, {'data-layout-parts' => theme.layout_parts.map{|layout_part| layout_part[:name] }}] }, current_account.theme)
            = f.select :theme, options

      = f.fields_for :layout_parts do |ff|
        .horizontal-form-group.layout-part{data: {name: ff.object.name}}
          .horizontal-form-label
            = ff.object.title
          .horizontal-form-content
            = ff.hidden_field :id
            = ff.hidden_field :title
            = ff.hidden_field :layout_partable_type
            = ff.hidden_field :name

            = render "spina/admin/layout_partables/#{ partable_type_partial_namespace(ff.object.layout_partable_type) }/form", f: ff

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spina-1.2.0 app/views/spina/admin/accounts/style.html.haml
spina-1.1.4 app/views/spina/admin/accounts/style.html.haml
spina-1.1.3 app/views/spina/admin/accounts/style.html.haml
spina-1.1.2 app/views/spina/admin/accounts/style.html.haml
spina-1.1.1 app/views/spina/admin/accounts/style.html.haml
spina-1.1.0 app/views/spina/admin/accounts/style.html.haml
spina-1.0.3 app/views/spina/admin/accounts/style.html.haml
spina-1.0.2 app/views/spina/admin/accounts/style.html.haml
spina-1.0.1 app/views/spina/admin/accounts/style.html.haml