Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
6
app/views/issue_categories/_form.html.erb
Normal file
6
app/views/issue_categories/_form.html.erb
Normal file
|
@ -0,0 +1,6 @@
|
|||
<%= error_messages_for 'category' %>
|
||||
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :name, :size => 60, :required => true %></p>
|
||||
<p><%= f.select :assigned_to_id, principals_options_for_select(@project.assignable_users, @category.assigned_to), :include_blank => true %></p>
|
||||
</div>
|
9
app/views/issue_categories/_new_modal.html.erb
Normal file
9
app/views/issue_categories/_new_modal.html.erb
Normal file
|
@ -0,0 +1,9 @@
|
|||
<h3 class="title"><%=l(:label_issue_category_new)%></h3>
|
||||
|
||||
<%= labelled_form_for @category, :as => 'issue_category', :url => project_issue_categories_path(@project), :remote => true do |f| %>
|
||||
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
|
||||
<p class="buttons">
|
||||
<%= submit_tag l(:button_create), :name => nil %>
|
||||
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "hideModal(this);", :type => 'button' %>
|
||||
</p>
|
||||
<% end %>
|
3
app/views/issue_categories/create.js.erb
Normal file
3
app/views/issue_categories/create.js.erb
Normal file
|
@ -0,0 +1,3 @@
|
|||
hideModal();
|
||||
<% select = content_tag('select', content_tag('option') + options_from_collection_for_select(@project.issue_categories, 'id', 'name', @category.id), :id => 'issue_category_id', :name => 'issue[category_id]') %>
|
||||
$('#issue_category_id').replaceWith('<%= escape_javascript(select) %>');
|
16
app/views/issue_categories/destroy.html.erb
Normal file
16
app/views/issue_categories/destroy.html.erb
Normal file
|
@ -0,0 +1,16 @@
|
|||
<h2><%=l(:label_issue_category)%>: <%=h @category.name %></h2>
|
||||
|
||||
<%= form_tag(issue_category_path(@category), :method => :delete) do %>
|
||||
<div class="box">
|
||||
<p><strong><%= l(:text_issue_category_destroy_question, @issue_count) %></strong></p>
|
||||
<p><label><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_issue_category_destroy_assignments) %></label><br />
|
||||
<% if @categories.size > 0 %>
|
||||
<label><%= radio_button_tag 'todo', 'reassign', false %> <%= l(:text_issue_category_reassign_to) %></label>:
|
||||
<%= label_tag "reassign_to_id", l(:description_issue_category_reassign), :class => "hidden-for-sighted" %>
|
||||
<%= select_tag 'reassign_to_id', options_from_collection_for_select(@categories, 'id', 'name') %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag l(:button_apply) %>
|
||||
<%= link_to l(:button_cancel), :controller => 'projects', :action => 'settings', :id => @project, :tab => 'categories' %>
|
||||
<% end %>
|
7
app/views/issue_categories/edit.html.erb
Normal file
7
app/views/issue_categories/edit.html.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<h2><%=l(:label_issue_category)%></h2>
|
||||
|
||||
<%= labelled_form_for @category, :as => :issue_category,
|
||||
:url => issue_category_path(@category), :html => {:method => :put} do |f| %>
|
||||
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
10
app/views/issue_categories/index.api.rsb
Normal file
10
app/views/issue_categories/index.api.rsb
Normal file
|
@ -0,0 +1,10 @@
|
|||
api.array :issue_categories, api_meta(:total_count => @categories.size) do
|
||||
@categories.each do |category|
|
||||
api.issue_category do
|
||||
api.id category.id
|
||||
api.project(:id => category.project_id, :name => category.project.name) unless category.project.nil?
|
||||
api.name category.name
|
||||
api.assigned_to(:id => category.assigned_to_id, :name => category.assigned_to.name) unless category.assigned_to.nil?
|
||||
end
|
||||
end
|
||||
end
|
7
app/views/issue_categories/new.html.erb
Normal file
7
app/views/issue_categories/new.html.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
<h2><%=l(:label_issue_category_new)%></h2>
|
||||
|
||||
<%= labelled_form_for @category, :as => :issue_category,
|
||||
:url => project_issue_categories_path(@project) do |f| %>
|
||||
<%= render :partial => 'issue_categories/form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_create) %>
|
||||
<% end %>
|
2
app/views/issue_categories/new.js.erb
Normal file
2
app/views/issue_categories/new.js.erb
Normal file
|
@ -0,0 +1,2 @@
|
|||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'issue_categories/new_modal') %>');
|
||||
showModal('ajax-modal', '600px');
|
6
app/views/issue_categories/show.api.rsb
Normal file
6
app/views/issue_categories/show.api.rsb
Normal file
|
@ -0,0 +1,6 @@
|
|||
api.issue_category do
|
||||
api.id @category.id
|
||||
api.project(:id => @category.project_id, :name => @category.project.name) unless @category.project.nil?
|
||||
api.name @category.name
|
||||
api.assigned_to(:id => @category.assigned_to_id, :name => @category.assigned_to.name) unless @category.assigned_to.nil?
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue