fix urls
This commit is contained in:
parent
e363b51219
commit
120d84d907
7 changed files with 19 additions and 20 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
<div class="input-group input-group-lg">
|
||||
<span class="input-group-addon">{{'Title' | translate}}</span>
|
||||
<input type="text" class="form-control" placeholder="Title" ng-model="event.title" ng-required="1">
|
||||
<input type="text" class="form-control" placeholder="{{'Title' | translate}}" ng-model="event.title" ng-required="1">
|
||||
</div>
|
||||
|
||||
<div class="input-group top5 well form-horizontal" ng-controller="DatetimePickerCtrl">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label for="query-persons">{{'Search:' | translate}}</label>
|
||||
<input type="text" id="query-persons" class="form-control" placeholder="Name or email" ng-model="query">
|
||||
<input type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="persons-order">{{'Sort by:' | translate}}</label>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="person in event.persons | filter:query | orderBy:orderProp">
|
||||
<td><a ui-sref="person.info({id: person.person_id})">{{person.name}} {{person.surname}}</a></td>
|
||||
<td><strong><a ui-sref="person.info({id: person.person_id})">{{person.name}} {{person.surname}}</a></strong></td>
|
||||
<td>
|
||||
<button class="btn btn-link" name="switch-attended" ng-click="updateAttendee(person, !person.attended)"><span class="glyphicon {{(person.attended) && 'glyphicon-ok-sign text-success' || 'glyphicon-remove-sign text-danger'}}"></span></button>
|
||||
</td>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label for="query-events">Search:</label>
|
||||
<input type="text" id="query-events" class="form-control" placeholder="Event title" ng-model="query">
|
||||
<input type="text" id="query-events" class="form-control" placeholder="{{'Event title' | translate}}" ng-model="query">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="events-order">Sort by:</label>
|
||||
|
@ -23,16 +23,16 @@
|
|||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><strong>Event</strong></td>
|
||||
<td><strong>Actions</strong></td>
|
||||
<td><strong>{{'Event' | translate}}</strong></td>
|
||||
<td><strong>{{'Actions' | translate}}</strong></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="event in events | filter:query | orderBy:orderProp">
|
||||
<td>
|
||||
<span><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></span>
|
||||
<p>Begins: {{event['begin-datetime']}}<br/>
|
||||
Ends: {{event['end-datetime']}}</p>
|
||||
<p>{{'Begins:' | translate}} {{event['begin-date']}}<br/>
|
||||
{{'Ends:' | translate}} {{event['end-date']}}</p>
|
||||
</td>
|
||||
<td>
|
||||
<button ng-click="remove(event._id)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
|
||||
|
@ -41,4 +41,3 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
|
8
angular_app/js/app.js
vendored
8
angular_app/js/app.js
vendored
|
@ -87,22 +87,22 @@ eventManApp.config(['$stateProvider', '$urlRouterProvider',
|
|||
templateUrl: 'person-main.html',
|
||||
})
|
||||
.state('person.new', {
|
||||
url: '/person/new',
|
||||
url: '/new',
|
||||
templateUrl: 'person-edit.html',
|
||||
controller: 'PersonDetailsCtrl'
|
||||
})
|
||||
.state('person.edit', {
|
||||
url: '/person/:id/edit',
|
||||
url: '/:id/edit',
|
||||
templateUrl: 'person-edit.html',
|
||||
controller: 'PersonDetailsCtrl'
|
||||
})
|
||||
.state('person.info', {
|
||||
url: '/person/:id',
|
||||
url: '/:id',
|
||||
templateUrl: 'person-info.html',
|
||||
controller: 'PersonDetailsCtrl'
|
||||
})
|
||||
.state('persons.import', {
|
||||
url: '/persons/import',
|
||||
url: '/import',
|
||||
templateUrl: 'import-persons.html',
|
||||
controller: 'ImportPersonsCtrl'
|
||||
}
|
||||
|
|
|
@ -14,17 +14,17 @@
|
|||
|
||||
<div class="input-group input-group-lg">
|
||||
<span class="input-group-addon">{{'Name' | translate}}</span>
|
||||
<input type="text" class="form-control" placeholder="Name" ng-model="person.name" ng-required="1">
|
||||
<input type="text" class="form-control" placeholder="{{'Name' | translate}}" ng-model="person.name" ng-required="1">
|
||||
</div>
|
||||
|
||||
<div class="input-group input-group-lg top5">
|
||||
<span class="input-group-addon">{{'Surname' | translate}}</span>
|
||||
<input type="text" class="form-control" placeholder="Surname" ng-model="person.surname">
|
||||
<input type="text" class="form-control" placeholder="{{'Surname' | translate}}" ng-model="person.surname">
|
||||
</div>
|
||||
|
||||
<div class="input-group top5">
|
||||
<span class="input-group-addon">{{'Email' | translate}}</span>
|
||||
<input type="email" name="email" class="form-control" placeholder="root@example.com" ng-model="person.email">
|
||||
<input type="email" name="email" class="form-control" placeholder="{{'name.surname@example.com' | translate}}" ng-model="person.email">
|
||||
</div>
|
||||
|
||||
<input type="submit" style="position: absolute; left: -9999px; width: 1px; height: 1px;"/>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label for="query-persons">Search:</label>
|
||||
<input type="text" id="query-persons" class="form-control" placeholder="Name or email" ng-model="query">
|
||||
<input type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="events-order">Sort by:</label>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label for="query-persons">{{'Search:' | translate}}</label>
|
||||
<input type="text" id="query-persons" class="form-control" placeholder="Name or email" ng-model="query">
|
||||
<input type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="persons-order">{{'Sort by:' | translate}}</label>
|
||||
|
@ -23,8 +23,8 @@
|
|||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><strong>Name</strong></td>
|
||||
<td><strong>Actions</strong></td>
|
||||
<td><strong>{{'Name' | translate}}</strong></td>
|
||||
<td><strong>{{'Actions' | translate}}</strong></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
Loading…
Reference in a new issue