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
38
plugins/redmine_glossary/app/views/glossary/_form.html.erb
Executable file
38
plugins/redmine_glossary/app/views/glossary/_form.html.erb
Executable file
|
@ -0,0 +1,38 @@
|
|||
|
||||
<p><%= f.text_field :name, :label=>t('label.name'), :size => 100, :required => true %></p>
|
||||
|
||||
<% for prm in Term.setting_params %>
|
||||
<% if param_visible?(prm) %>
|
||||
<p><%= f.text_field prm, :label=>label_param(prm), :size => 100 %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<div class="splitcontentleft">
|
||||
<p><%= f.select :category_id, (@term_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
|
||||
<% if Rails::VERSION::MAJOR >= 3 %>
|
||||
<%= link_to(l(:label_term_category_new),
|
||||
{:controller => 'glossary', :action => 'add_term_category', :project_id => @project.id },
|
||||
:category => 'category[name]',
|
||||
:class => 'icon icon-add',
|
||||
:tabindex => 199,
|
||||
:method => 'get',
|
||||
:remote => true) if authorize_for('glossary', 'add_term_category') %></p>
|
||||
<% else %>
|
||||
<%= prompt_to_remote(l(:label_term_category_new),
|
||||
l(:label_term_category_new), 'category[name]',
|
||||
{:controller => 'glossary', :action => 'add_term_category', :project_id => @project },
|
||||
:class => 'icon icon-add', :tabindex => 199) if authorize_for('glossary', 'add_term_category') %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
<p><%= f.text_area :description, :label=>t('label.description'),
|
||||
:cols => 60,
|
||||
:rows => (@term.description.blank? ? 10 : [[10, @term.description.length / 50].max, 100].min),
|
||||
:accesskey => accesskey(:edit),
|
||||
:class => 'wiki-edit' %></p>
|
||||
|
||||
|
||||
|
||||
<p />
|
||||
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
|
||||
|
||||
<%= wikitoolbar_for 'term_description' %>
|
Loading…
Add table
Add a link
Reference in a new issue