Sha256: f2aac4df021b549ad08740fda5629a7894f734332b55f7010f95e12809671ac9

Contents?: true

Size: 1.52 KB

Versions: 21

Compression:

Stored size: 1.52 KB

Contents

.form-container
  = bs_horizontal_simple_form_for @message, url: url_for(action: @message.new_record? ? "create" : "update", controller: "messages") do |f|
    = f.error_notification

    .form-inputs
      = f.input :type, as: :select, collection: Message::POSSIBLE_TYPES.map { |x| [x.titleize, x] }, include_blank: false
      = f.input :trigger, as: :select, collection: Message::POSSIBLE_TRIGGERS.invert, include_blank: "(disabled)"
      = f.input :name
      = f.input :subject, hint: "All emails are from <pre class=\"d-inline\">#{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,  }, 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
      %br

      %h5.mb-3 Body
      = f.input :body, input_html: { rows: 36, 'data-message-live-preview-base-src' => live_preview_manage_messages_path, style: 'font-size: 14px', 'data-simple-mde' => '1' }, hint: "Supports markdown and HTML", label: false, wrapper: :bootstrap_inline_form

    .form-actions.mb-3
      = f.button :submit, class: 'btn-primary'

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hackathon_manager-0.13.12 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.11 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.10 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.9 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.8 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.7 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.6 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.5 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.4 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.3 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.2 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.1 app/views/manage/messages/_form.html.haml
hackathon_manager-0.13.0 app/views/manage/messages/_form.html.haml
hackathon_manager-0.12.2 app/views/manage/messages/_form.html.haml
hackathon_manager-0.12.1 app/views/manage/messages/_form.html.haml
hackathon_manager-0.12.0 app/views/manage/messages/_form.html.haml
hackathon_manager-0.11.2 app/views/manage/messages/_form.html.haml
hackathon_manager-0.11.1 app/views/manage/messages/_form.html.haml
hackathon_manager-0.11.0 app/views/manage/messages/_form.html.haml
hackathon_manager-0.10.3 app/views/manage/messages/_form.html.haml