[go: nahoru, domu]

Skip to content

Commit

Permalink
register form default floor
Browse files Browse the repository at this point in the history
  • Loading branch information
notRealLi committed Jun 24, 2019
1 parent 5e75a8d commit 43ef56a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/Controllers/Http/RecurController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const axios = require('axios');
const Env = use('Env');
const moment = require('moment');
const recur = require('moment-recur');

class RecurController {
async searchRecurring2 ({ request }) {
Expand Down Expand Up @@ -84,6 +85,9 @@ class RecurController {

return res.data;
}

async test () {
}
}

module.exports = RecurController;
4 changes: 2 additions & 2 deletions resources/views/auth/registerUser.edge
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@
<option value='undefined' {{ old('floor') == 'undefined' ? 'selected' : '' }} selected='' disabled>{{ antl.formatMessage('registerUser.floor') }}</option>
@each(floorOption in formOptions.floors)
@if(antl.currentLocale() =="en")
<option value='{{floorOption.id}}' {{ old('floor') == floorOption.id ? 'selected' : '' }}>{{floorOption.name_english}}</option>
<option value='{{floorOption.id}}' {{ old('floor') === floorOption.id ? 'selected' : '' }}>{{floorOption.name_english}}</option>
@else
<option value='{{floorOption.id}}' {{ old('floor') == floorOption.id ? 'selected' : '' }}>{{floorOption.name_french}}</option>
<option value='{{floorOption.id}}' {{ old('floor') === floorOption.id ? 'selected' : '' }}>{{floorOption.name_french}}</option>
@endif
@endeach
</select>
Expand Down
2 changes: 2 additions & 0 deletions start/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,5 @@ Route.get('/push', 'TokenController.push').as('push');
// Active Directory
//= ========================================================================
Route.post('/active', 'UserController.active').as('active');

Route.get('/test', 'RecurController.test').as('test');

0 comments on commit 43ef56a

Please sign in to comment.