@@ -2,13 +2,13 | |||||
2 |
|
2 | |||
3 | <% labelled_form_for @news, :url => project_news_index_path(@project), |
|
3 | <% labelled_form_for @news, :url => project_news_index_path(@project), | |
4 | :html => { :id => 'news-form' } do |f| %> |
|
4 | :html => { :id => 'news-form' } do |f| %> | |
5 |
|
|
5 | <%= render :partial => 'news/form', :locals => { :f => f } %> | |
6 |
|
|
6 | <%= submit_tag l(:button_create) %> | |
7 |
|
|
7 | <%= link_to_remote l(:label_preview), | |
8 |
|
|
8 | { :url => preview_news_path(:project_id => @project), | |
9 |
|
|
9 | :method => 'get', | |
10 |
|
|
10 | :update => 'preview', | |
11 |
|
|
11 | :with => "Form.serialize('news-form')" | |
12 |
|
|
12 | }, :accesskey => accesskey(:preview) %> | |
13 | <% end %> |
|
13 | <% end %> | |
14 | <div id="preview" class="wiki"></div> |
|
14 | <div id="preview" class="wiki"></div> |
General Comments 0
You need to be logged in to leave comments.
Login now