+
-
Monthly
-
Yearly
+
+ Monthly
+
+
+ Yearly
+
@@ -199,7 +224,7 @@
type="submit"
class="grid place-content-center mr-3 w-24 h-10 text-sm font-semibold text-white rounded md:mr-24 md:w-32 md:h-12 md:text-base md:rounded-lg bg-marine-blue"
value="Next Step"
- >
+ />
9
case PlanType.Advanced => 12
case PlanType.Pro => 15
@@ -56,8 +55,10 @@ object Models {
}
def fullOrderPrice: Int = {
- planCost + userAnswers.step3.addons.map(addonCost).sum
+ selectedPlanCost + userAnswers.step3.addons.map(addonCost).sum
}
+
+ def availablePlans = PlanType.values.toList.asJava
}
final case class Answers(
@@ -73,6 +74,7 @@ object Models {
) {
// this is not enforced by compiler, sad, maintain by hand in html template files
def fragmentName: String = s"step${currentStep}"
+
def updateStep(stepNum: Int, rawData: String, nextStep: Int): Answers = {
stepNum match {
case 1 =>