From 4815405839128dfb965eb07946a54b0ed90be773 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 12 Jan 2017 13:08:49 +1100 Subject: [PATCH] WIP: Moving registration templates in app/views as partials --- .../registration/_modal.html.haml} | 0 app/views/registration/index.html.haml | 27 ++++++++++++++++++- .../registration/steps/_about.html.haml} | 0 .../registration/steps/_contact.html.haml} | 0 .../registration/steps/_details.html.haml} | 0 .../registration/steps/_finished.html.haml} | 0 .../registration/steps/_images.html.haml} | 0 .../{ => steps}/_introduction.html.haml | 0 .../steps/_limit_reached.html.haml} | 0 .../registration/steps/_logo.html.haml} | 0 .../registration/steps/_promo.html.haml} | 0 .../registration/steps/_social.html.haml} | 0 .../registration/steps/_steps.html.haml} | 0 .../registration/steps/_type.html.haml} | 0 14 files changed, 26 insertions(+), 1 deletion(-) rename app/{assets/javascripts/templates/registration.html.haml => views/registration/_modal.html.haml} (100%) rename app/{assets/javascripts/templates/registration/about.html.haml => views/registration/steps/_about.html.haml} (100%) rename app/{assets/javascripts/templates/registration/contact.html.haml => views/registration/steps/_contact.html.haml} (100%) rename app/{assets/javascripts/templates/registration/details.html.haml => views/registration/steps/_details.html.haml} (100%) rename app/{assets/javascripts/templates/registration/finished.html.haml => views/registration/steps/_finished.html.haml} (100%) rename app/{assets/javascripts/templates/registration/images.html.haml => views/registration/steps/_images.html.haml} (100%) rename app/views/registration/{ => steps}/_introduction.html.haml (100%) rename app/{assets/javascripts/templates/registration/limit_reached.html.haml => views/registration/steps/_limit_reached.html.haml} (100%) rename app/{assets/javascripts/templates/registration/images/logo.html.haml => views/registration/steps/_logo.html.haml} (100%) rename app/{assets/javascripts/templates/registration/images/promo.html.haml => views/registration/steps/_promo.html.haml} (100%) rename app/{assets/javascripts/templates/registration/social.html.haml => views/registration/steps/_social.html.haml} (100%) rename app/{assets/javascripts/templates/registration/steps.html.haml => views/registration/steps/_steps.html.haml} (100%) rename app/{assets/javascripts/templates/registration/type.html.haml => views/registration/steps/_type.html.haml} (100%) diff --git a/app/assets/javascripts/templates/registration.html.haml b/app/views/registration/_modal.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration.html.haml rename to app/views/registration/_modal.html.haml diff --git a/app/views/registration/index.html.haml b/app/views/registration/index.html.haml index 2af462cf54..aa53455739 100644 --- a/app/views/registration/index.html.haml +++ b/app/views/registration/index.html.haml @@ -5,7 +5,32 @@ = inject_available_countries = inject_enterprise_attributes +%script{type: "text/ng-template", id: "registration/about.html"} + = render partial: "registration/steps/about" +%script{type: "text/ng-template", id: "registration/contact.html"} + = render partial: "registration/steps/contact" +%script{type: "text/ng-template", id: "registration/details.html"} + = render partial: "registration/steps/details" +%script{type: "text/ng-template", id: "registration/finished.html"} + = render partial: "registration/steps/finished" +%script{type: "text/ng-template", id: "registration/images.html"} + = render partial: "registration/steps/images" +%script{type: "text/ng-template", id: "registration/limit_reached.html"} + = render partial: "registration/steps/limit_reached" +%script{type: "text/ng-template", id: "registration/images/logo.html"} + = render partial: "registration/steps/logo" +%script{type: "text/ng-template", id: "registration/images/promo.html"} + = render partial: "registration/steps/promo" +%script{type: "text/ng-template", id: "registration/social.html"} + = render partial: "registration/steps/social" +%script{type: "text/ng-template", id: "registration/steps.html"} + = render partial: "registration/steps/steps" +%script{type: "text/ng-template", id: "registration/type.html"} + = render partial: "registration/steps/type" + %script{type: "text/ng-template", id: "registration/introduction.html"} - = render partial: "registration/introduction" + = render partial: "registration/steps/introduction" +%script{type: "text/ng-template", id: "registration.html"} + = render "modal" %div{ "ng-controller" => "RegistrationCtrl" } diff --git a/app/assets/javascripts/templates/registration/about.html.haml b/app/views/registration/steps/_about.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/about.html.haml rename to app/views/registration/steps/_about.html.haml diff --git a/app/assets/javascripts/templates/registration/contact.html.haml b/app/views/registration/steps/_contact.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/contact.html.haml rename to app/views/registration/steps/_contact.html.haml diff --git a/app/assets/javascripts/templates/registration/details.html.haml b/app/views/registration/steps/_details.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/details.html.haml rename to app/views/registration/steps/_details.html.haml diff --git a/app/assets/javascripts/templates/registration/finished.html.haml b/app/views/registration/steps/_finished.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/finished.html.haml rename to app/views/registration/steps/_finished.html.haml diff --git a/app/assets/javascripts/templates/registration/images.html.haml b/app/views/registration/steps/_images.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/images.html.haml rename to app/views/registration/steps/_images.html.haml diff --git a/app/views/registration/_introduction.html.haml b/app/views/registration/steps/_introduction.html.haml similarity index 100% rename from app/views/registration/_introduction.html.haml rename to app/views/registration/steps/_introduction.html.haml diff --git a/app/assets/javascripts/templates/registration/limit_reached.html.haml b/app/views/registration/steps/_limit_reached.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/limit_reached.html.haml rename to app/views/registration/steps/_limit_reached.html.haml diff --git a/app/assets/javascripts/templates/registration/images/logo.html.haml b/app/views/registration/steps/_logo.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/images/logo.html.haml rename to app/views/registration/steps/_logo.html.haml diff --git a/app/assets/javascripts/templates/registration/images/promo.html.haml b/app/views/registration/steps/_promo.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/images/promo.html.haml rename to app/views/registration/steps/_promo.html.haml diff --git a/app/assets/javascripts/templates/registration/social.html.haml b/app/views/registration/steps/_social.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/social.html.haml rename to app/views/registration/steps/_social.html.haml diff --git a/app/assets/javascripts/templates/registration/steps.html.haml b/app/views/registration/steps/_steps.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/steps.html.haml rename to app/views/registration/steps/_steps.html.haml diff --git a/app/assets/javascripts/templates/registration/type.html.haml b/app/views/registration/steps/_type.html.haml similarity index 100% rename from app/assets/javascripts/templates/registration/type.html.haml rename to app/views/registration/steps/_type.html.haml