Fixed admin, orders, wiki views. Converted all erb to haml.
This commit is contained in:
parent
699fb9b233
commit
552c553b77
169 changed files with 1158 additions and 1307 deletions
|
|
@ -1,5 +1,5 @@
|
|||
= simple_form_for order_comment, :remote => true, :validate => true do |f|
|
||||
= simple_form_for order_comment, remote: true, html: {class: 'form-vertical'} do |f|
|
||||
= f.hidden_field :order_id
|
||||
= f.hidden_field :user_id
|
||||
= f.input :text, :input_html => {:size => "50x6"}
|
||||
= f.submit
|
||||
= f.input :text, input_html: {class: 'input-xlarge', rows: '5'}
|
||||
= f.submit class: 'btn'
|
||||
|
|
@ -1 +0,0 @@
|
|||
$('#comments').html('<%= escape_javascript(render(:partial => 'shared/comments', :locals => { :comments => @order_comment.order.comments })) %>');
|
||||
1
app/views/order_comments/create.js.haml
Normal file
1
app/views/order_comments/create.js.haml
Normal file
|
|
@ -0,0 +1 @@
|
|||
$('#comments').html('#{escape_javascript(render(:partial => 'shared/comments', :locals => { :comments => @order_comment.order.comments }))}');
|
||||
|
|
@ -1 +0,0 @@
|
|||
$('#new_comment').html('<%= escape_javascript(render('form', :locals => { :order_comment => @order_comment})) %>');
|
||||
1
app/views/order_comments/new.js.haml
Normal file
1
app/views/order_comments/new.js.haml
Normal file
|
|
@ -0,0 +1 @@
|
|||
$('#new_comment').html('#{escape_javascript(render('form', :locals => { :order_comment => @order_comment}))}');
|
||||
Loading…
Add table
Add a link
Reference in a new issue