-
Notifications
You must be signed in to change notification settings - Fork 87
/
extendeddataschema.html
59 lines (52 loc) · 1.99 KB
/
extendeddataschema.html
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
<div class="extendeddataschema">
<form class="form-horizontal">
<legend>Extended Data Schema</legend>
<div class="form-group">
<label class="control-label" for="inputName">Name</label>
<div class="controls">
<input type="text" class="form-control inputName input-xxlarge uneditable-input" id="inputName" placeholder="Name">
</div>
</div>
<div class="form-group">
<label class="control-label" for="contentType">Content-Type</label>
<div class="controls">
<input type="text" class="form-control contentType input-xxlarge uneditable-input" id="contentType" placeholder="Content-Type">
</div>
</div>
<div class="form-group">
<label class="control-label" for="inputUrl">URL/Data</label>
<div class="controls">
<input type="text" class="form-control inputUrl input-xxlarge uneditable-input" id="inputUrl" placeholder="URL"><br/>
</div>
</div>
<div class="form-actions">
<button type="button" class="btn btn-default cancelButton">Back</button>
</div>
</form>
</div>
<script>
function ExtendedDataSchema(main, oid) {
var othis = this;
this.close = function(){
};
this.show = function(){
};
Global.bimServerApi.call("ServiceInterface", "getExtendedDataSchemaById", {oid: oid}, function(extendedDataSchema){
othis.extendedDataSchema = extendedDataSchema;
pushHistory({page: "ServerSettings", subpage: "ExtendedDataSchema", edsid: othis.extendedDataSchema.oid}, "Server Settings - Extended Data Schema");
$(".extendeddataschema .inputName").val(othis.extendedDataSchema.name);
$(".extendeddataschema .inputUrl").val(othis.extendedDataSchema.url);
$(".extendeddataschema .contentType").val(othis.extendedDataSchema.contentType);
});
this.saveClick = function(event) {
};
this.cancelClick = function(event) {
event.preventDefault();
main.showServerSettings(function(){
this.showExtendedDataSchemas();
});
};
$(".extendeddataschema .cancelButton").click(othis.cancelClick);
$(".extendeddataschema .saveButton").click(othis.saveClick);
}
</script>