Sha256: 0e2ceb330deab1b0dad9cdf316281dccf3b6c1a8919435e03770f897b90b9492
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
%td{colspan: 2, style: 'vertical-align: top; padding-left: 0px; padding-right: 0px'} = structure_form.hidden_field :id = structure_form.hidden_field :title = structure_form.hidden_field :page_partable_type = structure_form.hidden_field :name .structure-form .structure-form-menu %label= structure_form.object.title %ul - structure_form.object.page_partable.structure_items.sorted_by_structure.each_with_index do |structure_item, index| %li{class: ('active' if index == 0), data: {structure_item_id: structure_item.id}} = link_to "#structure_form_pane_#{structure_item.id}" do %i.sortable-handle.fa.fa-bars = structure_item.structure_parts.first.try(:structure_partable).try(:content) = structure_form.fields_for :page_partable do |form| - form.object.page_part = structure_form.object = link_to_add_fields form, :structure_items do = icon('plus') .structure-form-content = structure_form.fields_for :page_partable do |form| = form.fields_for :structure_items, form.object.structure_items.sorted_by_structure do |structure_item_form| = render 'structure_item_fields', f: structure_item_form
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spina-0.6.26 | app/views/spina/admin/page_partables/_structure_form.html.haml |
spina-0.6.25 | app/views/spina/admin/page_partables/_structure_form.html.haml |