Sha256: 634916a828cdd677599dcf481f65949a51a5e17071a9d56406f484124a90fbb0

Contents?: true

Size: 1.03 KB

Versions: 16

Compression:

Stored size: 1.03 KB

Contents

.modal-body#preference-modal-content
  = form_for(current_user, html: { class: "form-horizontal", method: "PATCH" }) do |f|
    = f.fields_for(:preferences, OpenStruct.new(f.object.preferences)) do |f2|
      .page-header
        %h4
          %i.icon-th-large
          = t('.toolbox')

      .control-group
        = f2.label(:toolbox_name, class: "control-label")
        .controls
          - options = Preference.toolbox_names.map { |n| [t(n, scope: "toolbox_names"), n] }
          = f2.select(:toolbox_name, options)

      - Preference.make_toolbox_name_to_preference_names_hash.each do |toolbox_name, preference_names|
        - preference_names.each do |n|
          .control-group{class: "toolbox_preferences #{toolbox_name}"}
            = preferences_field(f2, n)

      - if Preference.general_preference_names.length > 0
        .page-header
          %h4
            %i.icon-th-large
            = t('.general')

        - Preference.general_preference_names.each do |n|
          .control-group
            = preferences_field(f2, n)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.4.2-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.4.2 app/views/users/preferences.html.haml
smalruby-editor-0.4.1 app/views/users/preferences.html.haml
smalruby-editor-0.4.0-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.4.0 app/views/users/preferences.html.haml
smalruby-editor-0.3.5-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.3.5 app/views/users/preferences.html.haml
smalruby-editor-0.3.4-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.3.4 app/views/users/preferences.html.haml
smalruby-editor-0.3.3-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.3.3 app/views/users/preferences.html.haml
smalruby-editor-0.3.2-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.3.2 app/views/users/preferences.html.haml
smalruby-editor-0.3.1-x86-mingw32 app/views/users/preferences.html.haml
smalruby-editor-0.3.1 app/views/users/preferences.html.haml