closes #32: nice-looking date and times

This commit is contained in:
Davide Alberani 2015-05-17 10:33:19 +02:00
parent 1cd16f0e78
commit df1aa84d3f
2 changed files with 3 additions and 2 deletions

View file

@ -37,8 +37,8 @@
<tr ng-repeat="event in events | splittedFilter:query | orderBy:eventsOrderProp">
<td>
<span><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></span>
<p>{{'Begins:' | translate}} {{event['begin-date']}}<br/>
{{'Ends:' | translate}} {{event['end-date']}}</p>
<p>{{'Begins:' | translate}} {{event['begin-date'] | date:'fullDate' }} {{event['begin-time'] | date:'hh:mm' }}<br/>
{{'Ends:' | translate}} {{event['end-date'] | date:'fullDate' }} {{event['end-time'] | date:'hh:mm'}}</p>
</td>
<td>
<button ng-click="remove(event._id)" type="button" class="btn btn-link fa fa-trash fa-lg"></button>

View file

@ -16,6 +16,7 @@ eventManApp.directive('eventmanPressEnter', function () {
};
});
eventManApp.directive('eventmanFocus', function () {
function link(scope, element, attrs) {
element[0].focus();