Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic views to handle submission of a new url.
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |