1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>cyclone upload demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
</head>
<body>
<div class="container">
<h1>cyclone upload demo</h1>
<br>
<form class="form-horizontal"
method="post" action="/" enctype="multipart/form-data">
<legend>Who are you?</legend>
<fieldset>
<div class="control-group {% if 'fullname' in missing %}error{% end %}">
<label class="control-label" for="fullname">Name</label>
<div class="controls">
<input type="text" class="input-xlarge" name="fullname">
<p class="help-block">Your full name</p>
</div>
</div>
<div class="control-group {% if 'picture' in missing %}error{% end %}">
<label class="control-label" for="picture">Picture</label>
<div class="controls">
<input type="file" class="input-file" name="picture">
<p class="help-block">A picture of you</p>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="reset" class="btn">Cancel</button>
</div>
</fieldset>
</form>
{% if info is not None %}
<div class="well">
<p>Name: {{info["name"]}}<p>
<p>File: {{info["file"]}}</p>
</div>
{% end %}
</div> <!-- /container -->
</body>
</html>
|