From 3102d8bce3426d9cf41aeaf201c360d342677770 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 9 Apr 2016 14:22:20 -0700 Subject: Switching from Ivy+Ant to Maven. --- .../com/p4square/grow/backend/apiinfo.html | 41 ++++++++ src/main/resources/grow.properties | 15 +++ src/main/resources/jetty-logging.properties | 1 + src/main/resources/log4j.properties | 15 +++ .../resources/templates/macros/common-page.ftl | 29 ++++++ src/main/resources/templates/macros/common.ftl | 4 + src/main/resources/templates/macros/content.ftl | 7 ++ src/main/resources/templates/macros/hms.ftl | 25 +++++ src/main/resources/templates/macros/noticebox.ftl | 10 ++ .../resources/templates/pages/assessment.html.ftl | 43 +++++++++ .../resources/templates/pages/contact.html.ftl | 18 ++++ .../templates/pages/deeper/believer.html.ftl | 51 ++++++++++ .../templates/pages/deeper/disciple.html.ftl | 49 ++++++++++ .../templates/pages/deeper/leader.html.ftl | 23 +++++ .../templates/pages/deeper/seeker.html.ftl | 30 ++++++ .../templates/pages/deeper/teacher.html.ftl | 42 ++++++++ src/main/resources/templates/pages/index.html.ftl | 50 ++++++++++ .../resources/templates/pages/learnmore.html.ftl | 107 +++++++++++++++++++++ src/main/resources/templates/pages/login.html.ftl | 41 ++++++++ .../resources/templates/pages/newaccount.html.ftl | 27 ++++++ .../templates/pages/verification.html.ftl | 17 ++++ src/main/resources/templates/pages/version.ftl | 1 + .../templates/templates/assessment-results.ftl | 34 +++++++ src/main/resources/templates/templates/banner.ftl | 6 ++ .../templates/templates/communityfeed.ftl | 41 ++++++++ .../resources/templates/templates/deeperheader.ftl | 7 ++ src/main/resources/templates/templates/error.ftl | 17 ++++ src/main/resources/templates/templates/footer.ftl | 16 +++ .../templates/templates/getstarted-button.ftl | 7 ++ .../resources/templates/templates/gitversion.ftl | 1 + src/main/resources/templates/templates/header.ftl | 15 +++ .../resources/templates/templates/index-hero.ftl | 8 ++ src/main/resources/templates/templates/nav.ftl | 21 ++++ .../resources/templates/templates/newbeliever.ftl | 41 ++++++++ .../templates/templates/question-circle.ftl | 23 +++++ .../templates/templates/question-image.ftl | 17 ++++ .../templates/templates/question-quad.ftl | 19 ++++ .../templates/templates/question-slider.ftl | 18 ++++ .../templates/templates/question-text.ftl | 17 ++++ .../templates/templates/stage-complete.ftl | 58 +++++++++++ .../templates/templates/stage-teacher-forward.ftl | 47 +++++++++ src/main/resources/templates/templates/survey.ftl | 53 ++++++++++ .../resources/templates/templates/training.ftl | 87 +++++++++++++++++ src/main/resources/templates/utils/dump.ftl | 98 +++++++++++++++++++ 44 files changed, 1297 insertions(+) create mode 100644 src/main/resources/com/p4square/grow/backend/apiinfo.html create mode 100644 src/main/resources/grow.properties create mode 100644 src/main/resources/jetty-logging.properties create mode 100644 src/main/resources/log4j.properties create mode 100644 src/main/resources/templates/macros/common-page.ftl create mode 100644 src/main/resources/templates/macros/common.ftl create mode 100644 src/main/resources/templates/macros/content.ftl create mode 100644 src/main/resources/templates/macros/hms.ftl create mode 100644 src/main/resources/templates/macros/noticebox.ftl create mode 100644 src/main/resources/templates/pages/assessment.html.ftl create mode 100644 src/main/resources/templates/pages/contact.html.ftl create mode 100644 src/main/resources/templates/pages/deeper/believer.html.ftl create mode 100644 src/main/resources/templates/pages/deeper/disciple.html.ftl create mode 100644 src/main/resources/templates/pages/deeper/leader.html.ftl create mode 100644 src/main/resources/templates/pages/deeper/seeker.html.ftl create mode 100644 src/main/resources/templates/pages/deeper/teacher.html.ftl create mode 100644 src/main/resources/templates/pages/index.html.ftl create mode 100644 src/main/resources/templates/pages/learnmore.html.ftl create mode 100644 src/main/resources/templates/pages/login.html.ftl create mode 100644 src/main/resources/templates/pages/newaccount.html.ftl create mode 100644 src/main/resources/templates/pages/verification.html.ftl create mode 100644 src/main/resources/templates/pages/version.ftl create mode 100644 src/main/resources/templates/templates/assessment-results.ftl create mode 100644 src/main/resources/templates/templates/banner.ftl create mode 100644 src/main/resources/templates/templates/communityfeed.ftl create mode 100644 src/main/resources/templates/templates/deeperheader.ftl create mode 100644 src/main/resources/templates/templates/error.ftl create mode 100644 src/main/resources/templates/templates/footer.ftl create mode 100644 src/main/resources/templates/templates/getstarted-button.ftl create mode 100644 src/main/resources/templates/templates/gitversion.ftl create mode 100644 src/main/resources/templates/templates/header.ftl create mode 100644 src/main/resources/templates/templates/index-hero.ftl create mode 100644 src/main/resources/templates/templates/nav.ftl create mode 100644 src/main/resources/templates/templates/newbeliever.ftl create mode 100644 src/main/resources/templates/templates/question-circle.ftl create mode 100644 src/main/resources/templates/templates/question-image.ftl create mode 100644 src/main/resources/templates/templates/question-quad.ftl create mode 100644 src/main/resources/templates/templates/question-slider.ftl create mode 100644 src/main/resources/templates/templates/question-text.ftl create mode 100644 src/main/resources/templates/templates/stage-complete.ftl create mode 100644 src/main/resources/templates/templates/stage-teacher-forward.ftl create mode 100644 src/main/resources/templates/templates/survey.ftl create mode 100644 src/main/resources/templates/templates/training.ftl create mode 100644 src/main/resources/templates/utils/dump.ftl (limited to 'src/main/resources') diff --git a/src/main/resources/com/p4square/grow/backend/apiinfo.html b/src/main/resources/com/p4square/grow/backend/apiinfo.html new file mode 100644 index 0000000..a3637c9 --- /dev/null +++ b/src/main/resources/com/p4square/grow/backend/apiinfo.html @@ -0,0 +1,41 @@ + + +API Info + + +
+
/backend/accounts/{userId}
+
GET information about userId or PUT new information.
+ +
/backend/assessment/question/{questionId}
+
GET information about questionId. Special questionIds: first identifies first question. count returns total number of questions.
+ +
/backend/accounts/{userId}/assessment
+
GET the assessment summary for userId or DELETE userId's assessment.
+ +
/backend/accounts/{userId}/assessment/answers/{questionId}
+
GET userId's answer to questionId, PUT a new answer, or DELETE an answer.
+ +
/backend/training/{level}
+
GET all video information for level.
+ +
/backend/training/{level}/videos/{videoId}
+
GET video information for videoId in level.
+ +
/backend/accounts/{userId}/training
+
GET training record summary for userId.
+ +
/backend/accounts/{userId}/training/videos/{videoId}
+
GET training record for userId and videoId or PUT a new record.
+ +
/backend/banner
+
GET the info banner or PUT new banner info.
+ +
/backend/feed/{topic}
+
Get all threads for forum topic.
+ +
/backend/feed/{topic}/{thread}
+
Get all responses to question thread on forum topic.
+
+ + diff --git a/src/main/resources/grow.properties b/src/main/resources/grow.properties new file mode 100644 index 0000000..53075fe --- /dev/null +++ b/src/main/resources/grow.properties @@ -0,0 +1,15 @@ +# Frontend Settings +*.backendUri = riap://component/backend +*.staticRoot = +*.dynamicRoot = + +prod.postAccountCreationPage = http://foursquaregrow.com/login.html + +# Backend Settings +prod.clusterName = Prod Cluster +dev.clusterName = Dev Cluster + +*.awsRegion = us-west-2 +prod.dynamoTablePrefix = grow-prod- +serverprod.dynamoTablePrefix = grow-prod- +dev.dynamoTablePrefix = grow-dev- diff --git a/src/main/resources/jetty-logging.properties b/src/main/resources/jetty-logging.properties new file mode 100644 index 0000000..c291cb8 --- /dev/null +++ b/src/main/resources/jetty-logging.properties @@ -0,0 +1 @@ +org.eclipse.jetty.LEVEL=INFO diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties new file mode 100644 index 0000000..c1e2ecb --- /dev/null +++ b/src/main/resources/log4j.properties @@ -0,0 +1,15 @@ +# Set root logger level to DEBUG and its only appender to A1. +log4j.rootLogger=DEBUG, stdout, logfile + +log4j.loggger.org.eclipse = WARN + +# stdout appender +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n + +# service.log appender +log4j.appender.logfile=org.apache.log4j.FileAppender +log4j.appender.logfile.File=service.log +log4j.appender.logfile.layout=org.apache.log4j.PatternLayout +log4j.appender.logfile.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n diff --git a/src/main/resources/templates/macros/common-page.ftl b/src/main/resources/templates/macros/common-page.ftl new file mode 100644 index 0000000..1780036 --- /dev/null +++ b/src/main/resources/templates/macros/common-page.ftl @@ -0,0 +1,29 @@ +<#macro commonpage> + <#compress> + + + + Grow Process + + + + + + + + +
+ <#include "/templates/banner.ftl"> + <#include "/templates/header.ftl"> + + <#nested> + +
+
+ + <#include "/templates/footer.ftl"> + + + + + diff --git a/src/main/resources/templates/macros/common.ftl b/src/main/resources/templates/macros/common.ftl new file mode 100644 index 0000000..d388a4e --- /dev/null +++ b/src/main/resources/templates/macros/common.ftl @@ -0,0 +1,4 @@ +<#include "content.ftl"> +<#include "noticebox.ftl"> +<#assign dynamicRoot = ""> +<#assign staticRoot = ""> diff --git a/src/main/resources/templates/macros/content.ftl b/src/main/resources/templates/macros/content.ftl new file mode 100644 index 0000000..eaf0b17 --- /dev/null +++ b/src/main/resources/templates/macros/content.ftl @@ -0,0 +1,7 @@ +<#macro content class=""> +
+
+ <#nested> +
+
+ diff --git a/src/main/resources/templates/macros/hms.ftl b/src/main/resources/templates/macros/hms.ftl new file mode 100644 index 0000000..339b8a9 --- /dev/null +++ b/src/main/resources/templates/macros/hms.ftl @@ -0,0 +1,25 @@ +<#macro hms seconds> + <#assign h = (seconds / 3600)?int /> + <#assign m = (seconds % 3600 / 60)?int /> + <#assign s = (seconds % 3600 % 60)?int /> + + <#if (h < 10)> + <#assign h = "0${h}" /> + + + <#if (m < 10)> + <#assign m = "0${m}" /> + + + <#if (s < 10)> + <#assign s = "0${s}" /> + + + <#if (seconds >= 3600)> + ${h}:${m}:${s} + <#elseif (seconds >= 60)> + ${m}:${s} + <#else> + ${s} seconds + + diff --git a/src/main/resources/templates/macros/noticebox.ftl b/src/main/resources/templates/macros/noticebox.ftl new file mode 100644 index 0000000..34ef994 --- /dev/null +++ b/src/main/resources/templates/macros/noticebox.ftl @@ -0,0 +1,10 @@ +<#macro noticebox class=""> +
+
+

+ + <#nested> +

+
+
+ diff --git a/src/main/resources/templates/pages/assessment.html.ftl b/src/main/resources/templates/pages/assessment.html.ftl new file mode 100644 index 0000000..3737dc6 --- /dev/null +++ b/src/main/resources/templates/pages/assessment.html.ftl @@ -0,0 +1,43 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content class="text"> +

Assessment

+ +

+ Welcome to the start of GROW and the GROW personal assessment. The + purpose of this 18-question assessment will identify where you are + in the spiritual development process: +

+ +

+ Growth Process +

+ +

+ Upon completion of the assessment, you will be invited to join the + process at the appropriate stage. For example if the assessment + returns a “believer” result, you will be invited to start the + Believer level of this process. +

+ +

+ Once you have completed this level, you will be invited to begin the next stage of GROW. +

+ +

+ Let's get with your personal GROW assessment now, it will only take a few minutes. +

+ + + +
+ Begin Assessment ➙ +
+ + + diff --git a/src/main/resources/templates/pages/contact.html.ftl b/src/main/resources/templates/pages/contact.html.ftl new file mode 100644 index 0000000..c84e047 --- /dev/null +++ b/src/main/resources/templates/pages/contact.html.ftl @@ -0,0 +1,18 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content class="text"> +

Contact Us

+ +

+ If you have any questions about GROW, please email us at connect@myfoursquarechurch.com or call us at 253-848-9111. +

+ + + + + diff --git a/src/main/resources/templates/pages/deeper/believer.html.ftl b/src/main/resources/templates/pages/deeper/believer.html.ftl new file mode 100644 index 0000000..2bf9150 --- /dev/null +++ b/src/main/resources/templates/pages/deeper/believer.html.ftl @@ -0,0 +1,51 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <#if errorMessage??> + <@noticebox class="visible"> + ${errorMessage?html} + + <#else> + <@noticebox> + + + +
+
+ <#include "/templates/deeperheader.ftl"> + +

Assessments

+
    +
  • + Spiritual Gifts Assessment +

    + This is a spiritual gifts assessment. We all have + gifts from God to be understood and utilized and used + for Him. This link is a tool to help you identify your + spiritual gifts so that you can better understand your + fit in the body of Christ. +

    +
  • +
+

Reading List

+ +

Other

+ +
+
+ diff --git a/src/main/resources/templates/pages/deeper/disciple.html.ftl b/src/main/resources/templates/pages/deeper/disciple.html.ftl new file mode 100644 index 0000000..dd7fc13 --- /dev/null +++ b/src/main/resources/templates/pages/deeper/disciple.html.ftl @@ -0,0 +1,49 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <#if errorMessage??> + <@noticebox class="visible"> + ${errorMessage?html} + + <#else> + <@noticebox> + + + +
+
+ <#include "/templates/deeperheader.ftl"> + +

Assessments

+
    +
  • + Transformational Disciple Assessment +

    + The Transformational Discipleship Assessment (TDA) + is an advanced tool to dive more deeply into + opportunities for your customized discipleship + journey. This is an excellent tool to help you + take your spiritual formation to the next level. +

    +
  • +
+

Reading List

+ +

Other

+ +
+
+ diff --git a/src/main/resources/templates/pages/deeper/leader.html.ftl b/src/main/resources/templates/pages/deeper/leader.html.ftl new file mode 100644 index 0000000..371c367 --- /dev/null +++ b/src/main/resources/templates/pages/deeper/leader.html.ftl @@ -0,0 +1,23 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <#if errorMessage??> + <@noticebox class="visible"> + ${errorMessage?html} + + <#else> + <@noticebox> + + + +
+ +
+ diff --git a/src/main/resources/templates/pages/deeper/seeker.html.ftl b/src/main/resources/templates/pages/deeper/seeker.html.ftl new file mode 100644 index 0000000..ed0b21a --- /dev/null +++ b/src/main/resources/templates/pages/deeper/seeker.html.ftl @@ -0,0 +1,30 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <#if errorMessage??> + <@noticebox class="visible"> + ${errorMessage?html} + + <#else> + <@noticebox> + + + +
+ +
+ + diff --git a/src/main/resources/templates/pages/deeper/teacher.html.ftl b/src/main/resources/templates/pages/deeper/teacher.html.ftl new file mode 100644 index 0000000..f0046f2 --- /dev/null +++ b/src/main/resources/templates/pages/deeper/teacher.html.ftl @@ -0,0 +1,42 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <#if errorMessage??> + <@noticebox class="visible"> + ${errorMessage?html} + + <#else> + <@noticebox> + + + +
+
+ <#include "/templates/deeperheader.ftl"> + +

Assessments

+
    +
  • + Transformational Disciple Assessment +

    + The Transformational Discipleship Assessment (TDA) + is an advanced tool to dive more deeply into + opportunities for your customized discipleship + journey. This is an excellent tool to help you + take your spiritual formation to the next level. +

    +
  • +
+

Reading List

+ +

Other

+ +
+
+ diff --git a/src/main/resources/templates/pages/index.html.ftl b/src/main/resources/templates/pages/index.html.ftl new file mode 100644 index 0000000..59a5e38 --- /dev/null +++ b/src/main/resources/templates/pages/index.html.ftl @@ -0,0 +1,50 @@ +<#include "/macros/common.ftl"> + + + + Grow Process + + + + + + + + +
+ <#include "/templates/banner.ftl"> +
+

+ + <#if config.getDomain() != "prod"> + ${config.getDomain()} + +

+ + <#include "/templates/nav.ftl"> +
+ + <#include "/templates/index-hero.ftl"> + + <@content> +

Welcome to GROW

+

+ GROW is an on-line web based spiritual formation + process created by Foursquare Puyallup church with you in mind, to + assist you in your journey to discover God, and to be an effective + follower of Jesus Christ. +

+ + + + + +
+
+ +<#include "/templates/footer.ftl"> + + + diff --git a/src/main/resources/templates/pages/learnmore.html.ftl b/src/main/resources/templates/pages/learnmore.html.ftl new file mode 100644 index 0000000..f69b075 --- /dev/null +++ b/src/main/resources/templates/pages/learnmore.html.ftl @@ -0,0 +1,107 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content class="text"> +

Learn More

+ +

What is GROW?

+

+ GROW is a comprehensive spiritual formation and discipleship tool + that is specifically designed to help you grow and mature as a + follower of Jesus Christ. +

+

+ GROW is an innovative, web based process that incorporates multiple + media elements for learning including assessments, videos, written + materials, interactive tools, community forums, etc. +

+

+ GROW is designed to be experienced in a variety of ways to meet all + the possible scenarios and environments for learning: +

+ + +

Why GROW?

+

+ Disciple means "learner" and our goal is to help you be an + effective learner and grow in the knowledge of Jesus Christ, the + Word of God, and the essentials of your faith. This will cause the + transformation God promises you will experience, and that + transformation will in turn change your life! +

+

+ Every individual is in one of four stages of spiritual formation: +

+

Seeker, Believer, Disciple, Teacher

+

+ Our goal is to help you identify where you are, and to help you get to + the next stage of development and spiritual maturity. +

+

+ We believe that Jesus last command in Matthew 28:19 should be our + highest priority: +

+
+ "Therefore go and make disciples of all nations, baptizing them in + the name of the Father and of the Son and of the Holy Spirit..." +
+

+ At Foursquare Puyallup, we + are passionate about people discovering God, + entering into a personal relationship with Jesus Christ, and then + realizing their full potential in Christ as a follower of His. +

+ +

It is in our mission statement:

+ +
+ We present the Gospel message in such a way that Seekers become + Believers, Believers become Disciples, Disciples become Teachers and + Teachers lead this process. +
+ +

And it's our #5 Core value as a church:

+ +
+ We value leadership development. We help Seekers to become + Believers, Believers to become Disciples and Disciples to become + Teachers. We want to encourage and cheer the development process. +
+ +

+ We have created the GROW process for that very purpose, and in + fulfillment of God's call on the church. +

+ +

How does GROW work?

+

Here is how it works:

+ + +

Now it's your turn to act!

+

Get started now in your journey by taking the GROW assessment.

+ + + + <#include "/templates/getstarted-button.ftl"> + + diff --git a/src/main/resources/templates/pages/login.html.ftl b/src/main/resources/templates/pages/login.html.ftl new file mode 100644 index 0000000..b88ea74 --- /dev/null +++ b/src/main/resources/templates/pages/login.html.ftl @@ -0,0 +1,41 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <#if errorMessage??> + <@noticebox class="visible"> + ${errorMessage?html} + + <#else> + <@noticebox> + + + +
+
+
Puyallup Foursquare
+
+
+
+

Login using your Foursquare Community Groups / Online Giving login.

+

+

+
+

+

+

+
+

+

+

Don't have an account? Sign up!

+
+
+
+
Acts 2:42
+
Leadership Development
+
+
+
+
+ + diff --git a/src/main/resources/templates/pages/newaccount.html.ftl b/src/main/resources/templates/pages/newaccount.html.ftl new file mode 100644 index 0000000..edfd196 --- /dev/null +++ b/src/main/resources/templates/pages/newaccount.html.ftl @@ -0,0 +1,27 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <#if errorMessage??> + <@noticebox class="visible"> + ${errorMessage?html} + + <#else> + <@noticebox> + + + + <@content> +

+ Fill out the form below to create a new Puyallup Foursquare InFellowship account. +

+
+

+

+

+

+
+ + + + diff --git a/src/main/resources/templates/pages/verification.html.ftl b/src/main/resources/templates/pages/verification.html.ftl new file mode 100644 index 0000000..e81b005 --- /dev/null +++ b/src/main/resources/templates/pages/verification.html.ftl @@ -0,0 +1,17 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content> +

+ We have sent you a verification email. + You will be taken back to the login page after you activate your account. +

+ + + + + diff --git a/src/main/resources/templates/pages/version.ftl b/src/main/resources/templates/pages/version.ftl new file mode 100644 index 0000000..d8a38a2 --- /dev/null +++ b/src/main/resources/templates/pages/version.ftl @@ -0,0 +1 @@ +Current version <#include "/templates/gitversion.ftl"> diff --git a/src/main/resources/templates/templates/assessment-results.ftl b/src/main/resources/templates/templates/assessment-results.ftl new file mode 100644 index 0000000..12c45b7 --- /dev/null +++ b/src/main/resources/templates/templates/assessment-results.ftl @@ -0,0 +1,34 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content class="text"> +

Congratulations!

+ +

Congratulations for completing your GROW assessment!

+ +

Based on your responses you have been identified as a ${stage?cap_first}.

+ +

+ So what's next? Now you begin the process of GROWing. The button + below will take you to the ${stage?cap_first} page. +

+ +

Here you will find everything you need to begin the GROW process and start your journey.

+ +

+ We are genuinely excited for you. Each phase of the GROW process + will produce positive quantifiable and quality results in your life, as + you learn, and then apply this learning in your life. +

+ + +
+ Begin GROWing ➙ +
+ + + diff --git a/src/main/resources/templates/templates/banner.ftl b/src/main/resources/templates/templates/banner.ftl new file mode 100644 index 0000000..3a2d23b --- /dev/null +++ b/src/main/resources/templates/templates/banner.ftl @@ -0,0 +1,6 @@ +<#assign bannerResult = get("bannerData", "riap://component/backend/banner")> +<#if bannerResult.succeeded == true> + <#if (bannerData.html!"") != ""> + + + diff --git a/src/main/resources/templates/templates/communityfeed.ftl b/src/main/resources/templates/templates/communityfeed.ftl new file mode 100644 index 0000000..71b33bc --- /dev/null +++ b/src/main/resources/templates/templates/communityfeed.ftl @@ -0,0 +1,41 @@ +<#escape x as x?html> +
+

Discussion Forum

+ + <#assign max_threads = 5> + <#assign threads = feeddata.getThreads(chapter, max_threads)> + <#list threads as thread> + <#assign messages = feeddata.getMessages(chapter, thread.id)> +
+
+

Q: ${thread.message.message!""}

+
By ${thread.message.author.firstName}
+
Answer
+
+ + <#list messages as msg> +
+

A: ${msg.message!""}

+
By ${thread.message.author.firstName}
+ <#if msg_has_next && msg_index == 0> +
(show more answers)
+ +
+ +
+ +
+
+
+ + +
+
+
+
+ diff --git a/src/main/resources/templates/templates/deeperheader.ftl b/src/main/resources/templates/templates/deeperheader.ftl new file mode 100644 index 0000000..32fa9bf --- /dev/null +++ b/src/main/resources/templates/templates/deeperheader.ftl @@ -0,0 +1,7 @@ +

Going Deeper

+

+ This section is a list of resources provided to help you to go + deeper in your faith. It includes reading material, links to + helpful resources, etc. +

+ diff --git a/src/main/resources/templates/templates/error.ftl b/src/main/resources/templates/templates/error.ftl new file mode 100644 index 0000000..4f46839 --- /dev/null +++ b/src/main/resources/templates/templates/error.ftl @@ -0,0 +1,17 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content> +

An Error has Occurred

+ +

An error has occurred. If you continue to see this message, please contact us.

+

Error: ${errorMessage}

+ + + + + diff --git a/src/main/resources/templates/templates/footer.ftl b/src/main/resources/templates/templates/footer.ftl new file mode 100644 index 0000000..e6bae13 --- /dev/null +++ b/src/main/resources/templates/templates/footer.ftl @@ -0,0 +1,16 @@ + + diff --git a/src/main/resources/templates/templates/getstarted-button.ftl b/src/main/resources/templates/templates/getstarted-button.ftl new file mode 100644 index 0000000..b0baaee --- /dev/null +++ b/src/main/resources/templates/templates/getstarted-button.ftl @@ -0,0 +1,7 @@ +
+ <#if user??> + Get Started! ➙ + <#else> + Get Started! ➙ + +
diff --git a/src/main/resources/templates/templates/gitversion.ftl b/src/main/resources/templates/templates/gitversion.ftl new file mode 100644 index 0000000..08e5207 --- /dev/null +++ b/src/main/resources/templates/templates/gitversion.ftl @@ -0,0 +1 @@ +${describe} diff --git a/src/main/resources/templates/templates/header.ftl b/src/main/resources/templates/templates/header.ftl new file mode 100644 index 0000000..0911bbc --- /dev/null +++ b/src/main/resources/templates/templates/header.ftl @@ -0,0 +1,15 @@ +
+

+ <#if user??> + Grow Process + <#else> + Grow Process + + <#if config.getDomain() != "prod"> + ${config.getDomain()} + + Foursqaure Church +

+ + <#include "/templates/nav.ftl"> +
diff --git a/src/main/resources/templates/templates/index-hero.ftl b/src/main/resources/templates/templates/index-hero.ftl new file mode 100644 index 0000000..023475a --- /dev/null +++ b/src/main/resources/templates/templates/index-hero.ftl @@ -0,0 +1,8 @@ +
+ +
+ diff --git a/src/main/resources/templates/templates/nav.ftl b/src/main/resources/templates/templates/nav.ftl new file mode 100644 index 0000000..c1f22ae --- /dev/null +++ b/src/main/resources/templates/templates/nav.ftl @@ -0,0 +1,21 @@ +<#macro navLink href> +
  • + class="current" + + href="${href}"><#nested>
  • + + + diff --git a/src/main/resources/templates/templates/newbeliever.ftl b/src/main/resources/templates/templates/newbeliever.ftl new file mode 100644 index 0000000..226b054 --- /dev/null +++ b/src/main/resources/templates/templates/newbeliever.ftl @@ -0,0 +1,41 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content class="text"> +

    New Believers

    +

    + CONGRATULATIONS on your new relationship with Jesus Christ. + It is vital to grow in your understanding of God and of Jesus + Christ and the Holy Spirit as you begin your new journey of + faith in Jesus. +

    +

    + You may not feel a sense of urgency to begin, to get the full + understanding of your “new birth” as the Bible + calls it. But trust us when we tell you that to delay in your + growing in the knowledge of Jesus and His life for you, will + only hinder you as a follower of Jesus. +

    +

    + The SEEKER series of four videos you are about to watch + provides you with very important foundational elements of + God's love for you and his gift of salvation through Jesus. +

    +

    + Watch them in their entirety! The last video will lead in a + prayer of salvation that you have already done at church. You + are free to pray it again, but it is not necessary, you are + SAVED! +

    +

    + Now click GET STARTED and create your LOGIN and start GROWing! +

    + + + <#include "/templates/getstarted-button.ftl"> + + diff --git a/src/main/resources/templates/templates/question-circle.ftl b/src/main/resources/templates/templates/question-circle.ftl new file mode 100644 index 0000000..fbb2e61 --- /dev/null +++ b/src/main/resources/templates/templates/question-circle.ftl @@ -0,0 +1,23 @@ +

    ${question.question}

    +<#if question.description??> +

    + ${question.description} +

    + + +

    Move the white dot to answer the question.

    + +
    +
    + ${question.topLeft} + ${question.topRight} +
    +
    +
    +
    +
    + ${question.bottomLeft} + ${question.bottomRight} +
    +
    + diff --git a/src/main/resources/templates/templates/question-image.ftl b/src/main/resources/templates/templates/question-image.ftl new file mode 100644 index 0000000..280c4aa --- /dev/null +++ b/src/main/resources/templates/templates/question-image.ftl @@ -0,0 +1,17 @@ +

    ${question.question}

    +<#if question.description??> +

    + ${question.description} +

    + + +
    + <#list question.answers?keys as answerid> + <#if selectedAnswerId?? && answerid == selectedAnswerId> + + <#else> + + + +
    + diff --git a/src/main/resources/templates/templates/question-quad.ftl b/src/main/resources/templates/templates/question-quad.ftl new file mode 100644 index 0000000..f84dcff --- /dev/null +++ b/src/main/resources/templates/templates/question-quad.ftl @@ -0,0 +1,19 @@ +

    ${question.question}

    +<#if question.description??> +

    + ${question.description} +

    + + +

    Move the white dot to answer the question.

    + +
    +
    ${question.top}
    +
    +
    ${question.left}
    +
    +
    ${question.right}
    +
    +
    ${question.bottom}
    +
    + diff --git a/src/main/resources/templates/templates/question-slider.ftl b/src/main/resources/templates/templates/question-slider.ftl new file mode 100644 index 0000000..08b6bd0 --- /dev/null +++ b/src/main/resources/templates/templates/question-slider.ftl @@ -0,0 +1,18 @@ +

    ${question.question}

    +<#if question.description??> +

    + ${question.description} +

    + + +

    Slide the slider to answer the question.

    + +
    +
    +
    + <#list question.answers?keys as answerid> +
    ${question.answers[answerid].text}
    + + +
    +
    diff --git a/src/main/resources/templates/templates/question-text.ftl b/src/main/resources/templates/templates/question-text.ftl new file mode 100644 index 0000000..ac5b846 --- /dev/null +++ b/src/main/resources/templates/templates/question-text.ftl @@ -0,0 +1,17 @@ +

    ${question.question}

    +<#if question.description??> +

    + ${question.description} +

    + + +
    + <#list question.answers?keys as answerid> + <#if selectedAnswerId?? && answerid == selectedAnswerId> +
    ${question.answers[answerid].text}
    + <#else> +
    ${question.answers[answerid].text}
    + + +
    + diff --git a/src/main/resources/templates/templates/stage-complete.ftl b/src/main/resources/templates/templates/stage-complete.ftl new file mode 100644 index 0000000..72dc780 --- /dev/null +++ b/src/main/resources/templates/templates/stage-complete.ftl @@ -0,0 +1,58 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content class="text"> +

    Congratulations!

    + +

    + Congratulations on the completion of the ${stage?cap_first} level of the GROW process. +

    + +

    + We strongly encourage you move to the next stage of GROW. However, + before you do that, let’s review a key component to ensure you + experience the transformation and benefits of what you have already + learned: Implementation. +

    + +

    + Learning is important, we should all be continuous learners, + otherwise we stagnate. +

    + +

    + However to learn new information and then not implement or employ + that learning in our life, will make us smarter but not necessarily + wiser or better. +

    + +

    + For many there is a “knowing, doing gap” in their lives. They know + a lot, but they don’t do anything with what they know, and they remain + “stuck”. +

    + +

    + We know that for your new knowledge and learning to have an impact + on your life you must implement it. +

    + +

    + You were given some tips for how to act on the new knowledge you + have. We encourage you to be proactive and intentional in closing the + gap between what you know and what you do, to experience all that God + has for you. +

    + + + + <#if nextstage??> +
    + Continue GROWing ➙ +
    + + diff --git a/src/main/resources/templates/templates/stage-teacher-forward.ftl b/src/main/resources/templates/templates/stage-teacher-forward.ftl new file mode 100644 index 0000000..e8f186d --- /dev/null +++ b/src/main/resources/templates/templates/stage-teacher-forward.ftl @@ -0,0 +1,47 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + + + <@content class="text"> +

    Welcome

    + +

    + Welcome to the "Leader" portion of GROW. This portion of the GROW + process is intended for those who either: +

    + + + +

    + This section of GROW contains two elements: Teacher and Group Leader +

    + +
      +
    1. Teacher: If you are considering leading in the church in any + capacity; on a team in ministry, or as a Community Group leader you must + complete Teacher
    2. + +
    3. Group Leader: If you are considering leading a Community Group, + you must complete BOTH Teacher and Group Leader
    4. +
    + +

    + We trust you will enjoy these teachings, learn and grow and be better + equipped to serve God regardless of how or where you serve or lead. +

    + + + + <#if nextstage??> +
    + Continue GROWing ➙ +
    + + diff --git a/src/main/resources/templates/templates/survey.ftl b/src/main/resources/templates/templates/survey.ftl new file mode 100644 index 0000000..d770461 --- /dev/null +++ b/src/main/resources/templates/templates/survey.ftl @@ -0,0 +1,53 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> + +<@commonpage> + <@noticebox> + The Grow Process focuses on the topic that you want to learn + about. Our 'Assessment' test will give you the right courses + fit for your level. + + +
    +
    +
    + +
    +
    + + + + +
    + <#switch question.type> + <#case "text"> + <#include "/templates/question-text.ftl"> + <#break> + <#case "image"> + <#include "/templates/question-image.ftl"> + <#break> + <#case "slider"> + <#include "/templates/question-slider.ftl"> + <#break> + <#case "quad"> + <#include "/templates/question-quad.ftl"> + <#break> + <#case "circle"> + <#include "/templates/question-circle.ftl"> + <#break> + +
    +
    +
    + + diff --git a/src/main/resources/templates/templates/training.ftl b/src/main/resources/templates/templates/training.ftl new file mode 100644 index 0000000..c5d1b32 --- /dev/null +++ b/src/main/resources/templates/templates/training.ftl @@ -0,0 +1,87 @@ +<#include "/macros/common.ftl"> +<#include "/macros/common-page.ftl"> +<#include "/macros/hms.ftl"> + +<@commonpage> + <@noticebox> + The Grow Process focuses on the topic that you want to learn + about. Our 'Assessment' test will give you the right courses + fit for your level. + + +
    +
    +
    + +
    + + +
    + "${chapter?capitalize} Chapter Progress:" +
    +
    ${chapterProgress}%
    +
    + + <#assign sidebar=showfeed || deeperinclude?has_content> + +
    style="width: 70%"> + <#assign allowed = true> + <#list videos as video> +
    style="margin-right: 30px"> +
    ${video.title}
    +

    <#if video.number != "0">${video.number}. ${video.title}

    + <@hms seconds=video.length /> + <#if (video.pdf!"") != ""> + Outline + + <#if !allowUserToSkip && allowed && !video.completed> + <#assign allowed = false> + +
    + +
    + + <#assign hasDeeper = ["seeker", "believer", "disciple", "teacher"]> + <#if hasDeeper?seq_contains(chapter)> +
    +

    Going Deeper

    +

    + Click here + for additional and important resources specifically for ${chapter}s. +

    +

    + This page contains a list of resources provided to help you to go + deeper in your faith. It includes reading material, links to + helpful resources, etc. +

    +
    + + + <#if showfeed!false> + <#include "/templates/communityfeed.ftl"> + +
    + +
    +
    Close Video
    +
    + +
    +
    + + + + diff --git a/src/main/resources/templates/utils/dump.ftl b/src/main/resources/templates/utils/dump.ftl new file mode 100644 index 0000000..6491a25 --- /dev/null +++ b/src/main/resources/templates/utils/dump.ftl @@ -0,0 +1,98 @@ +<#-- dump.ftl + -- + -- Generates tree representations of data model items. + -- + -- Usage: + -- <#import "dump.ftl" as dumper> + -- + -- <#assign foo = something.in["your"].data[0].model /> + -- + -- <@dumper.dump foo /> + -- + -- When used within html pages you've to use
    -tags to get the wanted
    +  -- result:
    +  -- 
    +  -- <@dumper.dump foo />
    +  -- 
    +  -->
    +
    +<#-- The black_list contains bad hash keys. Any hash key which matches a 
    +  -- black_list entry is prevented from being displayed.
    +  -->
    +<#assign black_list = ["class"] />
    +
    +
    +<#-- 
    +  -- The main macro.
    +  -->
    +  
    +<#macro dump data>
    +(root)
    +<#if data?is_enumerable>
    +<@printList data,[] />
    +<#elseif data?is_hash_ex>
    +<@printHashEx data,[] />
    +
    +
    +
    +<#-- private helper macros. it's not recommended to use these macros from 
    +  -- outside the macro library.
    +  -->
    +
    +<#macro printList list has_next_array>
    +<#local counter=0 />
    +<#list list as item>
    +<#list has_next_array+[true] as has_next><#if !has_next>    <#else>  | 
    +<#list has_next_array as has_next><#if !has_next>    <#else>  | <#t>
    +<#t><@printItem item?if_exists,has_next_array+[item_has_next], counter />
    +<#local counter = counter + 1/>
    +
    +
    +
    +<#macro printHashEx hash has_next_array>
    +<#list hash?keys as key>
    +<#list has_next_array+[true] as has_next><#if !has_next>    <#else>  | 
    +<#list has_next_array as has_next><#if !has_next>    <#else>  | <#t>
    +<#t><@printItem hash[key]?if_exists,has_next_array+[key_has_next], key />
    +
    +
    +
    +<#macro printItem item has_next_array key>
    +<#if item?is_method>
    +  +- ${key} = ?? (method)
    +<#elseif item?is_enumerable>
    +  +- ${key}
    +  <@printList item, has_next_array /><#t>
    +<#elseif item?is_hash_ex && omit(key?string)><#-- omit bean-wrapped java.lang.Class objects -->
    +  +- ${key} (omitted)
    +<#elseif item?is_hash_ex>
    +  +- ${key}
    +  <@printHashEx item, has_next_array /><#t>
    +<#elseif item?is_number>
    +  +- ${key} = ${item}
    +<#elseif item?is_string>
    +  +- ${key} = "${item}"
    +<#elseif item?is_boolean>
    +  +- ${key} = ${item?string}
    +<#elseif item?is_date>
    +  +- ${key} = ${item?string("yyyy-MM-dd HH:mm:ss zzzz")}
    +<#elseif item?is_transform>
    +  +- ${key} = ?? (transform)
    +<#elseif item?is_macro>
    +  +- ${key} = ?? (macro)
    +<#elseif item?is_hash>
    +  +- ${key} = ?? (hash)
    +<#elseif item?is_node>
    +  +- ${key} = ?? (node)
    +
    +
    +
    +<#function omit key>
    +    <#local what = key?lower_case>
    +    <#list black_list as item>
    +        <#if what?index_of(item) gte 0>
    +            <#return true>
    +        
    +    
    +    <#return false>
    +
    \ No newline at end of file
    -- 
    cgit v1.2.3