OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/views/rb_stories/_helpers.html.erb

37 lines
1.4 KiB

<!-- story helper tags -->
<% @available_statuses_by_tracker.each do |tracker,issue_statuses| %>
<% issue_statuses.each do |old_status,allowed_issue_statuses| %>
<select class="status_id helper" id="status_id_options_<%= tracker.id %>_<%= old_status.id %>">
<% allowed_issue_statuses.each do |status| %>
<option value="<%= status.id %>" class="<%= (status.is_closed? ? l(:label_closed_issues) + ' ' : "") %>">
<%= status.name %>
</option>
<% end %>
</select>
<% end %>
<% end %>
<select class="status_id helper" id="status_id_options_default">
<option value="<%= IssueStatus.default.id %>" class="<%= (IssueStatus.default.is_closed? ? l(:label_closed_issues) + ' ' : "") %>">
<%= IssueStatus.default.name %>
</option>
</select>
<select class="status_id helper" id="status_id_options">
14 years ago
<% IssueStatus.find(:all, :order => "position ASC").each do |status| %>
<option value="<%= status.id %>" class="<%= (status.is_closed? ? l(:label_closed_issues) + ' ' : "") %>">
<%= status.name %>
</option>
<% end %>
</select>
<select class="tracker_id helper" id="tracker_id_options">
<% available_story_trackers.each do |tracker| %>
14 years ago
<option value="<%= tracker.id %>">
<%= tracker.name %>
</option>
<% end %>
</select>
<div id="story_template">
<%= render :partial => 'rb_stories/story', :object => Story.new %>
14 years ago
</div>