Sha256: c18bb0f68b63e67cf9917245e35110438e807b5a374dc135ea6f3ec2329221b1

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

= f.input :url, required: true, wrapper_html:{class: f.object.errors.messages[:slug] ? "error" : nil}, hint: f.object.root? ? "This page is your home page" : nil do
  - if f.object.root?
    .btn(disabled)=> "/" 
    ' or
  .input-prepend style="display:inline"
    = f.select :parent_url, options_for_select(@page.parent_url_options, f.object.parent_url)
    / .add-on
    /   - if @page.new_record?
    /     = f.select :parent_url, options_for_select(@page.parent_url_options, f.object.parent_url)
    /   - else
    /     = f.object.parent_url

    = f.text_field :slug

  br
  = f.error :slug

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 app/views/cardboard/pages/_url_field.html.slim
cardboard_cms-0.2.2 app/views/cardboard/pages/_url_field.html.slim
cardboard_cms-0.2.1 app/views/cardboard/pages/_url_field.html.slim