Sha256: 15bfb2a4398a7619f48e3ba5a5b940ed70fa59e2de21577b2184d60a7f14fcfb

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

= form.fields_for :items do |item_form|
  - item = item_form.object
  - link_id = item.id.to_s

  .block-container.widget-modify{:id => "item_#{link_id}"}
    .inner_block-container
      .block-type.editing{:id => "edit_item_#{id}", :style => 'display: block;'}
        %span.handler
          %span.inner
        %div
          %label= "#{I18n.t(:title).capitalize} :"
          %label= "#{I18n.t('content').capitalize} :"

      .block-name
        %p{ :id => "widget_actuality_item_title_#{link_id}", :class => 'widget_actuality_title' }= item.title
        .widget_actuality_content{ :id => "widget_actuality_item_content_#{link_id}"}= item.content
        = item_form.hidden_field :id
        = item_form.hidden_field :position
        = item_form.hidden_field :_destroy, :class => 'delete'
      .block-name.editing{:id => "edit_item_#{link_id}", :style => 'display: none;'}
        = item_form.text_field :title
        = item_form.text_area :content

      .widget-actions
        = link_to_function '',"duplicate_actuality('item_#{link_id}')", :class => 'small-icons duplicate-link duplicate-actuality'
        = link_to_function '','edit_actuality(jQuery(this))', :class => 'small-icons edit-link edit-actuality'
        = link_to_function '', "remove_actuality(jQuery(this));", :class => 'small-icons destroy-link'
      .clear

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
forgeos_cms-1.9.5.rc1 app/views/admin/widget_actualities/_form_item.html.haml
forgeos_cms-1.9.4 app/views/admin/widget_actualities/_form_item.html.haml
forgeos_cms-1.9.2 app/views/admin/widget_actualities/_form_item.html.haml
forgeos_cms-1.9.1 app/views/admin/widget_actualities/_form_item.html.haml