-
Notifications
You must be signed in to change notification settings - Fork 0
/
school-edit.xhtml
executable file
·86 lines (86 loc) · 4.51 KB
/
school-edit.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
<?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:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:school="http://education.data.gov.uk/def/school/"
xmlns:vcard="http://www.w3.org/2006/vcard/ns#">
<head>
<title resource="?this">{rdfs:label}</title>
</head>
<body>
<div class="container">
<div class="page-header">
<h1 resource="?this">{rdfs:label} <small>{school:establishmentNumber}</small></h1>
</div>
<form method="POST" action="" enctype="application/sparql-update" resource="?this" typeof="school:School" class="row">
<fieldset class="col-sm-6">
<div class="form-group">
<h4 for="name">Name</h4>
<input type="text" id="name" class="form-control" value="{school:establishmentName}" />
</div>
<div class="form-group">
<h4 for="number">Number</h4>
<input type="text" id="number" class="form-control" value="{school:establishmentNumber}" />
</div>
<div class="row">
<div class="col-sm-6 form-group">
<h4 for="phase">Phase</h4>
<div id="phase">
<label class="radio" rel="school:phaseOfEducation" resource="?phase">
<input type="radio" name="phase" checked="checked" />
<span rel="rdf:type" resource="http://education.data.gov.uk/def/school/PhaseOfEducation_TERM" property="rdfs:label" />
</label>
</div>
</div>
<div class="col-sm-6 form-group">
<h4 for="statutory">Statutory Age Range</h4>
<div class="input-group">
<span class="input-group-addon">Minimum: </span>
<input type="number" value="{school:statutoryLowAge}" datatype="xsd:integer" class="form-control" />
<span class="input-group-addon">years</span>
</div>
<br/>
<div class="input-group">
<span class="input-group-addon">Maximum: </span>
<input type="number" value="{school:statutoryHighAge}" datatype="xsd:integer" class="form-control" />
<span class="input-group-addon">years</span>
</div>
</div>
</div>
</fieldset>
<fieldset class="col-sm-6">
<div class="form-group">
<h4 for="comment">Comments</h4>
<textarea id="comment" rows="5" class="form-control auto-expand">{rdfs:comment}</textarea>
</div>
<div class="row">
<div class="col-sm-6 form-group">
<h4 for="typeOfEstablishment">Type</h4>
<div id="typeOfEstablishment">
<label class="checkbox" rel="school:typeOfEstablishment" resource="?type">
<input type="checkbox" name="type" checked="checked" />
<span rel="rdf:type" resource="http://education.data.gov.uk/def/school/TypeOfEstablishment_TERM" property="rdfs:label" />
</label>
</div>
</div>
<div class="col-sm-6 form-group">
<label for="status" class="control-label">Status</label>
<div class="controls">
<select id="status" rel="school:establishmentStatus">
<option selected="selected" about="?status" rel="rdf:type" resource="http://education.data.gov.uk/def/school/EstablishmentStatus_TERM" property="rdfs:label" />
</select>
</div>
</div>
</div>
</fieldset>
<fieldset class="col-sm-12 form-group">
<button id="save" type="submit" class="btn btn-primary">Save</button>
<button id="cancel" type="button" onclick="location.replace('?view')" class="btn">Cancel</button>
<button id="delete" type="button" onclick="calli.deleteResource(event)" class="btn btn-danger">Delete</button>
</fieldset>
</form>
</div>
</body>
</html>