blob: 6e71be1ad50fea179c186f3a74688a67d8b49844 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{.Title}}</title>
<link rel="stylesheet" href="{{.Stylesheet}}">
<link rel="stylesheet" href="/static/style.css">
<script src="{{.SDK}}"
data-server="{{.Server}}"></script>
</head>
<body>
<div class="container" data-service-url="{{.ServiceURL}}" data-cookie-name="{{.CookieName}}">
<h1>{{.Title}}</h1>
<section>
<p>{{.Description}}</p>
</section>
{{if .AnnotationMappings}}
<section class="mapping-section">
<h2>Query</h2>
{{range .AnnotationMappings}}
<div class="mapping" data-id="{{.ID}}" data-type="annotation"
data-default-foundry-a="{{.FoundryA}}" data-default-layer-a="{{.LayerA}}"
data-default-foundry-b="{{.FoundryB}}" data-default-layer-b="{{.LayerB}}">
<h3>{{.ID}}</h3>
{{if .Description}}<p class="desc">{{.Description}}</p>{{end}}
<div class="mapping-row">
<label><input type="checkbox" class="request-cb" name="request"> Request</label>
<div class="mapping-fields request-fields">
<input type="text" class="request-foundryA" value="{{.FoundryA}}" placeholder="{{.FoundryA}}" size="8">/<input type="text" class="request-layerA" value="{{.LayerA}}" placeholder="{{.LayerA}}" size="4">
<button type="button" class="request-dir-arrow" data-dir="atob">&rarr;</button>
<input type="text" class="request-foundryB" value="{{.FoundryB}}" placeholder="{{.FoundryB}}" size="8">/<input type="text" class="request-layerB" value="{{.LayerB}}" placeholder="{{.LayerB}}" size="4">
</div>
</div>
<div class="mapping-row">
<label><input type="checkbox" class="response-cb" name="response"> Response</label>
<div class="mapping-fields response-fields">
<input type="text" class="response-foundryA" value="{{.FoundryA}}" placeholder="{{.FoundryA}}" size="8">/<input type="text" class="response-layerA" value="{{.LayerA}}" placeholder="{{.LayerA}}" size="4">
<button type="button" class="response-dir-arrow" data-dir="btoa">&larr;</button>
<input type="text" class="response-foundryB" value="{{.FoundryB}}" placeholder="{{.FoundryB}}" size="8">/<input type="text" class="response-layerB" value="{{.LayerB}}" placeholder="{{.LayerB}}" size="4">
</div>
</div>
</div>
{{end}}
</section>
{{end}}
{{if .CorpusMappings}}
<section class="mapping-section">
<h2>Corpus</h2>
{{range .CorpusMappings}}
<div class="mapping" data-id="{{.ID}}" data-type="corpus">
<h3>{{.ID}}</h3>
{{if .Description}}<p class="desc">{{.Description}}</p>{{end}}
<div class="mapping-row">
<label><input type="checkbox" class="request-cb" name="request"> Request</label>
</div>
<div class="mapping-row">
<label><input type="checkbox" class="response-cb" name="response"> Response</label>
</div>
</div>
{{end}}
</section>
{{end}}
<section class="mapping-section">
<h2>Pipe Configuration</h2>
<label class="cfg-line-label" for="request-cfg-preview">Request cfg</label>
<input type="text" id="request-cfg-preview" class="cfg-preview request-cfg-preview" readonly value="">
<label class="cfg-line-label" for="response-cfg-preview">Response cfg</label>
<input type="text" id="response-cfg-preview" class="cfg-preview response-cfg-preview" readonly value="">
</section>
<footer class="version">
<p><tt>v{{.Version}} - {{.Date}} {{.Hash}}</tt></p>
</footer>
</div>
<script src="/static/config.js"></script>
</body>
</html>