81 lines
3.5 KiB
HTML
81 lines
3.5 KiB
HTML
<template name="Measures">
|
|
<div id="measures">
|
|
{{#if Template.subscriptionsReady}}
|
|
<div class="tableControls">
|
|
<div class="showHidden">
|
|
<span class="controlLabel">Show Hidden</span>
|
|
<div class="toggleShowHidden checkbox checkbox-slider--b-flat">
|
|
<label>
|
|
<input type="checkbox" name="showHidden"><span></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="contentControls">
|
|
<a class="loadMoreLink {{#if disableLoadMore}}disabled{{/if}}" href="javascript:">Load More...</a>
|
|
</div>
|
|
</div>
|
|
<div class="separatedTableHeader">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th class="name">Name {{>MeasureSearch columnName='name'}}</th>
|
|
<th class="postfix">Postfix {{>MeasureSearch columnName='postfix'}}</th>
|
|
<th class="actions">Actions <span class="newMeasureButton btn btn-success"><i class="fa fa-plus-circle" aria-hidden="true"></i><i class="fa fa-times-circle" aria-hidden="true"></i></span></th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
<div class="listRow">
|
|
<div class="listCell">
|
|
<div class="tableContainer mCustomScrollbar" data-mcs-theme="dark">
|
|
<table class="table table-striped table-hover">
|
|
<tbody>
|
|
{{#if displayNewMeasure}}
|
|
<tr>{{> MeasureEditor isNew=true}}</tr>
|
|
{{/if}}
|
|
{{#each measures}}
|
|
{{> Measure}}
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
{{/if}}
|
|
</div>
|
|
</template>
|
|
|
|
<template name="Measure">
|
|
<tr class="{{getRowClass}}">
|
|
{{#if editing}}
|
|
{{> MeasureEditor}}
|
|
{{else}}
|
|
<td class="name noselect nonclickable left">{{name}}</td>
|
|
<td class="postfix noselect nonclickable left">{{postfix}}</td>
|
|
{{#if hidden}}
|
|
<td class="actions center"><i class="actionEdit fa fa-pencil-square-o fa-lg noselect clickable" title="Edit" aria-hidden="true"></i> / <i class="actionShow fa fa-eye fa-lg noselect clickable" title="Show" aria-hidden="true"></i></td>
|
|
{{else}}
|
|
{{#if deactivated}}
|
|
<td class="actions center"><i class="actionEdit fa fa-pencil-square-o fa-lg noselect clickable" title="Edit" aria-hidden="true"></i> / <i class="actionActivate fa fa-toggle-on fa-lg noselect clickable" title="Activate" aria-hidden="true"></i> / <i class="actionHide fa fa-eye-slash fa-lg noselect clickable" title="Hide" aria-hidden="true"></i></td>
|
|
{{else}}
|
|
<td class="actions center"><i class="actionEdit fa fa-pencil-square-o fa-lg noselect clickable" title="Edit" aria-hidden="true"></i> / <i class="actionRemove fa fa-times-circle fa-lg noselect clickable" title="Deactivate" aria-hidden="true"></i></td>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{/if}}
|
|
</tr>
|
|
</template>
|
|
|
|
<template name="MeasureEditor">
|
|
<td colspan="2" class="measureEditorTd">
|
|
<div class="editorDiv"><label>Name:</label><input name="name" class="form-control" type="text" value="{{name}}" autocomplete="off" required></div>
|
|
<div class="editorDiv"><label>Postfix:</label><input name="postfix" class="form-control" type="text" value="{{postfix}}" autocomplete="off" required></div>
|
|
</td>
|
|
<td class="center measureEditorTd actions"><i class="editorApply fa fa-check-square-o fa-lg noselect clickable" aria-hidden="true"></i> / <i class="editorCancel fa fa-times-circle fa-lg noselect clickable" aria-hidden="true"></i></td>
|
|
</template>
|
|
|
|
<template name="MeasureSearch">
|
|
<div class="measureSearch">
|
|
<input type="text" class="searchInput" placeholder="Filter..." value="{{searchValue}}"/>
|
|
</div>
|
|
</template> |