CorrelationQueryBuilderTemplate.html revision d051e6ec673461c44fca5836dd9333d639249d21
<select name="linkQualifier" class="linkQualifier">
{{#each availableLinkQualifiers}}
<option value="{{this}}">{{this}}</option>
{{/each}}
</select>
</label>
{{#if missingLinkQualifier}}
{{/if}}
<div>
<input type="radio" name="queryType" id="expressionTreeQueryRadio" value="expression" class="queryType" checked="checked" />
<label for="expressionTreeQueryRadio" class="queryTypeTitle">{{t "templates.correlation.expressionBuilder"}}</label>
<div class="expressionTree queryContainer">
<ul>
<li index="{{#if isAny}}any{{else}}all{{/if}}" class="node">
{{#expressionDisplay expressionTree fieldNames}}
<select>
{{#each types}}
<option {{#if selected}} selected{{/if}} value="{{value}}">{{label}}</option>
{{/each}}
</select>
<button class="btn btn-default remove object" title="{{t "templates.correlation.query.removeTitle"}}"><i class="fa fa-lg fa-minus"></i></button>
<button class="btn btn-default add" title="{{t "templates.correlation.query.addTitle"}}"><i class="fa fa-lg fa-plus"></i></button>
<ul class="expressionMenu">
<li>
<ul>
{{#each filteredFieldNames}}
<li><a href="#" class="addField">{{.}}</a></li>
{{/each}}
</ul>
</li>
</ul>
{{#if expressionTree.length}}
<ul>
{{#each expressionTree}}
{{#if isObject}}
<li index="{{index}}" class="node">
<div index="{{#if isAny}}any{{else}}all{{/if}}" class="node">
{{{expressionDisplay req fieldNames}}}
</div>
</li>
{{else}}
<li field="{{req}}" index="{{index}}" class="node">
{{req}}
{{#if notLast}}
{{/term}}
{{/if}}
<button class="btn btn-default remove" title="{{t "templates.correlation.query.removeTitle"}}"><i class="fa fa-lg fa-minus"></i></button>
</li>
{{/if}}
{{/each}}
</ul>
{{/if}}
{{/expressionDisplay}}
</li>
</ul>
</div>
</div>
<div>
<input type="radio" name="queryType" id="scriptQueryRadio" value="script" class="queryType">
<div class="queryScript queryContainer"></div>
</div>