Sha256: 72aa24c8ed47a40435ae5b2468eaa11cb236c8354b6a2c0fbf8ff4850d727dcb
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
.form-container = simple_form_for @message, url: url_for(action: @message.new_record? ? "create" : "update", controller: "messages") do |f| = f.error_notification .form-inputs = f.input :name = f.input :subject, hint: "All emails are from <pre>#{html_escape(Rails.configuration.hackathon['email_from'])}</pre>".html_safe = f.input :template, as: :select, collection: Message::POSSIBLE_TEMPLATES.map { |x| [x.titleize, x] }, include_blank: false - if @message.status == "drafted" = f.input :recipients, as: :select, collection: Message.possible_recipients, input_html: { class: "selectize", multiple: true, }, hint: "Sent manually, in bulk", placeholder: "Type to search by school or type..." - else = f.input :recipients, as: :select, collection: Message.possible_recipients, input_html: { class: "selectize", multiple: true }, hint: "Cannot be edited once a message has been delivered", disabled: true = f.input :trigger, as: :select, collection: Message::POSSIBLE_TRIGGERS.invert, include_blank: "(no automatic trigger)", hint: "Sent automatically, to an individual applicant" = f.input :body, input_html: { rows: 10 }, hint: "Supports markdown and HTML" .form-actions = f.button :submit
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hackathon_manager-0.6.0 | app/views/manage/messages/_form.html.haml |