summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-02-21 01:45:16 +0000
committerGo MAEDA <maeda@farend.jp>2021-02-21 01:45:16 +0000
commita8072b0d0f201754cfc6f0867b642fdb43af6054 (patch)
tree017985ca1118605da3c0fb51897bd9bea7f2596a /app/views
parentf8d96bb3598f4d3ffcdb0c4b8325e80ad9541128 (diff)
downloadredmine-a8072b0d0f201754cfc6f0867b642fdb43af6054.tar.gz
redmine-a8072b0d0f201754cfc6f0867b642fdb43af6054.zip
Add an interface to filter activities by user (#33602).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@20752 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/activities/index.html.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb
index f71266004..e7f179ebe 100644
--- a/app/views/activities/index.html.erb
+++ b/app/views/activities/index.html.erb
@@ -36,6 +36,10 @@
<%= t(:label_days_to_html, :days => @days, :date => date_field_tag('from', '', :value => (@date_to - 1), :size => 10)) %>
<%= calendar_for('from') %>
</p>
+<p>
+ <%= l(:label_user) %>
+ <%= select_tag('user_id', activity_authors_options_for_select(@project, params[:user_id]), include_blank: true) %>
+</p>
<ul>
<% @activity.event_types.each do |t| %>
<li>
@@ -51,7 +55,6 @@
<%= hidden_field_tag 'with_subprojects', 0, :id => nil %>
<p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
<% end %>
-<%= hidden_field_tag('user_id', params[:user_id]) unless params[:user_id].blank? %>
<p><%= submit_tag l(:button_apply), :class => 'button-small', :name => 'submit' %></p>
<% end %>
<% end %>