1
0
mirror of https://github.com/golang/go synced 2024-11-26 02:57:57 -07:00
go/misc/dashboard/godashboard/project-edit.html
Andrew Gerrand 6e83100ae5 godashboard: add Projects page
R=rsc, r, gri
CC=golang-dev
https://golang.org/cl/1476041
2010-06-23 15:27:51 +01:00

46 lines
1.5 KiB
HTML

<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1");
</script>
<script type="text/javascript" src="/static/jquery.autocomplete.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/jquery.autocomplete.css" />
</head>
<body>
<form action="/project/edit?orig_name={{p.name}}" method="POST">
Name:<br/>
<input type="text" name="name" value="{{p.name|escape}}"><br/>
Description:<br/>
<input type="text" name="descr" value="{{p.descr|escape}}"><br/>
Category:<br/>
<input type="text" id="cats" name="category" value="{{p.category|escape}}"><br/>
Tags: (comma-separated)<br/>
<input type="text" id="tags" name="tags" value="{{tags}}"><br/>
Web URL:<br/>
<input type="text" name="web_url" value="{{p.web_url|escape}}"><br/>
Package URL: (to link to a goinstall'd package)<br/>
<input type="text" name="package" value="{{p.package.path|escape}}"><br/>
Approved: <input type="checkbox" name="approved" value="1" {% if p.approved %}checked{% endif %}><br/>
<br/>
<input type="submit" name="do" value="Save">
<input type="submit" name="do" value="Delete" onClick="javascript:return confirm('Delete this?');">
</form>
<script>
var tags = [
{% for t in taglist %}
"{{t}}"{% if not forloop.last %},{% endif %}
{% endfor %}
];
var cats = [
{% for c in catlist %}
"{{c}}"{% if not forloop.last %},{% endif %}
{% endfor %}
];
$('#tags').autocomplete(tags);
$('#cats').autocomplete(cats);
</script>
</body>
</html>