Skip to content

Instantly share code, notes, and snippets.

@ralphos
Created May 21, 2014 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphos/ece8821e6f18a86adba6 to your computer and use it in GitHub Desktop.
Save ralphos/ece8821e6f18a86adba6 to your computer and use it in GitHub Desktop.
local html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head data-hook="admin_inside_head">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta content="authenticity_token" name="csrf-param" />
<meta content="beeCDc469lxCuPS92r8QzKDGqJnSr99A9vO5m291Cg4=" name="csrf-token" />
<title>ABC Shop Administration:
Variants</title>
<link href="/assets/admin/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="/assets/admin/application.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/assets/admin/application.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
$ = jQuery;
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
var AUTH_TOKEN = "beeCDc469lxCuPS92r8QzKDGqJnSr99A9vO5m291Cg4=";
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
jQuery.alerts.dialogClass = 'spree';
var AUTH_TOKEN = "beeCDc469lxCuPS92r8QzKDGqJnSr99A9vO5m291Cg4=";
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
ajax_urls = {"product_search_json":"http://localhost:3000/admin/products.json","product_search_basic_json":"http://localhost:3000/admin/products.json?json_format=basic&limit=10","user_search_basic_json":"http://localhost:3000/admin/users.json?json_format=basic&limit=10"};
strings = {"searching":"Searching"}
//]]>
</script>
</head>
<body class="admin">
<!--[if IE 7]>
<div id='IE7'>
<![endif]-->
<div id="wrapper" data-hook>
<div id="header" data-hook>
<ul id="login-nav">
<li>
Logged in as: wintle.ralph@gmail.com.local
</li>
<li><a href="/users/517924/edit">Account</a></li>
<li><a href="/user/logout">Logout</a></li>
<li><a href="/">Store</a></li>
</ul>
<a href="/admin"><img alt="Logo" id="logo" src="/assets/admin/logo.png" /></a>
<h1><a href="/admin">Administration</a></h1>
<div id="progress">
<img alt="Progress" src="/assets/admin/progress.gif" /> Loading...</div>
</div>
<div id="admin-menu" data-hook>
<ul data-hook="admin_tabs">
<li class=""><a href="/admin">Overview</a></li>
<li class=""><a href="/admin/orders">Orders</a></li>
<li class="selected"><a href="/admin/products">Products</a></li>
<li class=""><a href="/admin/reports">Reports</a></li>
<li class=""><a href="/admin/configurations">Configuration</a></li>
<li class=""><a href="/admin/users">Users</a></li>
<li class=""><a href="/stores/admin/stores">Stores</a></li><li class=""><a href="/redirect/admin/links">Redirects</a></li><li class=""><a href="/rich_text_pages/admin/promotion_pages">Rich Text Pages</a></li><li class=""><a href="/admin/paypal_payment_imports">Bulk Paypal Payments</a></li> <li class=""><a href="/stores/admin/negative_customisations">Negative Customisations</a></li>
</ul>
<br class="clear">
</div>
<div id="sub-menu" data-hook>
<ul id="sub_nav" data-hook="admin_product_sub_tabs">
<li class="selected"><a href="/admin/products">Products</a></li>
<li class=""><a href="/admin/option_types">Option Types</a></li>
<li class=""><a href="/admin/properties">Properties</a></li>
<li class=""><a href="/admin/prototypes">Prototypes</a></li>
<li class="last"><a href="/admin/product_groups">Product Groups</a></li>
<li class=""><a href="/admin/product_reviews">Pending Review</a></li>
<li class=""><a href="/admin/reviews">Review Management</a></li>
</ul>
<br class="clear">
</div>
<div class="with-sidebar clear tile_bg" id="content" data-hook>
<h1>Editing Product &ldquo;Peppa Pig - Red Dress&rdquo;</h1>
<table class="index sortable">
<tr>
<th>Options</th>
<th>Price</th>
<th>PLU</th>
<th>Available for preorder</th>
<th>Release Date</th>
<th>Available On</th>
<!--<th></th>-->
<th>On Hand</th>
<th>Action</th>
</tr>
<!-- you can skip variant with no options: that's just the default variant that all products have -->
<tr id="variant_78401" >
<td><span class="handle"></span> Size: 5</td>
<td>32.99</td>
<td>410952</td>
<td>true</td>
<td>2013-10-01 00:00:00 +1000</td>
<td></td>
<!--<td></td>-->
<td></td>
<td valign="top">
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78401/edit" class="icon_link"><img alt="Edit" src="/assets/admin/icons/edit.png" /> Edit</a>
&nbsp;
<a href="#" onclick="jConfirm(&#x27;Are you sure?&#x27;, &#x27;Confirm Deletion&#x27;, function(r) {
if(r){
jQuery.ajax({
type: &#x27;POST&#x27;,
url: &#x27;http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78401&#x27;,
data: ({_method: &#x27;delete&#x27;, authenticity_token: AUTH_TOKEN}),
dataType:&#x27;script&#x27;,
success: function(r){ jQuery(&#x27;#variant_78401&#x27;).fadeOut(&#x27;hide&#x27;); }
});
}
});; return false;"><img alt="Delete" src="/assets/admin/icons/delete.png" /> Delete</a>
</td>
</tr>
<!-- you can skip variant with no options: that's just the default variant that all products have -->
<tr id="variant_78399" >
<td><span class="handle"></span> Size: 3</td>
<td>32.99</td>
<td>410936</td>
<td>false</td>
<td>2013-10-01 00:00:00 +1000</td>
<td>2014-02-01 11:00:00 +1100</td>
<!--<td></td>-->
<td></td>
<td valign="top">
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78399/edit" class="icon_link"><img alt="Edit" src="/assets/admin/icons/edit.png" /> Edit</a>
&nbsp;
<a href="#" onclick="jConfirm(&#x27;Are you sure?&#x27;, &#x27;Confirm Deletion&#x27;, function(r) {
if(r){
jQuery.ajax({
type: &#x27;POST&#x27;,
url: &#x27;http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78399&#x27;,
data: ({_method: &#x27;delete&#x27;, authenticity_token: AUTH_TOKEN}),
dataType:&#x27;script&#x27;,
success: function(r){ jQuery(&#x27;#variant_78399&#x27;).fadeOut(&#x27;hide&#x27;); }
});
}
});; return false;"><img alt="Delete" src="/assets/admin/icons/delete.png" /> Delete</a>
</td>
</tr>
<!-- you can skip variant with no options: that's just the default variant that all products have -->
<tr id="variant_78400" >
<td><span class="handle"></span> Size: 4</td>
<td>32.99</td>
<td>410944</td>
<td>true</td>
<td>2013-10-01 00:00:00 +1000</td>
<td></td>
<!--<td></td>-->
<td></td>
<td valign="top">
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78400/edit" class="icon_link"><img alt="Edit" src="/assets/admin/icons/edit.png" /> Edit</a>
&nbsp;
<a href="#" onclick="jConfirm(&#x27;Are you sure?&#x27;, &#x27;Confirm Deletion&#x27;, function(r) {
if(r){
jQuery.ajax({
type: &#x27;POST&#x27;,
url: &#x27;http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78400&#x27;,
data: ({_method: &#x27;delete&#x27;, authenticity_token: AUTH_TOKEN}),
dataType:&#x27;script&#x27;,
success: function(r){ jQuery(&#x27;#variant_78400&#x27;).fadeOut(&#x27;hide&#x27;); }
});
}
});; return false;"><img alt="Delete" src="/assets/admin/icons/delete.png" /> Delete</a>
</td>
</tr>
<!-- you can skip variant with no options: that's just the default variant that all products have -->
<tr id="variant_78398" >
<td><span class="handle"></span> Size: 2</td>
<td>32.99</td>
<td>410928</td>
<td>true</td>
<td>2013-10-01 00:00:00 +1000</td>
<td></td>
<!--<td></td>-->
<td></td>
<td valign="top">
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78398/edit" class="icon_link"><img alt="Edit" src="/assets/admin/icons/edit.png" /> Edit</a>
&nbsp;
<a href="#" onclick="jConfirm(&#x27;Are you sure?&#x27;, &#x27;Confirm Deletion&#x27;, function(r) {
if(r){
jQuery.ajax({
type: &#x27;POST&#x27;,
url: &#x27;http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/78398&#x27;,
data: ({_method: &#x27;delete&#x27;, authenticity_token: AUTH_TOKEN}),
dataType:&#x27;script&#x27;,
success: function(r){ jQuery(&#x27;#variant_78398&#x27;).fadeOut(&#x27;hide&#x27;); }
});
}
});; return false;"><img alt="Delete" src="/assets/admin/icons/delete.png" /> Delete</a>
</td>
</tr>
</table>
<div id="new_variant"></div>
<br/>
<p id="new_var_link">
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants/new" class="iconlink new" data-remote="true" data-update="new_variant"><img alt="Add" src="/assets/admin/icons/add.png" /> New Variant</a>
&nbsp;|&nbsp;
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants?deleted=on">Show Deleted</a>
</p>
<img alt="Spinner" id="busy_indicator" plugin="spree" src="/assets/admin/spinner.gif" style="display:none" />
<br class="clear">
<div id="sidebar" data-hook>
<h3>
Peppa Pig - Red Dress<span class="sku">872106</span>
</h3>
<br class="clear">
<ul class="sidebar product-menu" data-hook="admin_product_tabs">
<li >
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/edit">Product Details</a>
</li>
<li >
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/images">Images</a>
</li>
<li class="active">
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/variants">Variants</a>
</li>
<li >
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/option_types/selected">Option Types</a>
</li>
<li >
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/product_properties">Product Properties</a>
</li>
<li >
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/taxons/selected">Taxons</a>
</li>
<li >
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/samples"><span class="translation_missing" title="translation missing: en.samples">Samples</span></a>
</li>
<li >
<a href="http://localhost:3000/admin/products/peppa-pig-red-dress-s13-o-slash-o/related">Related Products</a>
</li>
</ul>
<br class="clear">
</div>
</div>
<div id="footer" data-hook>
<p>Icons by <a href="http://pinvoke.com">pInvoke</a></p>
</div>
</div>
<!--[if IE]>
</div>
<![endif]-->
<div data-hook="admin_footer_scripts"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment