summaryrefslogtreecommitdiffstats
path: root/app/views/settings/_timelog.html.erb
blob: 01d42384bfeb8a3154bd72a5d74a2eea7b3e1343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<%= 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>

<p><%= setting_text_field :timelog_max_hours_per_day, :size => 6 %></p>

<p><%= setting_check_box :timelog_accept_0_hours %></p>

<p><%= setting_check_box :timelog_accept_future_dates %></p>
</div>

<fieldset class="box">
  <legend><%= l(:setting_time_entry_list_defaults) %></legend>

  <% query = TimeEntryQuery.new(Setting.time_entry_list_defaults) %>
  <%= hidden_field_tag('settings[time_entry_list_defaults][column_names][]', '') %>
  <%= render_query_columns_selection(query,
        :name => 'settings[time_entry_list_defaults][column_names]') %>
  <p>
    <label><%= l(:label_total_plural) %></label>
    <%= available_totalable_columns_tags(query,
          :name => 'settings[time_entry_list_defaults][totalable_names]') %>
  </p>
</fieldset>

<%= submit_tag l(:button_save) %>
<% end %>