cutiness with FA
This commit is contained in:
parent
ed452efaae
commit
c25ac0ebf7
4 changed files with 14 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
|||
<div class="container">
|
||||
<h1>{{'Events' | translate}}
|
||||
<button ng-click="$state.go('event.new')" class="btn btn-success">
|
||||
<span class="glyphicon glyphicon-plus-sign"></span>
|
||||
<span class="fa fa-plus-circle vcenter"></span>
|
||||
{{'Add event' | translate}}
|
||||
</button>
|
||||
</h1>
|
||||
|
@ -41,7 +41,7 @@
|
|||
{{'Ends:' | translate}} {{event['end-date']}}</p>
|
||||
</td>
|
||||
<td>
|
||||
<button ng-click="remove(event._id)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
|
||||
<button ng-click="remove(event._id)" type="button" class="btn btn-link fa fa-trash fa-lg"></button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="container">
|
||||
<h1><span ng-if="!(person.name || person.surname)">{{'New person' | translate}}</span>{{person.name}} {{person.surname}}
|
||||
<button ng-if="person._id" ng-click="$state.go('person.info', {id: person._id})" class="btn btn-success">
|
||||
<span class="glyphicon glyphicon-info-sign"></span>
|
||||
<span class="fa fa-info-circle vcenter"></span>
|
||||
{{'Info' | translate}}
|
||||
</button>
|
||||
</h1>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="container">
|
||||
<h1>{{person.name}} {{person.surname}}
|
||||
<button ng-if="person._id" ng-click="$state.go('person.edit', {id: person._id})" class="btn btn-success">
|
||||
<span class="glyphicon glyphicon-edit"></span>
|
||||
<span class="fa fa-pencil-square-o vcenter"></span>
|
||||
{{'Edit' | translate}}
|
||||
</button>
|
||||
</h1>
|
||||
|
@ -28,18 +28,18 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>{{'Event' | translate}}</th>
|
||||
<th>{{'Registered' | translate}}</th>
|
||||
<th>{{'Attended' | translate}}</th>
|
||||
<th class="text-center">{{'Registered' | translate}}</th>
|
||||
<th class="text-center">{{'Attended' | translate}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="event in events | splittedFilter:query | orderBy:eventsOrderProp">
|
||||
<td><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></td>
|
||||
<td>
|
||||
<button class="btn btn-link" name="switch-registered" ng-click="switchRegistered(event, person, !event.person_data.person_id)"><span class="glyphicon {{(event.person_data.person_id) && 'glyphicon-ok-sign text-success' || 'glyphicon-remove-sign text-danger'}}"></span></button>
|
||||
<td class="text-center">
|
||||
<button class="btn btn-link" name="switch-registered" ng-click="switchRegistered(event, person, !event.person_data.person_id)"><span class="fa fa-lg {{(event.person_data.person_id) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span></button>
|
||||
</td>
|
||||
<td>
|
||||
<button ng-disabled="!event.person_data.person_id" class="btn btn-link" name="switch-attended" ng-click="setPersonAttributeAtEvent(event, 'attended', !event.person_data.attended)"><span class="glyphicon {{(event.person_data.attended) && 'glyphicon-ok-sign text-success' || 'glyphicon-remove-sign text-danger'}}"></span></button>
|
||||
<td class="text-center">
|
||||
<button ng-disabled="!event.person_data.person_id" class="btn btn-link" name="switch-attended" ng-click="setPersonAttributeAtEvent(event, 'attended', !event.person_data.attended)"><span class="fa fa-lg {{(event.person_data.attended) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span></button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
<div class="col-md-7 col-xs-7 vcenter">
|
||||
<h1>{{'Persons' | translate}}
|
||||
<button ng-click="$state.go('person.new')" class="btn btn-success">
|
||||
<span class="glyphicon glyphicon-plus-sign"></span>
|
||||
<span class="fa fa-plus-circle vcenter"></span>
|
||||
{{'Add person' | translate}}
|
||||
</button>
|
||||
<button ng-click="$state.go('import.persons')" class="btn btn-success">
|
||||
<span class="glyphicon glyphicon-plus-sign"></span>
|
||||
<span class="fa fa-download vcenter"></span>
|
||||
{{'Import persons' | translate}}
|
||||
</button>
|
||||
</h1>
|
||||
|
@ -53,14 +53,14 @@
|
|||
</td>
|
||||
<td ng-repeat="col in customFields" class="text-center">
|
||||
<span ng-if="col.type == 'boolean'">
|
||||
<button class="btn btn-link" ng-click="setAttribute(person, col.key, !person[col.key])"><span class="glyphicon {{(person[col.key]) && 'glyphicon-ok-sign text-success' || 'glyphicon-remove-sign text-danger'}}"></span></button>
|
||||
<button class="btn btn-link" ng-click="setAttribute(person, col.key, !person[col.key])"><span class="fa fa-lg {{(person[col.key]) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span></button>
|
||||
</span>
|
||||
<span ng-if="col.type != 'boolean'">
|
||||
{{person[col.key]}}
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<button ng-click="remove(person._id)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
|
||||
<button ng-click="remove(person._id)" type="button" class="btn btn-link fa fa-trash fa-lg"></button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue