| 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>Edit $action.getId()</title>
|
|
|
8 |
<script type="text/javascript" src="../../jquery/jquery-1.4.2.js"></script>
|
|
|
9 |
<script>
|
|
|
10 |
$(document).ready(function() {
|
|
|
11 |
//alert("document ready");
|
|
|
12 |
$('#cancelbutton').click(function(e) {
|
|
|
13 |
//alert("Cancel clicked");
|
|
|
14 |
window.location.href = '/content/entity';
|
|
|
15 |
});
|
|
|
16 |
});
|
|
|
17 |
</script>
|
|
|
18 |
</head>
|
|
|
19 |
#set ( $entity = $action.getEntity() )
|
|
|
20 |
<body>
|
|
|
21 |
<div class="ui-widget">
|
|
|
22 |
<h1>Edit $action.getId()</h1>
|
|
|
23 |
<form name="f" action="/content/entity" method="post">
|
|
|
24 |
<label for="brands">Entity ID: </label>
|
|
|
25 |
<span id="entityid"><strong><em>$action.getId()</em></strong></span>
|
|
|
26 |
<br/>
|
|
|
27 |
<label for="brands">Brand: </label>
|
|
|
28 |
<input id="brands" name="brand" value="$entity.getBrand()"/>
|
|
|
29 |
<br/>
|
|
|
30 |
<label for="modelnumber">Model Number: </label>
|
|
|
31 |
<input id="modelnumber" name="modelnumber" value="$entity.getModelNumber()"/>
|
|
|
32 |
<br/>
|
|
|
33 |
<label for="modelname">Model Name: </label>
|
|
|
34 |
<input id="modelname" name="modelname" value="$entity.getModelName()"/>
|
|
|
35 |
<br/>
|
|
|
36 |
<label for="category">Category: </label>
|
|
|
37 |
<input id="category" name="category" value="$entity.getCategory().getLabel()"/>
|
|
|
38 |
<br/>
|
|
|
39 |
<p/>
|
|
|
40 |
<input type="button" id="cancelbutton" name="cancel" value="Cancel"/>
|
|
|
41 |
<input type="submit" value="Next"/>
|
|
|
42 |
</form>
|
|
|
43 |
</div>
|
|
|
44 |
</body>
|
|
|
45 |
</html>
|