Handel
view release on metacpan or search on metacpan
lib/Catalyst/Helper/Controller/Handel/Cart.pm view on Meta::CPAN
[% FOREACH error IN errors %]
<li>[% HTML.escape(error) %]</li>
[% END %]
</ul>
[% END %]
__messages__
[% action %]/save:
name:
NOT_BLANK: The name field cannot be empty.
LENGTH: The name field must be between 1 and 50 characters.
[% action %]/update:
id:
REGEX: The id field is in the wrong format.
quantity:
NOT_BLANK: The quantity field cannot be empty.
UINT: The quantity field must be a positive number.
[% action %]/delete:
id:
REGEX: The id field is in the wrong format.
[% action %]/destroy:
id:
REGEX: The id field is in the wrong format.
[% action %]/restore:
id:
REGEX: The id field is in the wrong format.
mode:
BETWEEN: The mode field must be between 1 and 3.
__profiles__
[% action %]/save:
- name
- [ [NOT_BLANK], [LENGTH, 1, 50] ]
[% action %]/delete:
- id
-
-
- REGEX
- !!perl/regexp (?i-xsm:^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$)
[% action %]/destroy:
- id
-
-
- REGEX
- !!perl/regexp (?i-xsm:^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$)
[% action %]/update:
- id
-
-
- REGEX
- !!perl/regexp (?i-xsm:^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$)
- quantity
- [ [NOT_BLANK], [UINT] ]
[% action %]/restore:
- id
-
-
- REGEX
- !!perl/regexp (?i-xsm:^[a-f0-9]{8}-([a-f0-9]{4}-){3}[a-f0-9]{12}$)
- mode
- [ [BETWEEN, 1, 3] ]
__products__
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nifty New Products</title>
<base href="http://localhost:3000/" />
</head>
<body>
<h1>Nifty New Products</h1>
<p>
<a href="[% uri %]/">View Cart</a> |
</p>
<h2>Mendlefarg 3000</h2>
<p>
It slices. It dices. It MVCs!
</p>
<form action="[% uri %]/add/" method="POST">
<p>
<input type="hidden" name="sku" value="MFG3000" />
<input type="hidden" name="description" value="Mendlefarg 3000" />
<input type="hidden" name="price" value="19.95" />
<input type="text" name="quantity" value="1" size="3" />
<input type="submit" value="Add To Cart" />
</p>
</form>
<h2>Flimblebot 98</h2>
<p>
The most advanced flimble-based bot response software ever!
</p>
<form action="[% uri %]/add/" method="POST">
<p>
<input type="hidden" name="sku" value="FB98" />
<input type="hidden" name="description" value="Flimblebot 98 Single-User" />
<input type="hidden" name="price" value="12.34" />
<input type="text" name="quantity" value="1" size="3" />
<input type="submit" value="Add To Cart" />
</p>
</form>
</body>
</html>
__END__
( run in 2.177 seconds using v1.01-cache-2.11-cpan-d7f47b0818f )