-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject-create.xhtml
104 lines (104 loc) · 5.86 KB
/
project-create.xhtml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="/callimachus/template.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:calli="http://callimachusproject.org/rdf/2009/framework#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
xmlns:gr="http://purl.org/goodrelations/v1#"
xmlns:directory="http://dir.w3.org/rdf/2012/directory/">
<head>
<title>New Deployment</title>
<script type="text/javascript">
jQuery(function($){
calli.insertResource(jQuery.extend(jQuery.Event('drop'),
{target:$('#org')[0],dataTransfer:{getData:function(){return location.pathname}}}
));
});
</script>
</head>
<body>
<div class="container">
<div class="page-header">
<h1>New Deployment</h1>
</div>
<form typeof="foaf:Project" method="POST" action="" enctype="application/rdf+xml" onsubmit="return calli.saveResourceAs(event, calli.slugify($('#label').val()))">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<h4 for="label">Deployment name</h4>
<input type="text" id="label" autofocus="autofocus" required="required" value="{rdfs:label}" class="auto-expand form-control" />
</div>
<div class="form-group">
<h4 for="web-page">Website</h4>
<input type="url" id="web-page" placeholder="Web page with more detail" value="{foaf:homepage}" class="auto-expand form-control" />
</div>
<div class="form-group">
<h4 for="country">Country of Origin</h4>
<select id="country" rel="directory:countryOfOrigin" class="form-control">
<option selected="selected" about="?country" rev="calli:hasComponent" resource="countries/" property="skos:prefLabel" />
</select>
</div>
<div class="form-group">
<h4 for="comment">Comment</h4>
<textarea id="comment" class="auto-expand form-control">{rdfs:comment}</textarea>
</div>
<div class="form-group">
<h4 for="deployments">
Availability <a href="http://lab.linkeddata.deri.ie/2010/star-scheme-by-example/" target="_blank"><sup>?</sup></a>
</h4>
<select id="deployments" rel="directory:availabilityLevel">
<option selected="selected" about="?deployments" rev="calli:hasComponent" resource="linked-data-category/" property="skos:prefLabel" />
</select>
</div>
<div id="org" class="form-group" dropzone="link s:text/uri-list" ondrop="return calli.insertResource(event)">
<h4>Participants <a href="./?view" title="Select" onclick="return calli.selectResource(event)"><span class="glyphicon glyphicon-plus" /></a></h4>
<div rel="directory:hasParticipant">
<span about="?org" typeof="vcard:Organization" class="label label-warning">
<span property="rdfs:label"></span>
</span>
</div>
</div>
<div dropzone="link s:text/uri-list" class="form-group" ondrop="return calli.insertResource(event)">
<h4>Depiction <a href="?create=/callimachus/Image" title="Upload" onclick="return calli.createResource(event)"><span class="glyphicon glyphicon-plus" /></a></h4>
<div rel="foaf:depiction">
<span about="?depiction" typeof="foaf:Image" class="label label-warning">
<img src="{?depiction}" />
</span>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<h4 for="industry">Industry or domain category</h4>
<div id="industry" rel="directory:inIndustry" class="sorted">
<label class="input" about="?industry" style="display:block">
<input type="checkbox" name="industry" checked="checked" />
<span rev="calli:hasComponent" resource="sector/" property="skos:prefLabel" class="asc" />
</label>
</div>
</div>
<div class="form-group">
<h4 for="technologies">Technologies used</h4>
<div id="technologies" rel="directory:usedTechnology" class="sorted">
<label class="input" about="?technology" style="display:block">
<input type="checkbox" name="technology" checked="checked" />
<span rev="calli:hasComponent" resource="technologies/" property="skos:prefLabel" class="asc" />
</label>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 form-group">
<button id="create" type="submit" class="btn btn-primary">Create</button>
</div>
</div>
</div>
</form>
</div>
</body>
</html>