redmine_glossary/app/views/glossary/edit.html.erb @ 04643542
| 0819898b | Martin Denizet | <h2><%= l(:label_term) %> #<%= @term.id %></h2>
|
||
<% labelled_tabular_form_for :term, @term,
|
||||
| 04643542 | Martin DENIZET | :url => {:action => 'edit', :project_id => @project, :id => @term},
|
||
| 0819898b | Martin Denizet | :html => {:multipart => true, :id => 'term-form'} do |f| %>
|
||
<%= error_messages_for 'term' %>
|
||||
<div class="box">
|
||||
<%= render :partial => 'glossary/form', :locals => {:f => f} %>
|
||||
</div>
|
||||
<%= submit_tag l(:button_edit) %>
|
||||
<%= link_to_remote l(:label_preview),
|
||||
| 04643542 | Martin DENIZET | { :url => { :controller => 'glossary', :action => 'preview', :project_id => @project },
|
||
| 0819898b | Martin Denizet | :method => 'post',
|
||
:update => 'preview',
|
||||
:with => "Form.serialize('term-form')",
|
||||
:complete => "Element.scrollTo('preview')"
|
||||
}, :accesskey => accesskey(:preview) %>
|
||||
<% end %>
|
||||
<div id="preview" class="wiki"></div>
|
||||
<% html_title(l(:glossary_title)) -%>
|