mirror of
https://github.com/rickbarrette/redmine_qbo_reminders.git
synced 2026-11-17 21:00:36 -05:00
Use redmine_qbo_calendar's configurable statuses; skip call-outs
The "statuses that get reminders" setting lists the statuses set up in redmine_qbo_calendar (falling back to the old fixed list on older versions). Reminder runs and the appointment page's reminder panel skip employee call-outs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
acad2614c7
commit
48275a25be
4 files changed
+10
-6
No files matched your search
@@ -85,10 +85,12 @@
|
||||
<p>
|
||||
<label><%= l(:label_reminders_statuses) %></label>
|
||||
<%= hidden_field_tag "#{field.call('statuses')}[]", '', id: nil %>
|
||||
<% CustomerAppointment::STATUSES.each do |status| %>
|
||||
<%# The statuses set up in redmine_qbo_calendar's settings (older versions had a fixed list) %>
|
||||
<% status_options = CustomerAppointment.respond_to?(:status_options) ? CustomerAppointment.status_options : CustomerAppointment::STATUSES.map { |st| [st.humanize, st] } %>
|
||||
<% status_options.each do |label, status| %>
|
||||
<label class="inline" style="margin-right: 10px">
|
||||
<%= check_box_tag "#{field.call('statuses')}[]", status, s.statuses.include?(status), id: "reminders_status_#{status.parameterize}" %>
|
||||
<%= status.humanize %>
|
||||
<%= label %>
|
||||
</label>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
Reference in new issue
Block a user