Sha256: f8664fbb6fc6889173790fed67118138836bdb9de7eaf6fab9fd391df2bcd122

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 Bytes

Contents

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

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

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

    .control-group
      = f.label :url, class: 'control-label'
      .controls
        = f.text_field :url
        %span.help-inline The URL under which this page should be accessible on the web.

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flms-0.9.0 app/views/flms/pages/_form.html.haml
flms-0.1.0 app/views/flms/pages/_form.html.haml