Fixed modal forms. Submit form when hitting enter.
This commit is contained in:
parent
9c21a14c7e
commit
4966aae0ad
6 changed files with 13 additions and 13 deletions
|
@ -2,7 +2,7 @@
|
||||||
= f.hidden_field :shared_updated_on
|
= f.hidden_field :shared_updated_on
|
||||||
= f.hidden_field :supplier_id
|
= f.hidden_field :supplier_id
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
= link_to 'x', '#', class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Neuen Artikel einfügen
|
%h3 Neuen Artikel einfügen
|
||||||
.modal-body
|
.modal-body
|
||||||
= f.input :availability
|
= f.input :availability
|
||||||
|
@ -19,6 +19,6 @@
|
||||||
= f.input :tax
|
= f.input :tax
|
||||||
= f.input :deposit
|
= f.input :deposit
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
= link_to 'Schließen', '#', class: 'btn', data: {dismiss: 'modal'}
|
||||||
= f.submit class: 'btn btn-primary'
|
= f.submit class: 'btn btn-primary'
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
= simple_form_for @order, url: update_note_finance_order_path(@order), remote: true, method: :put do |f|
|
= simple_form_for @order, url: update_note_finance_order_path(@order), remote: true, method: :put do |f|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
= link_to 'x', '#', class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Notiz bearbeiten
|
%h3 Notiz bearbeiten
|
||||||
.modal-body
|
.modal-body
|
||||||
= f.input :note, input_html: {class: 'input-xlarge'}
|
= f.input :note, input_html: {class: 'input-xlarge'}
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
= link_to 'Schließen', '#', class: 'btn', data: {dismiss: 'modal'}
|
||||||
= f.submit "Speichern", class: 'btn btn-primary'
|
= f.submit "Speichern", class: 'btn btn-primary'
|
|
@ -1,11 +1,11 @@
|
||||||
= simple_form_for [:finance, @group_order_article], remote: true do |form|
|
= simple_form_for [:finance, @group_order_article], remote: true do |form|
|
||||||
= form.hidden_field :order_article_id
|
= form.hidden_field :order_article_id
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
= link_to 'x', '#', class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Mengenänderung für #{@order_article.article.name}
|
%h3 Mengenänderung für #{@order_article.article.name}
|
||||||
.modal-body
|
.modal-body
|
||||||
= form.input :ordergroup_id, as: :select, collection: Ordergroup.all.map { |g| [g.name, g.id] }
|
= form.input :ordergroup_id, as: :select, collection: Ordergroup.all.map { |g| [g.name, g.id] }
|
||||||
= form.input :result, hint: "Einheit: #{@order_article.article.unit}"
|
= form.input :result, hint: "Einheit: #{@order_article.article.unit}"
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
= link_to 'Schließen', '#', class: 'btn', data: {dismiss: 'modal'}
|
||||||
= form.submit "Speichern", class: 'btn btn-primary'
|
= form.submit "Speichern", class: 'btn btn-primary'
|
|
@ -1,6 +1,6 @@
|
||||||
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
= link_to 'x', '#', class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Artikel aktualisieren
|
%h3 Artikel aktualisieren
|
||||||
.modal-body
|
.modal-body
|
||||||
= form.input :units_to_order
|
= form.input :units_to_order
|
||||||
|
@ -20,5 +20,5 @@
|
||||||
= f.input :deposit
|
= f.input :deposit
|
||||||
= form.input :update_current_price, as: :boolean
|
= form.input :update_current_price, as: :boolean
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
= link_to 'Schließen', '#', class: 'btn', data: {dismiss: 'modal'}
|
||||||
= form.submit class: 'btn btn-primary'
|
= form.submit class: 'btn btn-primary'
|
|
@ -1,9 +1,9 @@
|
||||||
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
= link_to 'x', '#', class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Neuer gelieferter Artikel die Bestellung
|
%h3 Neuer gelieferter Artikel die Bestellung
|
||||||
.modal-body
|
.modal-body
|
||||||
= form.input :article_id, as: :select, collection: new_order_articles_collection
|
= form.input :article_id, as: :select, collection: new_order_articles_collection
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
= link_to 'Schließen', '#', class: 'btn', data: {dismiss: 'modal'}
|
||||||
= form.submit class: 'btn btn-primary'
|
= form.submit class: 'btn btn-primary'
|
|
@ -1,6 +1,6 @@
|
||||||
= simple_form_for @invite, remote: true do |form|
|
= simple_form_for @invite, remote: true do |form|
|
||||||
.modal-header
|
.modal-header
|
||||||
= button_tag "x", class: 'close', data: {dismiss: 'modal'}
|
= link_to 'x', '#', class: 'close', data: {dismiss: 'modal'}
|
||||||
%h3 Person einladen
|
%h3 Person einladen
|
||||||
.modal-body
|
.modal-body
|
||||||
%p
|
%p
|
||||||
|
@ -13,5 +13,5 @@
|
||||||
= form.hidden_field :group_id
|
= form.hidden_field :group_id
|
||||||
= form.input :email
|
= form.input :email
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= button_tag "Schließen", class: 'btn', data: {dismiss: 'modal'}
|
= link_to 'Schließen', '#', class: 'btn', data: {dismiss: 'modal'}
|
||||||
= form.submit class: 'btn btn-primary'
|
= form.submit class: 'btn btn-primary'
|
||||||
|
|
Loading…
Reference in a new issue