Sha256: 02c5b7370cc9eca891204e38738e727ae365742cebc931e93e9fed462f552176

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

- form ||= Account::TicketNoteForm.build(params)
= form_for form, as: :note, url: account_ticket_create_note_path(ticket_id: @form.ticket_id), method: :post, remote: true, html: { class: 'issues_chat_message' } do |f|
  = f.hidden_field :ticket_id
  = f.hidden_field :fileupload_guid
  .field_item
    = f.text_area :content, placeholder: I18n.t(:description, scope: [:account, :new_note, :placeholder])

    .field_item_buttons.ticket_files-uploader-root
      .field_item_buttons_wrapper
        = f.uploader_field :ticket_files, theme: 'ticket_files', data: { url: account_attachments_path(assetable_type: 'Account::TicketNoteForm', assetable_id: 0, guid: form.fileupload_guid, klass: 'TicketFile') }
        .field_buttons
          a.button.button_discard href="javascript:void(0);"
            = t(:cancel, scope: [:account, :new_note, :button])
          = f.submit t(:submit, scope: [:account, :new_note, :button]), class: 'button button_send', data: { disable_with: t(:submit_disabled, scope:[:account, :order_note, :button]) }
      .uploader_files_list
        ol.ticket_files-uploader-files

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/account/tickets/_note_form.html.slim