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