Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
162 naveen 1
<!DOCTYPE html PUBLIC 
2
    "-//W3C//DTD XHTML 1.1 Transitional//EN"
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
 
5
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<head>
7
<title>Create New</title>
8
<link type="text/css" href="../jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" />
9
<script type="text/javascript" src="../jquery/jquery-1.4.2.js"></script>
10
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.core.js"></script>
11
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.widget.js"></script>
12
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.position.js"></script>
13
<script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.autocomplete.js"></script>
14
<script type="text/javascript">
198 naveen 15
$(document).ready(function() {
16
  //alert("document ready");
17
  $('#cancelbutton').click(function(e) {
18
    //alert("Cancel clicked");
19
    window.location.href = '/content/entity';
20
  });
21
});
22
 
162 naveen 23
$(function() {
198 naveen 24
    var availableBrands = [$action.getBrandString()]
162 naveen 25
    $("#brands").autocomplete({
26
        source: availableBrands
27
    });
28
});
29
</script>
212 naveen 30
<style>
31
 
32
* { font-family: Verdana; font-size: 96%; }
33
label { width: 10em; float: left; }
34
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
35
p { clear: both; }
36
.submit { margin-left: 12em; }
37
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
38
 
39
</style>
162 naveen 40
</head>
41
<body>
208 naveen 42
<div>
162 naveen 43
<h1>New Entity</h1>
44
<form name="f" action="/content/entity" method="post">
198 naveen 45
    <label for="entityid">Entity ID: </label>
162 naveen 46
    <span id="entityid"><strong><em>{New Entity ID}</em></strong></span>
47
    <br/>
48
    <label for="brands">Brand: </label>
49
    <input id="brands" name="brand"/>
50
    <br/>
51
    <label for="modelnumber">Model Number: </label>
52
    <input id="modelnumber" name="modelnumber"/>
53
    <br/>
54
    <label for="modelname">Model Name: </label>
55
    <input id="modelname" name="modelname"/>
56
    <br/>
57
    <label for="category">Category: </label>
198 naveen 58
    <select id="category" name="category" >
59
    #foreach( $catid in $categories.keySet() )
60
        <option value="$catid" selected="$selected">$categories.get($catid)</option>
61
    #end 
62
    </select>
162 naveen 63
    <br/>
64
<p/>
198 naveen 65
<input type="button" id="cancelbutton" name="cancel" value="Cancel"/>
66
<input type="submit" name="create" value="Create"/>
162 naveen 67
</form>
68
</div>
69
</body>
70
</html>