Sha256: 3264062e2efaa7e6c01b9138917e5aee82545a7a537153faaba4fb0e7617523a

Contents?: true

Size: 664 Bytes

Versions: 3

Compression:

Stored size: 664 Bytes

Contents

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

  - if @block.errors.any?
    #error_explanation
      %h2= "#{pluralize(@block.errors.count, "error")} prohibited this block from being saved:"
      %ul
        - @block.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 block.

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


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flms-0.0.3 app/views/flms/blocks/_form.html.haml
flms-0.0.2 app/views/flms/blocks/_form.html.haml
flms-0.0.1 app/views/flms/blocks/_form.html.haml