<template name="activities">
  <div class="page-heading">
    <h1 class="page-header">Activities</h1>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h2 class="panel-title">Filter activities</h2>
    </div>
    <div class="panel-body">
      <div class="col-sm-3 col-xs-12">
        {{> reactiveTableFilter id="residentFilter" label="Resident" fields=residentFilterFields }}
      </div>
      <div class="col-sm-3 col-xs-12">
        {{> reactiveTableFilter id="homeFilter" label="Home" fields=homeFilterFields }}
      </div>
      <div class="col-sm-3 col-xs-12">
        {{> reactiveTableFilter id="typeFilter" label="Type" fields=activityTypeFilterFields }}
      </div>
       <div class="form-group pull-right col-sm-3 col-xs-12">
        <label for="all-or-latest">Show only latest</label>
        <input type="checkbox" name="all-or-latest" class="form-control" >
      </div>
    </div>
  </div>
  {{# if Template.subscriptionsReady }}
  {{> reactiveTable collection=activities settings=tableSettings }}
  {{ else }}
  {{> spinner }}
  {{/ if }}
</template>

<template name="activities">
  <div class="page-heading">
    <a href="activities/new" class="btn btn-primary pull-right">
      Add New Activity
    </a>
    <h1 class="page-header">Activities</h1>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h2 class="panel-title">Filter activities</h2>
    </div>
    <div class="panel-body">
      <div class="col-sm-3 col-xs-12">
        {{> reactiveTableFilter id="residentFilter" label="Resident" fields=residentFilterFields }}
      </div>
      <div class="col-sm-3 col-xs-12">
        {{> reactiveTableFilter id="homeFilter" label="Home" fields=homeFilterFields }}
      </div>
      <div class="col-sm-3 col-xs-12">
        {{> reactiveTableFilter id="typeFilter" label="Type" fields=activityTypeFilterFields }}
      </div>
       <div class="form-group pull-right col-sm-3 col-xs-12">
        <label for="all-or-latest">Show only latest</label>
        <input type="checkbox" name="all-or-latest" class="form-control" >
      </div>
    </div>
  </div>
  {{# if Template.subscriptionsReady }}
  {{> reactiveTable collection=activities settings=tableSettings }}
  {{ else }}
  {{> spinner }}
  {{/ if }}
</template>

Add 'Add New Activity' button
Add 'Add New Activity' button
