Sha256: 8a4e32553cecb0d5e0d36fa923229f5e2e49e7c2baf7166f98a50d0fcdc5a7ee

Contents?: true

Size: 609 Bytes

Versions: 3

Compression:

Stored size: 609 Bytes

Contents

<%= cambium_page_title(admin_form.title) %>

<div id="page-content"
     data-library="<%= cambium.admin_documents_path(:no_layout => true) %>">
  <%= cambium_form(@object, admin_form.fields) do |f| %>
    <% if @object.template.present? && @object.template.has_fields? %>
      <h2>Custom Template Fields</h2>
      <%= f.simple_fields_for :template_data,
                              OpenStruct.new(f.object.template_data) do |td| %>
        <% @object.template.fields.each do |field| %>
          <%= cambium_field(td, @object, field) %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cambium-1.3.2 app/views/cambium/admin/pages/edit.html.erb
cambium-1.3.1 app/views/cambium/admin/pages/edit.html.erb
cambium-1.3.0 app/views/cambium/admin/pages/edit.html.erb