Created
March 29, 2014 03:04
-
-
Save NickRSearcy/9847595 to your computer and use it in GitHub Desktop.
Meteor houston tab alignment fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="_houston_collection_view"> | |
<div class="houston"> | |
{{#if loggingIn}} | |
{{> spinner}} | |
{{else}} | |
{{> _houston_navbar}} | |
<div class="container content"> | |
<ul class="breadcrumb"> | |
<li><a href="{{pathFor 'houston_home'}}" class="houston-home">Home</a> <span class="divider">/</span></li> | |
<li class="active">{{name}}</li> | |
</ul> | |
{{! hide for bootstrap 2, hidden for 3 }} | |
<div class="row hidden hide" id="houston-create-document"> | |
<div class="span12" style="overflow-x: auto"> | |
<h3>Add more {{name}}</h3> | |
<table class="table table-bordered table-striped"> | |
<thead> | |
<tr> | |
{{# each nonid_headers }} | |
<th><a href="#" class="sort">{{this}}</a></th> | |
{{/each}} | |
<th>Action</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr id="houston-create-row"> | |
{{# each nonid_headers }} | |
<th> | |
<input name="{{this}}" class="input-small" type="text" /> | |
</th> | |
{{/each}} | |
<td><div class="btn btn-success houston-create-doc">Create</div></td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="span12"> | |
<div class="page-header"> | |
<button id="houston-create-btn" class="btn btn-success pull-right">Add {{name}}</button> | |
<h1>{{name}} ({{num_of_records}} record{{pluralize}})</h1> | |
</div> | |
</div> | |
</div> | |
<div class='row'> | |
<div class="span10" style="overflow-x: auto"> | |
<table class="table table-bordered table-striped table-hover"> | |
<thead> | |
<tr> | |
{{# each headers }} | |
<th><a href="#" class="houston-sort">{{this}}</a></th> | |
{{/each}} | |
<th>Action</th> | |
</tr> | |
</thead> | |
<tbody> | |
{{#each rows }} | |
<tr> | |
<td><a href="{{pathFor 'houston_document'}}">{{_id}}</a></td> | |
{{#each values_in_order}} | |
<td data-field='{{ field_name }}' class='houston-collection-field'>{{ field_value }}</td> | |
{{/each}} | |
<td><div data-id="{{_id}}" class="btn houston-delete-doc btn-danger">Delete</div></td> | |
</tr> | |
{{/each}} | |
</tbody> | |
</table> | |
</div> | |
<div class="span2"> | |
<form> | |
<legend>Filter</legend> | |
{{# each nonid_headers }} | |
<label>{{this}}</label> | |
<input name="{{this}}" class="houston-column-filter input-small" type="text" value="{{filter_value}}"/> | |
{{/each}} | |
</form> | |
</div> | |
</div> | |
{{/if}} | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
missing a
</div>
at line 79 cause error