add demonstration of geosearch
[gae-samples.git] / search / product_search_python / templates / create_product.html
blob14c6e7c618bdbe93b3e89f0367d2787f7580c5d4
1 {% extends "base.html" %}
2 {% block head %}
3 <title>Add a new product</title>
4 {% endblock %}
9 {% block content %}
11 <h3>Add a New Product to the Catalog</h3>
13 <p>Enter a unique product ID. It should not contain whitespace. (An id has been auto-generated for you, in case you want to use it).</p>
15 {% if error_message %}
16 <p><b>Error</b>: {{error_message}}</p>
17 {% endif %}
19 <div class="row">
21 <div class="span7">
23 <h4>Books</h4>
25 <form action="/admin/create_product" method="post">
26 <input type="hidden" name="category" value="books" />
28 <div class="clearfix">
29 <label for="pid">product ID:</label>
30 <div class="input">
31 <input type="text" name="pid" value="{{pid}}" />
32 </div>
33 </div>
35 <div class="clearfix">
36 <label for="name">product name:</label>
37 <div class="input">
38 <input type="text" name="name" value="{{name}}" />
39 </div>
40 </div>
42 <div class="clearfix">
43 <label for="description">product<br/>description:</label>
44 <div class="input">
45 <textarea name="description" rows="3" cols="80">{{description}}</textarea>
46 </div>
47 </div>
49 <div class="clearfix">
50 <label for="price">price:</label>
51 <div class="input">
52 <input type="text" id="price" name="price" value="{{price}}"/>
53 </div>
54 </div>
56 <div class="clearfix">
57 <label for="isbn">isbn:</label>
58 <div class="input">
59 <input type="text" id="isbn" name="isbn" value="{{isbn}}"/>
60 </div>
61 </div>
63 <div class="clearfix">
64 <label for="pages">pages:</label>
65 <div class="input">
66 <input type="text" id="pages" name="pages" value="{{pages}}"/>
67 </div>
68 </div>
70 <div class="clearfix">
71 <label for="publisher">publisher:</label>
72 <div class="input">
73 <input type="text" id="publisher" name="publisher" value="{{publisher}}"/>
74 </div>
75 </div>
77 <div class="clearfix">
78 <label for="author">author:</label>
79 <div class="input">
80 <input type="text" id="author" name="author" value="{{author}}"/>
81 </div>
82 </div>
84 <div class="clearfix">
85 <label for="title">title:</label>
86 <div class="input">
87 <input type="text" id="title" name="title" value="{{title}}"/>
88 </div>
89 </div>
91 <div class="actions">
92 <input class="btn primary" id="subreview" name="subreview" type="submit" value="Create"/>
93 <input type="reset" class="btn primary" name="reviewreset" value="Clear"/>
94 </div>
95 </form>
97 </div>
98 <div class="span7">
100 <h4>Televisions</h4>
102 <form action="/admin/create_product" method="post">
103 <input type="hidden" name="category" value="hd televisions" />
106 <div class="clearfix">
107 <label for="pid">product ID:</label>
108 <div class="input">
109 <input type="text" name="pid" value="{{pid}}" />
110 </div>
111 </div>
113 <div class="clearfix">
114 <label for="name">product name:</label>
115 <div class="input">
116 <input type="text" name="name" value="{{name}}" />
117 </div>
118 </div>
120 <div class="clearfix">
121 <label for="description">product<br/>description:</label>
122 <div class="input">
123 <textarea name="description" rows="3" cols="80">{{description}}</textarea>
124 </div>
125 </div>
127 <div class="clearfix">
128 <label for="price">price:</label>
129 <div class="input">
130 <input type="text" id="price" name="price" value="{{price}}"/>
131 </div>
132 </div>
134 <div class="clearfix">
135 <label for="brand">brand:</label>
136 <div class="input">
137 <input type="text" id="brand" name="brand" value="{{brand}}"/>
138 </div>
139 </div>
141 <div class="clearfix">
142 <label for="price">TV type:</label>
143 <div class="input">
144 <input type="text" id="tv_type" name="tv_type" value="{{tv_type}}"/>
145 </div>
146 </div>
148 <div class="clearfix">
149 <label for="price">size:</label>
150 <div class="input">
151 <input type="text" id="size" name="size" value="{{size}}"/>
152 </div>
153 </div>
155 <div class="actions">
156 <input class="btn primary" id="subreview" name="subreview" type="submit" value="Create"/>
157 <input type="reset" class="btn primary" name="reviewreset" value="Clear"/>
158 </div>
159 </form>
161 </div>
162 </div> <!-- end row -->
165 {% endblock %}