Nuevo plugin Redmine Glossary 0.9.2
This commit is contained in:
parent
5d298a7529
commit
693eb3ee50
72 changed files with 2962 additions and 0 deletions
30
plugins/redmine_glossary/app/views/glossary/new.html.erb
Executable file
30
plugins/redmine_glossary/app/views/glossary/new.html.erb
Executable file
|
@ -0,0 +1,30 @@
|
|||
<h2><%=l(:label_term_new)%></h2>
|
||||
|
||||
<% form = labelled_form_for @term, :as => :term,
|
||||
:url => {:action => 'new', :project_id => @project, :id => @term},
|
||||
:html => {:class => 'tabular', :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_create) %>
|
||||
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
||||
<% 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 %>
|
||||
<% end %>
|
||||
<%= form if Rails::VERSION::MAJOR >= 3 %>
|
||||
|
||||
<div id="preview" class="wiki"></div>
|
||||
|
||||
<% html_title(l(:glossary_title)) -%>
|
Loading…
Add table
Add a link
Reference in a new issue