Sha256: b20fcf494918f3c6dd332b015a3cf521d7dee20169ef8046d8df9dc6dcff7daa

Contents?: true

Size: 1.65 KB

Versions: 9

Compression:

Stored size: 1.65 KB

Contents

.clear
.template_part{ :id => "part_" + edit_template_part.name.gsub(/\W/, "_"), :style => (edit_template_part.part_type.field_type == 'predefined' ? "display:none" : nil) }
  = hidden_field_tag "#{page_part_name(index)}[name]", edit_template_part.name, :id => "page_parts_#{index}_name"
  = hidden_field_tag "#{page_part_name(index)}[filter_id]", edit_template_part.filter_id, :id => "page_parts_#{index}_filter_id"
  = hidden_field_tag "page[parts_attributes][#{index}][id]", @page.part(edit_template_part.name).try(:[], :id)
  %p
    %label{:for => "page_parts_#{index}_content"}
      = edit_template_part.name.humanize
      - unless edit_template_part.description.blank?
        %span.description= " - " + escape_once(edit_template_part.description)
      - if edit_template_part.part_type.field_class && edit_template_part.part_type.field_class.include?('text')
        %span.reference_links{:style => "float:right"}
          = t('reference')
          - unless edit_template_part.filter_id.blank?
            = hidden_field_tag "part_#{edit_template_part.name.to_slug}_filter_id", edit_template_part.filter_id, :id => "part_#{edit_template_part.name.to_slug}_filter_id"
            %span{:id => "filter_reference_link_#{edit_template_part.name}"}
              = link_to_function t('filter'), "loadFilterReference('#{edit_template_part.name}');", :title => edit_template_part.filter_id
          %span{:id => "tag_reference_link_#{edit_template_part.name.to_slug}"}
            = link_to_function t('available_tags'), "loadTagReference('#{edit_template_part.name.to_slug}');"
      = find_and_preserve(template_part_field(edit_template_part, index, defined?(ConcurrentDraftExtension)))

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
radiant-templates-extension-1.0.8 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.7 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.6 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.5 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.4 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.3 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.2 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.1 app/views/admin/pages/_edit_template_part.html.haml
radiant-templates-extension-1.0.0 app/views/admin/pages/_edit_template_part.html.haml