From 75c62a7cb834d96a6b9bc9628f476d69dea48ebb Mon Sep 17 00:00:00 2001 From: summerscope Date: Fri, 22 Aug 2014 16:49:19 +1000 Subject: [PATCH] Markup changes to step 2 address --- .../templates/registration/address.html.haml | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/app/assets/javascripts/templates/registration/address.html.haml b/app/assets/javascripts/templates/registration/address.html.haml index 1c3ee071a8..39c459f0e0 100644 --- a/app/assets/javascripts/templates/registration/address.html.haml +++ b/app/assets/javascripts/templates/registration/address.html.haml @@ -1,11 +1,17 @@ .container#registration-address .header - %h2 Hi there, {{ enterprise.name }} + %h2 + Hi there, + %span.brick{"ng-show" => "enterprise.is_distributor"} + {{ enterprise.name }} + %span.turquoise{"ng-show" => "!enterprise.is_distributor" } + {{ enterprise.name }} + %h5 Now we need to know where you are: %ng-include{ src: "'registration/steps.html'" } %form .row.content - .small-7.columns + .small-12.medium-12.large-7.columns .row .small-12.columns %label{ for: 'enterprise_address' } Address: @@ -24,19 +30,20 @@ .small-12.large-4.columns %label{ for: 'enterprise_state' } State: %select.chunky.small-12.columns{ id: 'enterprise_state', ng: { model: 'enterprise.address.state_id', options: 's.id as s.abbr for s in enterprise.country.states', show: 'countryHasStates()' } } - .small-5.columns - %h6 - Location display - %i.ofn-i_013-help.has-tip{ 'data-tooltip' => true, title: "Choose how you want to display your enterprise's address on the Open Food Network. By default, full location is shown everywhere including street name and number."} - .row - .small-12.columns - %label.indent-checkbox - %input{ type: 'checkbox', id: 'enterpise_suburb_only', ng: { model: 'enterprise.suburb_only' } } - Hide my street name and street number from the public (ie. only show the suburb) - .small-12.columns - %label.indent-checkbox - %input{ type: 'checkbox', id: 'enterprise_on_map', ng: { model: 'enterprise.on_map' } } - Blur my location on the map (show an approximate, not exact pin) + .small-12.medium-12.large-5.hide-for-small-only + // This is the location area + / %h6 + / Location display + / %i.ofn-i_013-help.has-tip{ 'data-tooltip' => true, title: "Choose how you want to display your enterprise's address on the Open Food Network. By default, full location is shown everywhere including street name and number."} + / .row + / .small-12.columns + / %label.indent-checkbox + / %input{ type: 'checkbox', id: 'enterpise_suburb_only', ng: { model: 'enterprise.suburb_only' } } + / Hide my street name and street number from the public (ie. only show the suburb) + / .small-12.columns + / %label.indent-checkbox + / %input{ type: 'checkbox', id: 'enterprise_on_map', ng: { model: 'enterprise.on_map' } } + / Blur my location on the map (show an approximate, not exact pin) .row.buttons .small-12.medium-6.columns %input.button.secondary{ type: "button", value: "Back", ng: { click: "select('details')" } }