18F/dolores-landingham-slack-bot

View on GitHub
app/views/quarterly_messages/_form.html.erb

Summary

Maintainability
Test Coverage
<%= simple_form_for @quarterly_message do |form| %>
  <%= form.input :title,
    hint: "This is for identifying purposes only, the employee will not see the message title" %>
  <%= form.input :body, label: "Message body",
    hint: "Don't forget, you can format your message using #{link_to "Slack's message formatting rules",
    "https://slack.zendesk.com/hc/en-us/articles/202288908-Formatting-your-messages", target: "_blank"}.".html_safe %>
  <%= form.input :tag_list, label: "Tags", hint: "Separate tags with commas to enter multiple tags at once.", input_html: {value: @quarterly_message.tag_list.to_s} %>
  <%= form.button :submit %>
<% end %>