No need to deal with locations in registration

This commit is contained in:
Rob H
2014-08-20 14:02:18 +10:00
parent e1400705fe
commit 95bfc74b3f
2 changed files with 6 additions and 9 deletions

View File

@@ -1,8 +1,6 @@
Darkswarm.factory "RegistrationService", (Navigation, $modal, $location)->
Darkswarm.factory "RegistrationService", (Navigation, $modal, Loading)->
new class RegistrationService
current_step: 'introduction'
constructor: ->
@open()
@@ -10,17 +8,16 @@ Darkswarm.factory "RegistrationService", (Navigation, $modal, $location)->
@modalInstance = $modal.open
templateUrl: 'registration.html'
windowClass: "login-modal large"
backdrop: 'static'
@modalInstance.result.then @close, @close
@select @current_step
@select 'introduction'
select: (step)=>
@current_step = step
Navigation.navigate '/' + @current_step
active: Navigation.active
currentStep: =>
@current_step
close: ->
Navigation.navigate "/"
Loading.message = "Taking you back to the home page"
Navigation.go "/"

View File

@@ -33,5 +33,5 @@
%label{ for: 'contact_display_profile' }
%input{ type: 'checkbox', id: 'contact_phone_profile', ng: { model: 'enterprise.contact.phone_in_profile' } }   Display phone in profile
.row
%input.button.primary{ type: "button", value: "Back", ng: { click: "select('details')" }, style: 'float:left' }
%input.button.primary{ type: "button", value: "Back", ng: { click: "select('address')" }, style: 'float:left' }
%input.button.primary{ type: "button", value: "Continue", ng: { click: "select('contact')" }, style: 'float:right' }