Sha256: 728dafab6d4521933887875761720df9024da948129a168c4e74f8b1da685541

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

<!--

  @File Name                 : admin/pages/_page_part_page_form_field.html.erb
  @Company Name              : Mindfire Solutions Private Limited
  @Creator Name              : Vikram Kumar Mishra
  @Date Created              : 2012-06-26
  @Date Modified             :
  @Last Modification Details :
  @Purpose                   : To display page_part_pages form fields.

-->

<div id="page-part-fields-<%= part_index %>" class='page-part-fields'>

  <%= f.label :page_part_id, "Choose Existing #{title}",
              :id => "page_page_parts_pages_attributes_#{part_index}_page_part_id" %>

  <%= f.select(:page_part_id, fragment.collect {|p| [ "#{p[1]} #{title}", p[0] ] },{},
              {:id => "page_page_parts_pages_attributes_#{part_index}_page_part_id",
              :name => "page[page_parts_pages_attributes][#{part_index}][page_part_id]"}) unless fragment.nil? %>
  OR

  <%= link_to "Create New #{title}",
              {:controller=>"pages", :action => 'add_page_part',
               :title => "#{title}", :index => "#{part_index}", :part => "page_part"},
              :remote => true,:id => "create-page-part-link-#{part_index}", :class => "create-page-part-link" %>

</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mcms_pages-1.0.0 app/views/mcms_pages/admin/pages/_page_part_page_form_field.html.erb
mcms_pages-0.0.7 app/views/mcms_pages/admin/pages/_page_part_page_form_field.html.erb
mcms_pages-0.0.6 app/views/mcms_pages/admin/pages/_page_part_page_form_field.html.erb
mcms_pages-0.0.5 app/views/mcms_pages/admin/pages/_page_part_page_form_field.html.erb
mcms_pages-0.0.4 app/views/mcms_pages/admin/pages/_page_part_page_form_field.html.erb
mcms_pages-0.0.3 app/views/mcms_pages/admin/pages/_page_part_page_form_field.html.erb
mcms_pages-0.0.2 app/views/mcms_pages/admin/pages/_page_part_page_form_field.html.erb