<h4 class="bg-primary">File Explorer</h4>

<h4 class="room-detail">Room Templates</h4>

<div>
  <div class="panel-group" ng-repeat="template in importTemplate.templates track by $index">
    <div class="panel panel-default" >
      <div class="panel-heading">
        <h6 class="panel-title">{{template.name}}</h6>
      </div>
      <div class="panel-collapse">
        <div class="panel-body">
          <p>Created On: {{template.created_at}}</p>

          <button class="btn btn-primary pull-right" type="button" ng-click="select(template)">Select</button>
          <button class="btn btn-danger pull-right margin-right-md" type="button" ng-click="delete(template)">Delete</button>
        </div>
      </div>
    </div>
  </div>
</div>

<div ng-if="!importTemplate.templates || !importTemplate.templates.length">
  <p>No Room Templates are saved for this account.</p>
</div>

<div>
  <a ui-sref="file-explorer.main" class="btn btn-primary btn-prev"><i class="fa fa-caret-left"></i> Back</a>
</div>