From 1d52d5fa31059908b311438571f44997d4de1366 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 8 Aug 2014 18:45:14 +0200 Subject: [PATCH] Updating installation views. --- .../Resources/translations/messages.en.yml | 6 +- .../views/Process/Step/configure.html.twig | 3 +- .../views/Process/Step/final.html.twig | 3 +- .../views/Process/Step/installation.html.twig | 3 +- .../views/Process/Step/schema.html.twig | 3 +- .../views/Process/Step/setup.html.twig | 3 +- .../views/Process/Step/welcome.html.twig | 12 +- .../Resources/views/progress.html.twig | 158 +++++++++++++++++- 8 files changed, 166 insertions(+), 25 deletions(-) diff --git a/src/ChamiloLMS/InstallerBundle/Resources/translations/messages.en.yml b/src/ChamiloLMS/InstallerBundle/Resources/translations/messages.en.yml index d3c6b37f68..d9081401e9 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/translations/messages.en.yml +++ b/src/ChamiloLMS/InstallerBundle/Resources/translations/messages.en.yml @@ -1,3 +1,5 @@ +title: Chamilo Application installation + flashes: installed: Chamilo has been successfully installed. form: @@ -50,8 +52,8 @@ form: process: step: welcome: - content:

Welcome to Chamilo installer.

- header: Welcome Chamilo installer + header: Welcome! + content:

Welcome to the installer.

check: header: System requirements check configure: diff --git a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/configure.html.twig b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/configure.html.twig index d24b27c721..1d6779a40d 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/configure.html.twig +++ b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/configure.html.twig @@ -1,7 +1,6 @@ {% extends 'ChamiloLMSInstallerBundle::layout.html.twig' %} -{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} - {% set step = 'configure' %} +{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} {% block title %} {% autoescape false %} diff --git a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/final.html.twig b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/final.html.twig index 95b90c7504..2525765742 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/final.html.twig +++ b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/final.html.twig @@ -1,7 +1,6 @@ {% extends 'ChamiloLMSInstallerBundle::layout.html.twig' %} -{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} - {% set step = 'final' %} +{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} {% block title %} {% autoescape false %} diff --git a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/installation.html.twig b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/installation.html.twig index f5805f7579..baad812b06 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/installation.html.twig +++ b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/installation.html.twig @@ -1,8 +1,7 @@ {% extends 'ChamiloLMSInstallerBundle::layout.html.twig' %} -{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} - {#{% set step, platformSteps = 'administration', ['navigation', 'js-routing', 'localization', 'assets', 'assetic', 'translation', 'requirejs'] %}#} {% set step, platformSteps = 'administration', [ 'assets', 'assetic'] %} +{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} {% if loadFixtures %} {% set platformSteps = ['fixtures']|merge(platformSteps) %} diff --git a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/schema.html.twig b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/schema.html.twig index f600a531d0..c55bb54626 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/schema.html.twig +++ b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/schema.html.twig @@ -1,8 +1,7 @@ {% extends 'ChamiloLMSInstallerBundle::layout.html.twig' %} -{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} - {#{% set step, steps = 'schema', ['cache', 'schema-drop', 'clear-config', 'clear-extend', 'schema-update', 'workflows', 'processes', 'fixtures'] %}#} {% set step, steps = 'schema', ['cache', 'schema-drop', 'schema-update', 'fixtures'] %} +{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} {% block title %} {% autoescape false %} diff --git a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/setup.html.twig b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/setup.html.twig index 4ae5c2e1a3..54acf2879a 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/setup.html.twig +++ b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/setup.html.twig @@ -1,6 +1,7 @@ {% extends 'ChamiloLMSInstallerBundle::layout.html.twig' %} - {% set step = 'setup' %} +{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} + {% block title %} {% autoescape false %} {{ 'process.step.setup.header'|trans }} - {{ parent() }} diff --git a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/welcome.html.twig b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/welcome.html.twig index e0cc5b72d9..4e72454139 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/welcome.html.twig +++ b/src/ChamiloLMS/InstallerBundle/Resources/views/Process/Step/welcome.html.twig @@ -1,20 +1,20 @@ {% extends 'ChamiloLMSInstallerBundle::layout.html.twig' %} -{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} - -{% block content %} - {% set step = 'welcome' %} +{% use 'ChamiloLMSInstallerBundle::progress.html.twig' %} {% block title %} {% autoescape false %} - {{ 'process.step.setup.header'|trans }} - {{ parent() }} + {{ 'process.step.welcome.header'|trans }} - {{ parent() }} {% endautoescape %} {% endblock %} +{% block content %} + + {{ 'process.step.welcome.content'|trans|raw }}
- {{ 'process.step.check.button.install'|trans }} + {{ 'process.button.install'|trans }}
{% endblock %} diff --git a/src/ChamiloLMS/InstallerBundle/Resources/views/progress.html.twig b/src/ChamiloLMS/InstallerBundle/Resources/views/progress.html.twig index e1310d3ce0..9d40cf247a 100644 --- a/src/ChamiloLMS/InstallerBundle/Resources/views/progress.html.twig +++ b/src/ChamiloLMS/InstallerBundle/Resources/views/progress.html.twig @@ -1,32 +1,174 @@ {% block progress %} -{% set step = step is defined ? step|lower : 'configure' %} -
-