summaryrefslogtreecommitdiffstats
path: root/app/views/settings
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-12 23:09:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-12 23:09:18 +0000
commit04eefdc809b0a85ac83e6fe57f6153eeac333da1 (patch)
tree1aa11a5c3ca5a1ab58bb5de709e400d7740a893c /app/views/settings
parent82d96258f4418f567ebe5314f3d51c82d15efc8d (diff)
downloadredmine-04eefdc809b0a85ac83e6fe57f6153eeac333da1.tar.gz
redmine-04eefdc809b0a85ac83e6fe57f6153eeac333da1.zip
Adds settings to make the issue and/or comment fields mandatory for time logs (#24577).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16176 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings')
-rw-r--r--app/views/settings/_timelog.html.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/settings/_timelog.html.erb b/app/views/settings/_timelog.html.erb
new file mode 100644
index 000000000..4f922011b
--- /dev/null
+++ b/app/views/settings/_timelog.html.erb
@@ -0,0 +1,10 @@
+<%= form_tag({:action => 'edit', :tab => 'timelog'}) do %>
+
+<div class="box tabular settings">
+<p><%= setting_multiselect(:timelog_required_fields,
+ [[l(:field_issue), 'issue_id'], [l(:field_comments), 'comments'] ]) %></p>
+
+</div>
+
+<%= submit_tag l(:button_save) %>
+<% end %>