Skip to content

Commit

Permalink
Add setting to admin settings screen
Browse files Browse the repository at this point in the history
  • Loading branch information
klaustopher committed Nov 21, 2024
1 parent 5167d7e commit 04d6ed9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions modules/costs/app/views/costs_settings/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= setting_check_box :allow_tracking_start_and_end_times, container_class: "-middle" %>
</div>

<div class="form--field">
<%= setting_check_box :enforce_tracking_start_and_end_times, container_class: "-middle" %>
</div>
<%- end %>
</section>

Expand Down
3 changes: 2 additions & 1 deletion modules/costs/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@ en:

project_module_costs: "Time and costs"

setting_allow_tracking_start_and_end_times: "Time records with start and end time"
setting_allow_tracking_start_and_end_times: "Allow users to track start and end time on time records"
setting_costs_currency: "Currency"
setting_costs_currency_format: "Format of currency"
setting_enforce_tracking_start_and_end_times: "Force users to set start and end time on time records"

text_assign_time_and_cost_entries_to_project: "Assign reported hours and costs to the project"
text_destroy_cost_entries_question: "%{cost_entries} were reported on the work packages you are about to delete. What do you want to do ?"
Expand Down

0 comments on commit 04d6ed9

Please sign in to comment.