To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / news / new.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (664 Bytes)
| 1 | 0:513646585e45 | Chris | <h2><%=l(:label_news_new)%></h2> |
|---|---|---|---|
| 2 | |||
| 3 | 909:cbb26bc654de | Chris | <% labelled_tabular_form_for @news, :url => project_news_index_path(@project),
|
| 4 | 0:513646585e45 | Chris | :html => { :id => 'news-form' } do |f| %>
|
| 5 | 909:cbb26bc654de | Chris | <%= render :partial => 'news/form', :locals => { :f => f } %>
|
| 6 | <%= submit_tag l(:button_create) %>
|
||
| 7 | <%= link_to_remote l(:label_preview),
|
||
| 8 | { :url => preview_news_path(:project_id => @project),
|
||
| 9 | :method => 'get',
|
||
| 10 | :update => 'preview',
|
||
| 11 | :with => "Form.serialize('news-form')"
|
||
| 12 | }, :accesskey => accesskey(:preview) %>
|
||
| 13 | 0:513646585e45 | Chris | <% end %>
|
| 14 | <div id="preview" class="wiki"></div> |