mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
No need to deal with locations in registration
This commit is contained in:
@@ -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 "/"
|
||||
@@ -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' }
|
||||
Reference in New Issue
Block a user