Skip to content

Instantly share code, notes, and snippets.

@itswadesh
Last active March 27, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itswadesh/33d8779690cbe677b37e938be6025545 to your computer and use it in GitHub Desktop.
Save itswadesh/33d8779690cbe677b37e938be6025545 to your computer and use it in GitHub Desktop.
<section layout="row">
<md-content layout="row" flex="66" layout-wrap>
<md-card ng-repeat="d in $ctrl.dates" ng-class="$ctrl.getColor($index)" class="md-whiteframe-z2" flex flex-sm="40" flex-xs="100">
<md-card-content>
<h2>{{d.k | date:'dd-MMM-yyyy'}}</h2>
<p layout="column">
<md-button class="md-primary md-raised"
ng-repeat="i in d.v"
ng-click="$ctrl.showAdvanced(i)"
ng-disabled="!i.active"
flex>
{{i.date | date:'h:mma'}}
</md-button>
</p>
</md-card-content>
<md-card-footer></md-card-footer>
</md-card>
</md-content>
<md-card class="md-whiteframe-z2" flex="33">
<md-card-content>
<h2>Booked Appointments</h2>
<p layout="column" ng-repeat="a in $ctrl.appointments">
{{a.name}} ({{a.phone}}) => {{a.date | date:'dd-MMM-yyyy @ h:mma'}}
</p>
</md-card-content>
<md-card-footer></md-card-footer>
</md-card>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment