EditLinkTemplate.html revision feb2c590898bd03d4dfd8a77c429a471776527c5
<div class="block">
<div class="row">
<div class="col-sm-6">
{{#each allModules}}
<option value="{{this._id}}" {{#equals /linkConfig.module this._id}} selected{{/equals}}>{{this.type}}</option>
{{/each}}
</select>
</div>
<div class="col-sm-6">
{{#each allCriteria}}
{{#each this}}<option value="{{@key}}" {{#equals /linkConfig.criteria @key}} selected{{/equals}}>{{this}}</option>{{/each}}
{{/each}}
</select>
</div>
</div>
</div>
<table class="table table-striped">
{{#if linkConfig.options}}
<thead>
<tr>
<th class="col-check"></th>
</tr>
</thead>
{{/if}}
<tbody>
{{#each linkConfig.options}}
<tr>
<td>{{@key}}</td>
<td>{{this}}</td>
<td>
<div class="btn-group pull-right">
<button class="btn btn-transparent delete-option"><i class="fa fa-times"></i></button>
</div>
</td>
</tr>
{{/each}}
<tr class="tr-row">
<td>
</td>
<td>
</td>
<td>
<div class="btn-group pull-right">
<button id="addOption" type="submit" class="btn btn-secondary"><i class="fa fa-plus"></i></button>
</div>
</td>
</tr>
</tbody>
</table>