Sha256: 4a0e75518e2ba201253fd0b7578bc708b290c044b5ace1241d3df87c374338b9

Contents?: true

Size: 1.61 KB

Versions: 59

Compression:

Stored size: 1.61 KB

Contents

-# manager/features/_form
- if @city
  - if @feature.persisted?
    - url = city_feature_path( @city, @feature )
  - else
    - url = city_features_path( @city )
- if @site
  - if @feature.persisted?
    - url = site_feature_path( @site, @feature )
  - else
    - url = site_features_path( @site )
- if @tag
  - if @feature.persisted?
    - url = tag_feature_path( @tag, @feature )
  - else
    - url = tag_features_path( @tag )

= form_for @feature, :url => url do |f|
  - if @city
    = hidden_field_tag :city_id, @city.id
    City #{@city.name}
  - if @site
    = hidden_field_tag :site_id, @site.id
    Site #{@site.domain}
  - if @tag
    = hidden_field_tag :tag_id,  @tag.id  if @tag
    Tag #{@tag.name}

  .row
    .large-6.columns
      = f.label :name
      = f.text_field :name
      %br
      = f.label :subhead
      = f.text_field :subhead
      %br
      = f.label :image_path
      = f.text_field :image_path
      %br
      = f.label :link_path
      = f.text_field :link_path
    -# %br
      = f.label :photo
      = f.file_field :photo
    .large-6.columns
      = f.label :report
      = select :feature, :report_id, @reports_list
      %br
      = f.label :gallery
      = select :feature, :gallery_id, @galleries_list
      %br
      = f.label :video
      = select :feature, :video_id, @videos_list

  .row
    %hr
    .large-6.columns
      %br
      = f.label :weight
      = f.text_field :weight
      %br
      = f.label :partial_name
      = f.text_field :partial_name
    .large-6.columns
      .field
        = f.label :inner_html
        = f.text_area :inner_html, class: 'large'
      .actions
        = f.submit

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
ish_manager-0.1.8.322 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.321 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.320 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.318 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.317 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.316 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.315 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.314 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.313 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.312 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.311 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.310 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.309 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.308 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.307 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.306 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.305 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.304 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.303 app/views/ish_manager/features/_form.haml
ish_manager-0.1.8.302 app/views/ish_manager/features/_form.haml