PoliciesTemplate.html revision 0e23018cef7ae0d019ca7da5d9e7eaefdc8946be
<div class="panel-body">
<form id="situationalPolicies" class="form clearfix form-policy-editor form-horizontal" autocomplete="off">
<div class="row">
<div class="col-sm-12">
<div class="form-group form-group-header policyInformation">
<select id="policyPatterns" class="form-control">
{{#each patternNames}}
<option value="{{this}}">{{this}}</option>
{{/each}}
</select>
<span id="patternDescription"class="help-block"></span>
</div>
</div>
</div>
<div class="table-responsive">
<table class="group-field-block table">
<thead>
<tr>
<th class=""></th>
<th class=""></th>
</tr>
</thead>
<tbody>
{{#each policies}}
<tr data-script-type="validSource" class="event-hook">
<td>
</td>
<td>
</td>
<td>
{{#if this.emphasize}}<em>({{/if}}{{this.displayAction}}{{#if this.defaultActionStar}}{{{/star}}}{{/if}}{{#if this.defaultActionHollow}}{{{/hollowStar}}}{{/if}}{{#if this.emphasize}})</em>{{/if}}
</td>
<td>
<button class="btn btn-link edit-policy"><i class="fa fa-pencil"></i></button>
<button class="btn btn-link delete-policy{{#if disabled}} disabled{{/if}}"><i class="fa fa-times"></i></button>
</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group form-group-header">
<select class="form-control situation-list">
{{#each situations}}
<option value="{{value}}">{{readable}}</option>
{{/each}}
</select>
<button type="submit" class="btn btn-primary add-policy"><i class="fa fa-plus"></i> {{t "templates.situationalPolicies.addPolicyBtn"}}</button>
<div>
<span class="select-key">{{{hollowStar}}} {{t "templates.situationalPolicies.hollowStarDef"}}</span>
</div>
</div>
</div>
</div>
</form>
<div role="alert" class="{{#if changes}}changesPending {{/if}}alert alert-warning situationalPolicyChanges">
</div>
</div>
<div class="panel-footer clearfix">
<input type="button" class="pull-right btn btn-primary savePolicy" {{#unless changes}}disabled {{/unless}}value="{{t 'common.form.save'}}" />
<input type="button" class="pull-right btn btn-default reset" {{#unless changes}}disabled {{/unless}}value="{{t 'common.form.reset'}}" />
</div>