mirror of https://github.com/rwf2/Rocket.git
39 lines
946 B
Handlebars
39 lines
946 B
Handlebars
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Rocket: Cookie Message</title>
|
|
</head>
|
|
<body>
|
|
<h1>Rocket Cookie Message</h1>
|
|
|
|
<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" />
|
|
</form>
|
|
|
|
<p>
|
|
<input type="submit" form="set" value="Set Message" />
|
|
<input type="submit" form="delete" value="Clear Message" />
|
|
</p>
|
|
|
|
<a href="/">Home</a>
|
|
</body>
|
|
</html>
|