-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditworker.html
More file actions
57 lines (48 loc) · 2.05 KB
/
editworker.html
File metadata and controls
57 lines (48 loc) · 2.05 KB
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
<html>
<head>
{% include "styles.html" %}
<title>BeneTag</title>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
</head>
<script type="text/javascript">
function initialize() {
var factory_names = new Array();
{% for name in factory_names %}
factory_names.push('{{name}}');
{% endfor %}
$('#factoryName').autocomplete({
source: factory_names
});
}
</script>
<body>
<body onload="initialize()">
{% include "navbar.html" %}
<h2>
{% if repeatedit %}
<p>Unique ID already exists</p>
{% endif %}
{% if redirect %}
<form action="/storeeditedworker?id={{id}}&redirect={{redirect}}" enctype="multipart/form-data" method="post">
{% else %}
<form action="/storeeditedworker?id={{id}}" enctype="multipart/form-data" method="post">
{% endif %}
<div>Name: <input name="name" id="name" value="{{name_old}}"></input></div>
<div>Factories:
{% for factory in factories_old %}
<input type="radio" name="factory" value ="{{factory.key}}" checked="checked">{{factory.name}} {% if factory.unique %} ({{factory.unique}}) {% endif %} </input><br/>
{% endfor %}
{% for factory in factories %}
<input type="radio" name="factory" value ="{{factory.key}}">{{factory.name}} {% if factory.unique %} ({{factory.unique}}) {% endif %} </input><br/>
{% endfor %}
</div><br />
<div>Picture:<input type="file" name="picture"/></div>
<div>Profile: <textarea name="profile" id="profile">{{profile_old}}</textarea></div>
<div>Unique ID (optional): <input name="unique" value="{{unique_old}}"></input></div><br />
<div><input type="submit" value="Save" a class="span4 btn medium"></div>
</form></h2>
{% include "footer.html" %}
</body>
</html>