Skip to content

Commit

Permalink
Basic views to handle submission of a new url.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Sep 25, 2012
1 parent 5b3af9c commit 875b056
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Shrtr/views/saved.tt
@@ -0,0 +1,6 @@
<p>Your URL has been saved.</p>
<ul>
<li>Long URL: [% url.url %]</li>
<li>Short code: <a href="/[% url.code %]">[% url.code %]</a></li>
<li>Information: <a href="/[% url.code %]+">[% url.code %]</a></li>
</ul>
5 changes: 5 additions & 0 deletions Shrtr/views/submit.tt
@@ -0,0 +1,5 @@
<form method="POST">
<p>Long URL: <input name="url" /><br />
Short code: <input name="code" /><br />
<input type="submit" value="Save" /></p>
</form>

0 comments on commit 875b056

Please sign in to comment.