2016-08-07 06:14:05 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
2021-04-08 02:01:48 +00:00
|
|
|
<title>Rocket: Cookie Message</title>
|
2016-08-07 06:14:05 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-04-08 02:01:48 +00:00
|
|
|
<h1>Rocket Cookie Message</h1>
|
2016-08-07 06:14:05 +00:00
|
|
|
|
2023-11-01 17:08:57 +00:00
|
|
|
<p>
|
|
|
|
{{#if present}}
|
|
|
|
{{#if message}}
|
|
|
|
<b>Message:</b> <i>{{message}}</i>
|
|
|
|
{{else}}
|
|
|
|
<b>Message:</b> <i>[empty message]</i>
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
<b>No message yet.</b>
|
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<form id="set" action="/message" method="post">
|
|
|
|
<textarea placeholder="Your message here..." name="message" rows="10" cols="50"></textarea>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form id="delete" action="/message" method="post">
|
|
|
|
<input type="hidden" name="_method" value="delete" />
|
2016-08-07 06:14:05 +00:00
|
|
|
</form>
|
2021-04-08 02:01:48 +00:00
|
|
|
|
2023-11-01 17:08:57 +00:00
|
|
|
<p>
|
|
|
|
<input type="submit" form="set" value="Set Message" />
|
|
|
|
<input type="submit" form="delete" value="Clear Message" />
|
|
|
|
</p>
|
|
|
|
|
2021-04-08 02:01:48 +00:00
|
|
|
<a href="/">Home</a>
|
2016-08-07 06:14:05 +00:00
|
|
|
</body>
|
|
|
|
</html>
|