%= error_messages_for 'helpdesk_settings' %> <% if @project.module_enabled?(:contacts) && @project.module_enabled?(:issue_tracking) %> <% if canned_responses = CannedResponse.visible.in_project_or_public(@project).order("#{CannedResponse.table_name}.name") %>
<%= l(:field_name) %> | <%= l(:field_content) %> | <%= l(:field_is_public) %> | <%= l(:field_is_for_all) %> | |
---|---|---|---|---|
<%= canned_response.name %> | <%= canned_response.content.gsub(/$/, ' ').truncate(250) %> | <%= checked_image canned_response.is_public? %> | <%= checked_image canned_response.project.blank? %> | <% if User.current.allowed_to?(:manage_canned_responses, @project) %> <%= link_to l(:button_edit), edit_canned_response_path(canned_response), :class => 'icon icon-edit' %> <%= delete_link canned_response_path(canned_response, :project_id => @project) %> <% end %> |
<%= l(:label_no_data) %>
<% end %><%= link_to l(:label_helpdesk_new_canned_response), new_project_canned_response_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_canned_responses, @project) %>
<% else %><%= l(:label_helpdesk_enable_modules) %>
<% end %>