<% settings = Setting.plugin_redmine_ux_toolkit || {} %>
<% checklists_enabled = settings.fetch('enable_checklists', '1').to_s != '0' %>

<p>
  <strong><%= l(:label_ux_toolkit_checklists) %></strong>
</p>

<p>
  <%= hidden_field_tag 'settings[enable_checklists]', '0', id: nil %>
  <%= check_box_tag 'settings[enable_checklists]',
                    '1',
                    checklists_enabled,
                    id: 'settings_enable_checklists' %>
  <%= label_tag 'settings_enable_checklists',
                l(:label_ux_toolkit_enable_checklists) %>
  <em class="info"><%= l(:text_ux_toolkit_enable_checklists_help) %></em>
</p>

<p>
  <%= link_to l(:label_ux_toolkit_checklist_templates),
              ux_toolkit_checklist_templates_path,
              class: 'icon icon-list' %>
  <em class="info"><%= l(:text_ux_toolkit_checklist_templates_admin_only) %></em>
</p>

<p>
  <%= link_to l(:label_ux_toolkit_tracker_checklist_defaults),
              ux_toolkit_tracker_checklist_templates_path,
              class: 'icon icon-settings' %>
  <em class="info"><%= l(:text_ux_toolkit_tracker_checklist_defaults_help) %></em>
</p>
