Sha256: ce7c2d9a8cbcaed4e29a33709cdf91da035ceab504e2dea667ccbe707b900c84

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

.new_note_form[
  ng-form="forms.noteForm"
  check-error="forms.noteForm"
  ng-submit="sendNote($event, forms.noteForm)"
  check-error-object="note"
]
  textarea.textarea[
    ng-model="note.content"
    placeholder="#{t(:description, scope: [:account, :order_note, :placeholder])}"
    rows="2"
    name="note[content]"
    required=""
    display-error=""
    ng-maxlength="800"
    data-error-required="#{t(:blank, scope: [:errors, :message])}"
    data-error-maxlength="#{t(:too_long, scope: [:errors, :message], count: 800)}"
  ]
  i = t :policy, scope: [:account, :order_note, :text]
  button.button.medium.yellow[
    ng-click="sendNote($event, forms.noteForm)"
    ng-disabled="forms.noteForm.$submitted"
    ng-disabled-with="#{t(:submit_disabled, scope: [:account, :order_note, :button])}"
  ] = t(:submit, scope: [:account, :order_note, :button])

/ = form_for note, as: :note, url: account_order_notes_path(@order.try(:number) || params[:order_id]), remote: true, html: { class: 'new_note_form' } do |f|
  = f.text_area :content, rows: 2, placeholder: t(:description, scope: [:account, :order_note, :placeholder]), class: 'textarea'
  = f.submit t(:submit, scope: [:account, :order_note, :button]), class: 'button medium yellow', data: { disable_with: 'Wait...' }

/
  - note ||= Account::NoteForm.new(order_id: @order.try(:number) || params[:order_id])
  = form_for note, as: :note, url: account_order_notes_path(@order.try(:number) || params[:order_id]), remote: true, html: { class: 'new_note_form' } do |f|
    = f.text_area :content, rows: 2, placeholder: t(:description, scope: [:account, :order_note, :placeholder]), class: 'textarea'
    i = t :policy, scope: [:account, :order_note, :text]
    = f.submit t(:submit, scope: [:account, :order_note, :button]), class: 'button medium yellow', data: { disable_with: 'Wait...' }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/account/notes/_form.html.slim