Sha256: 118ecf5920ffaa6db201ed3f9cef96bd3d5176e9f7f451d8daddca833133e78f

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

= form_for [@page, @block, @layer], html: {class: 'form-horizontal'} do |f|
  %fieldset
    %legend= caption

  - if @layer.errors.any?
    #error_explanation
      %h2= "#{pluralize(@layer.errors.count, "error")} prohibited this layer from being saved:"
      %ul
        - @layer.errors.full_messages.each do |msg|
          %li= msg

  .control-group
    = f.label :name, class: 'control-label'
    .controls
      = f.text_field :name, autofocus: true
      %span.help-inline The internal name of this layer.

  .control-group
    = f.label :image, class: 'control-label'
    .controls
      = f.file_field :image

  .control-group
    .controls
      .actions
        = f.submit class: 'btn btn-primary'
             
        = link_to 'Back', pages_path

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flms-0.0.3 app/views/flms/image_layers/_form.html.haml