LT-67 Creating utility helpers for lesiontracker package and implementing servers listing

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-08-04 16:48:26 +02:00
1 parent fd5e7dd2f4
commit d9367cf200
9 files changed
+150 -75

No files matched your search

@@ -1,44 +1,18 @@
<template name="serverInformationModal">
<div class="modal" id="serverInformationModal" tabindex="-1" role="dialog" aria-labelledby="serverInformationModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="serverInformationModalLabel">Server Information</h4>
</div>
<div class="modal-body">
{{#each serverInformation}}
<table id="tblServer" class="table table-bordered table-hovered">
<tbody>
<tr>
<th>
Host
</th>
<td>
{{host}}
</td>
</tr>
<tr>
<th>
Port
</th>
<td>
{{port}}
</td>
</tr>
<tr>
<th>
AE Title
</th>
<td>
{{aeTitle}}
</td>
</tr>
</tbody>
</table>
{{/each}}
{{#if equals instance.container.mode.get "list"}}
{{>serverInformationList instance.container}}
{{/if}}
{{#if or (equals instance.container.mode.get "edit") (equals instance.container.mode.get "create")}}
{{>serverInformationForm instance.container}}
{{/if}}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
@@ -46,4 +20,4 @@
</div>
</div>
</div>
</template>
</template>