conveyal/modeify

View on GitHub
client/commuter-page/template.html

Summary

Maintainability
Test Coverage
<div class="row">
  <div class="col-lg-12 col-md-12 col-sm-12">
    <h3>
      <i class="fa fa-user"></i> {commuterName || 'Commuter'} — {email}
      <a class="btn btn-default pull-right" href="/manager/organizations/{_organization}/show"><i class="fa fa-arrow-left"></i> Back</a>
      <a class="btn btn-warning pull-right" href="/manager/organizations/{_organization}/commuters/{_id}/edit"><i class="fa fa-pencil"></i> Edit</a>
      <a class="btn btn-warning pull-right" on-tap="sendPlan"><i class="fa fa-envelope"></i> Resend Invitation</a>
      <a class="btn btn-danger pull-right" on-tap="destroy"><i class="fa fa-times"></i> Delete</a>
    </h3>
    <p><strong>Organization</strong>: {organizationName}</p>
    <p><strong>Internal ID</strong>: {internalId}</p>
    <p><strong>Home Location</strong>: <i class="fa fa-home"></i> {fuzzyAddress}</p>
  </div>
  <div class="col-lg-12 col-md-12 col-sm-12">
    <div class="map map-small"></div>
  </div>
  <div class="col-lg-12 col-md-12 col-sm-12">
    <h4>Organization Locations</h4>
    <table class="table table-striped">
      <thead>
        <tr>
          <th>Name</th>
          <th>Address</th>
          <th>Matches</th>
        </tr>
      </thead>
      <tbody data-each="commuterLocations"></tbody>
    </table>
  </div>
</div>