First pass at a Hanging Protocol implementation and editor (LT-131)

This commit is contained in:
Erik Ziegler committed 2016-05-07 12:40:02 +02:00
1 parent dfcb33153f
commit 2e52d9e3c1
157 files changed
+8869 -23585

No files matched your search

@@ -0,0 +1,32 @@
<template name="ruleTable">
<table class="ruleTable table">
<thead>
<tr>
<th>Constraint</th>
<th>Wt.</th>
<th>Req.</th>
</tr>
</thead>
<tbody>
{{ #each rules }}
{{ #if constraint }}
<tr>
<td>
<i class="fa fa-pencil editRule"></i>
<i class="fa fa-trash deleteRule"></i>
{{displayConstraint attribute constraint}}
{{ #unless rulePassed }}<small class="failWarning">Fail</small>{{ /unless }}
</td>
<td><input class="ruleWeight" type="number" value={{weight}} min="1" step="1" max="1000"/></td>
<td><input class="ruleRequired" type="checkbox" {{inlineIf required true "checked"}}/></td>
</tr>
{{ /if }}
{{ /each }}
</tbody>
</table>
<div class="addRuleContainer">
<span class="addRule">
Add New Constraint <i class="fa fa-plus-circle"></i>
</span>
</div>
</template>