Sha256: 730608afa75245396484bf4b91e7c724175d9977f1f2d081243ae12f58d931d0

Contents?: true

Size: 1.78 KB

Versions: 10

Compression:

Stored size: 1.78 KB

Contents

<% 
form_id = "#{content.dom_id}_content_form"
mce_id = "#{content.dom_id}_content"
message_container_id = "#{content.dom_id}_message_container"
message_id = "#{content.dom_id}_message"
-%>
<div id="<%= message_container_id %>" class="help-box" style="display:none;">
  <div id="flashMessage" class="message">
    <div id="<%= message_id %>" class="notice message"></div>
  </div>
</div>

<%= show_preview(@content).html_safe %>

<div id="<%= "#{content.dom_id}" %>" class="content_editor">
  <%= muck_form_for(content, :url => url, :html => html.merge(:id => form_id, :class => 'content_form') ) do |f| -%>
    <%= f.text_field :title, {:class => 'title', :tip => t('muck.contents.title_help'), :label => t('muck.contents.title_label') } %>
    <%= f.text_field :tag_list, {:class => 'tags', :tip => t('muck.contents.tags_help'), :label => t('muck.contents.tags_label') } %>
    <%= f.muck_select(:layout, :value, :name, t('muck.contents.choose_layout'), @content_layouts, {:tip => t('muck.contents.choose_layout_help')}) %>
    <%= capture(f, &block) %>
    <%= f.text_area :body_raw, {:label => t('muck.contents.content_label'), :class => 'mceEditor', :id => mce_id, :tip_key => mce_id, :tip => t('muck.contents.content_help') } %>
    <div class="button form-row">
      <%= f.submit t('muck.contents.submit_content_button'), :class => "button share-submit", :id => "content_submit_#{content.dom_id}" %>
      <%= f.hidden_field :uri_path unless content.uri_path.blank? %>
      <%= f.hidden_field :custom_scope unless content.custom_scope.blank? %>
    </div>
    <%= mce_fields(@parent).html_safe -%>
  <% end %>
</div>

<%= tiny_mce_scripts(:form_id => form_id, :mce_id => mce_id, :message_container_id => message_container_id, :message_id => message_id, :save_button_id => "content_submit_#{content.dom_id}") -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
muck-contents-3.1.6 app/views/contents/_form.erb
muck-contents-3.1.5 app/views/contents/_form.erb
muck-contents-3.1.4 app/views/contents/_form.erb
muck-contents-3.1.3 app/views/contents/_form.erb
muck-contents-3.1.2 app/views/contents/_form.erb
muck-contents-3.1.1 app/views/contents/_form.erb
muck-contents-3.1.0 app/views/contents/_form.erb
muck-contents-3.0.2 app/views/contents/_form.erb
muck-contents-3.0.1 app/views/contents/_form.erb
muck-contents-3.0.0 app/views/contents/_form.erb