Created
June 9, 2011 04:41
-
-
Save daz/1016076 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form accept-charset="UTF-8" action="/suppliers/6/products/38" class="edit_product" data-remote="true" id="edit_product_38" method="post" name="edit_product_38"> | |
<div style="margin:0;padding:0;display:inline"> | |
<input name="utf8" type="hidden" value="✓"><input name="_method" type="hidden" value="put"><input name="authenticity_token" type="hidden" value="K5dKVuoTllzbCT5uJkWuHAoUsayE4Z5irFjXcuP2dME="> | |
</div> | |
<p><label for="product_name">Name</label> <input id="product_name" name="product[name]" size="30" type="text" value="Bacon Streaky Precooked"></p> | |
<p><label for="product_item_number">Item number</label> <input id="product_item_number" name="product[item_number]" size="30" type="text" value="40656"></p> | |
<p><label for="product_carton_quantity">Carton quantity</label> <input id="product_carton_quantity" name="product[carton_quantity]" size="30" type="text" value="4x1kg"></p> | |
<p><label for="product_uom">UOM</label> <input id="product_uom" name="product[uom]" size="30" type="text" value="Ctn"></p> | |
<p><label for="product_default_quantity">Default quantity</label> <input id="product_default_quantity" name="product[default_quantity]" size="30" type="text" value="4"></p> | |
<p class="align_right"><a href="#" class="cancel">cancel</a> <input name="commit" type="submit" value="Update Product"></p> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form accept-charset="UTF-8" action="/suppliers/6/products/38" class="edit_product" data-remote="true" id="edit_product_38" method="post" name="edit_product_38"> | |
<div style="margin:0;padding:0;display:inline"> | |
<input name="utf8" type="hidden" value="✓"><input name="_method" type="hidden" value="put"><input name="authenticity_token" type="hidden" value="K5dKVuoTllzbCT5uJkWuHAoUsayE4Z5irFjXcuP2dME=">div> | |
<p><label for="product_name">Namelabel> <input id="product_name" name="product[name]" size="30" type="text" value="Bacon" streaky="" precooked=""> p></label></p> | |
<p><label for="product_item_number">Item numberlabel> <input id="product_item_number" name="product[item_number]" size="30" type="text" value="40656"> p></label></p> | |
<p><label for="product_carton_quantity">Carton quantitylabel> <input id="product_carton_quantity" name="product[carton_quantity]" size="30" type="text" value="4x1kg"> p></label></p> | |
<p><label for="product_uom">UOMlabel> <input id="product_uom" name="product[uom]" size="30" type="text" value="Ctn"> p></label></p> | |
<p><label for="product_default_quantity">Default quantitylabel> <input id="product_default_quantity" name="product[default_quantity]" size="30" type="text" value="4"> p></label></p> | |
<p class="align_right"><a href="#" class="cancel">cancela> <input name="commit" type="submit" value="Update" product=""> p>form></a></p> | |
</div> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tr = $('tr[data-product-id="<%= @product.id %>"]'); | |
tr.data('revert', tr.html()) | |
.html('<td colspan="5"><%= raw escape_javascript(render :partial => "form") %></td>') | |
.addClass('editing'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment