2017-02-03 09:20:29 -08:00
|
|
|
<template name="Venues">
|
|
|
|
|
<div id="venues">
|
2017-05-26 11:17:32 -07:00
|
|
|
{{#if Template.subscriptionsReady}}
|
|
|
|
|
<div class="tableControls">
|
2017-10-20 14:54:58 -07:00
|
|
|
<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>
|
2017-05-26 11:17:32 -07:00
|
|
|
</div>
|
2017-10-20 14:54:58 -07:00
|
|
|
</div>
|
|
|
|
|
<div class="separatedTableHeader">
|
|
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="name">Name {{>VenueSearch columnName='name'}}</th>
|
|
|
|
|
<th class="type">Type {{>VenueSearch columnName='type'}}</th>
|
2017-12-31 14:06:46 -08:00
|
|
|
<th class="type">Frequency</th>
|
2017-10-20 14:54:58 -07:00
|
|
|
<th class="actions">Actions <span class="newVenueButton 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>
|
2017-02-03 09:20:29 -08:00
|
|
|
</div>
|
2017-05-26 11:17:32 -07:00
|
|
|
<div class="listRow">
|
|
|
|
|
<div class="listCell">
|
2017-10-20 14:54:58 -07:00
|
|
|
<div class="tableContainer mCustomScrollbar" data-mcs-theme="dark">
|
2017-05-26 11:17:32 -07:00
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
|
<tbody>
|
|
|
|
|
{{#if displayNewVenue}}
|
2017-12-31 14:06:46 -08:00
|
|
|
<tr>{{> VenueEditor isNew=true}}</tr>
|
2017-05-26 11:17:32 -07:00
|
|
|
{{/if}}
|
|
|
|
|
{{#each venues}}
|
|
|
|
|
{{> Venue}}
|
|
|
|
|
{{/each}}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{else}}
|
|
|
|
|
{{/if}}
|
2017-02-03 09:20:29 -08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template name="Venue">
|
|
|
|
|
<tr class="{{getRowClass}}">
|
|
|
|
|
{{#if editing}}
|
|
|
|
|
{{> VenueEditor}}
|
|
|
|
|
{{else}}
|
2017-10-20 14:54:58 -07:00
|
|
|
<td class="name noselect nonclickable left">{{name}}</td>
|
|
|
|
|
<td class="type noselect nonclickable left">{{type}}</td>
|
2017-12-31 14:06:46 -08:00
|
|
|
<td class="type noselect nonclickable left">{{frequency}}</td>
|
2017-02-03 09:20:29 -08:00
|
|
|
{{#if hidden}}
|
2017-10-20 14:54:58 -07:00
|
|
|
<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>
|
2017-02-03 09:20:29 -08:00
|
|
|
{{else}}
|
|
|
|
|
{{#if deactivated}}
|
2017-10-20 14:54:58 -07:00
|
|
|
<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>
|
2017-02-03 09:20:29 -08:00
|
|
|
{{else}}
|
2017-10-20 14:54:58 -07:00
|
|
|
<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>
|
2017-02-03 09:20:29 -08:00
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
</tr>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template name="VenueEditor">
|
2017-12-31 14:06:46 -08:00
|
|
|
<td colspan="3" class="venueEditorTd left">
|
|
|
|
|
<div class="editorDiv"><label>Name</label> <input name="name" class="form-control" type="text" value="{{name}}" autocomplete="off" required></div>
|
|
|
|
|
<div class="editorDiv"><label>Type</label> <input name="type" class="form-control" type="text" autocomplete="off" required></div>
|
|
|
|
|
<div class="editorDiv"><label>Frequency</label> <input name="frequency" class="form-control" type="text" autocomplete="off" required></div>
|
2017-02-03 09:20:29 -08:00
|
|
|
</td>
|
2017-12-31 14:06:46 -08:00
|
|
|
<td class="venueEditorTd actions center"><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>
|
2017-02-03 09:20:29 -08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template name="VenueSearch">
|
|
|
|
|
<div class="venueSearch">
|
|
|
|
|
<input type="text" class="searchInput" placeholder="Filter..." value="{{searchValue}}"/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|