##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14993:c418fab8a76b
r15119:53710d80fc88
Show More
_attributes.html.erb
83 lines | 3.7 KiB | text/plain | TextLexer
/ app / views / issues / _attributes.html.erb
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 <%= labelled_fields_for :issue, @issue do |f| %>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994
Jean-Philippe Lang
Removed "clear:both" divs that break the issue form with long sidebar content....
r8738 <div class="splitcontent">
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994 <div class="splitcontentleft">
Jean-Philippe Lang
Don't display the dropdown if no transition is allowed....
r10284 <% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
Jean-Philippe Lang
Set default project version after selecting a different project on the new issue form (#1828)....
r14406 :onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
Jean-Philippe Lang
Default status per tracker (#5991)....
r13153 <%= hidden_field_tag 'was_default_status', @issue.status_id, :id => nil if @issue.status == @issue.default_status %>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994 <% else %>
Jean-Philippe Lang
Default status per tracker (#5991)....
r13153 <p><label><%= l(:field_status) %></label> <%= @issue.status %></p>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994 <% end %>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% if @issue.safe_attribute? 'priority_id' %>
Jean-Philippe Lang
Fixed that triority field is always disabled on parent tasks (#20992)....
r14289 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true} %></p>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% end %>
<% if @issue.safe_attribute? 'assigned_to_id' %>
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 <p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true, :required => @issue.required_attribute?('assigned_to_id') %></p>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% end %>
Jean-Philippe Lang
Allows project to be changed from the regular issue update action (#4769, #9803)....
r8411 <% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %>
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 <p><%= f.select :category_id, (@issue.project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true, :required => @issue.required_attribute?('category_id') %>
Jean-Philippe Lang
Improve accessibility for icon-only links by adding hidden text (#21805)....
r14889 <%= link_to(l(:label_issue_category_new),
Jean-Philippe Lang
Removes calls to link_to_remote....
r9846 new_project_issue_category_path(@issue.project),
:remote => true,
:method => 'get',
:title => l(:label_issue_category_new),
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 :tabindex => 200,
:class => 'icon-only icon-add'
) if User.current.allowed_to?(:manage_categories, @issue.project) %></p>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994 <% end %>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107
<% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %>
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 <p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true, :required => @issue.required_attribute?('fixed_version_id') %>
Jean-Philippe Lang
Improve accessibility for icon-only links by adding hidden text (#21805)....
r14889 <%= link_to(l(:label_version_new),
Jean-Philippe Lang
Removes calls to link_to_remote....
r9846 new_project_version_path(@issue.project),
:remote => true,
:method => 'get',
:title => l(:label_version_new),
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 :tabindex => 200,
:class => 'icon-only icon-add'
) if User.current.allowed_to?(:manage_versions, @issue.project) %>
Jean-Philippe Lang
Ability to add a new version from the issue form (#4315)....
r3012 </p>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994 <% end %>
</div>
<div class="splitcontentright">
Jean-Philippe Lang
Code cleanup....
r8080 <% if @issue.safe_attribute? 'parent_issue_id' %>
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10, :required => @issue.required_attribute?('parent_issue_id') %></p>
Jean-Philippe Lang
Parent issue autocomplete does not follow to the "Allow cross-project subtasks" setting (#14281)....
r13037 <%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks)}')" %>
Jean-Philippe Lang
Moved the parent issue field above start/due date fields....
r5298 <% end %>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107
<% if @issue.safe_attribute? 'start_date' %>
Toshi MARUYAMA
add test of current issue start and due date datepicker (#14024)...
r11649 <p id="start_date_area">
Jean-Philippe Lang
Use HTML5 date input fields instead of text fields with jquery ui date pickers (#19468)....
r14993 <%= f.date_field(:start_date, :size => 10, :required => @issue.required_attribute?('start_date')) %>
Jean-Philippe Lang
Display calendar for dates independent of subtasks (#21219)....
r14591 <%= calendar_for('issue_start_date') %>
Toshi MARUYAMA
code layout clean up app/views/issues/_attributes.html.erb...
r11593 </p>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% end %>
<% if @issue.safe_attribute? 'due_date' %>
Toshi MARUYAMA
add test of current issue start and due date datepicker (#14024)...
r11649 <p id="due_date_area">
Jean-Philippe Lang
Use HTML5 date input fields instead of text fields with jquery ui date pickers (#19468)....
r14993 <%= f.date_field(:due_date, :size => 10, :required => @issue.required_attribute?('due_date')) %>
Jean-Philippe Lang
Display calendar for dates independent of subtasks (#21219)....
r14591 <%= calendar_for('issue_due_date') %>
Toshi MARUYAMA
code layout clean up app/views/issues/_attributes.html.erb...
r11593 </p>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% end %>
<% if @issue.safe_attribute? 'estimated_hours' %>
Jean-Philippe Lang
Adds settings to control start/due dates and priority on parent tasks (#5490)....
r13887 <p><%= f.text_field :estimated_hours, :size => 3, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% end %>
Jean-Philippe Lang
Adds settings to control start/due dates and priority on parent tasks (#5490)....
r13887 <% if @issue.safe_attribute?('done_ratio') && Issue.use_field_for_done_ratio? %>
Jean-Philippe Lang
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
r9794 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }), :required => @issue.required_attribute?('done_ratio') %></p>
Eric Davis
Adds a Setting to control how an Issue's done_ratio is calculated:...
r3037 <% end %>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994 </div>
Jean-Philippe Lang
Removed "clear:both" divs that break the issue form with long sidebar content....
r8738 </div>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% if @issue.safe_attribute? 'custom_field_values' %>
Eric Davis
Use the full path to the partials...
r3975 <%= render :partial => 'issues/form_custom_fields' %>
Jean-Philippe Lang
Display issue form fields according to permissions....
r8107 <% end %>
Jean-Philippe Lang
Enable tracker update on issue edit form (#2405)....
r2994
<% end %>
Jean-Philippe Lang
Ability to disable standard fields on a per tracker basis (#1091)....
r9729
<% include_calendar_headers_tags %>