|
|
|
@ -27,17 +27,12 @@ See doc/COPYRIGHT.md for more details. |
|
|
|
|
<%= f.hidden_field :lock_version %> |
|
|
|
|
<p><label for="<%= content_type %>_comment"><%= Meeting.human_attribute_name(:comments) %></label><br /><%= f.text_field :comment, :size => 120 %></p> |
|
|
|
|
<p><%= submit_tag l(:button_save) %> |
|
|
|
|
<%= link_to_remote l(:label_preview), |
|
|
|
|
{:url => {:controller => '/' + content_type.pluralize, :action => 'preview', :meeting_id => content.meeting}, |
|
|
|
|
:method => :post, |
|
|
|
|
:update => "#{content_type}_preview", |
|
|
|
|
:with => "'text=' + encodeURIComponent($('#{content_type}_text').value)", |
|
|
|
|
:complete => "Element.scrollTo('#{content_type}_preview')" |
|
|
|
|
}, :accesskey => accesskey(:preview) %> | |
|
|
|
|
<% path = send("preview_#{content_type}_path", content.meeting) %> |
|
|
|
|
<%= preview_link path, "#{content_type}_form", { class: 'preview' } %> |
|
|
|
|
<%= link_to l(:button_cancel), "#", :onclick => "$$('.show-#{content_type}').invoke('show'); $$('.edit-#{content_type}').invoke('hide'); return false;" %></p> |
|
|
|
|
<%= wikitoolbar_for "#{content_type}_text" %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<div id="<%= content_type %>_preview" class="wiki"></div> |
|
|
|
|
<div id="preview" class="wiki"></div> |
|
|
|
|
|
|
|
|
|
<%= render :partial => 'shared/meeting_header' %> |
|
|
|
|