remove isntall routing and template
This commit is contained in:
@@ -56,17 +56,6 @@
|
|||||||
<tag name="router.register" priority="0"/>
|
<tag name="router.register" priority="0"/>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="router.install" class="%router.class%">
|
|
||||||
<argument type="service" id="router.xmlLoader"/>
|
|
||||||
<argument>install.xml</argument>
|
|
||||||
<argument type="collection">
|
|
||||||
<argument key="cache_dir">%kernel.cache_dir%</argument>
|
|
||||||
<argument key="debug">%kernel.debug%</argument>
|
|
||||||
</argument>
|
|
||||||
<argument type="service" id="request.context"/>
|
|
||||||
<tag name="router.register" priority="-1"/>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<service id="router.front" class="%router.class%">
|
<service id="router.front" class="%router.class%">
|
||||||
<argument type="service" id="router.xmlLoader"/>
|
<argument type="service" id="router.xmlLoader"/>
|
||||||
<argument>front.xml</argument>
|
<argument>front.xml</argument>
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
|
|
||||||
<routes xmlns="http://symfony.com/schema/routing"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
|
||||||
|
|
||||||
<route id="install.step1" path="/install" >
|
|
||||||
<default key="_controller">Thelia\Controller\Install\InstallController::indexAction</default>
|
|
||||||
</route>
|
|
||||||
|
|
||||||
<route id="install.step2" path="/install/step/2" >
|
|
||||||
<default key="_controller">Thelia\Controller\Install\InstallController::checkPermissionAction</default>
|
|
||||||
</route>
|
|
||||||
|
|
||||||
<route id="install.step3" path="/install/step/3" >
|
|
||||||
<default key="_controller">Thelia\Controller\Install\InstallController::databaseConnectionAction</default>
|
|
||||||
</route>
|
|
||||||
|
|
||||||
<route id="install.step4" path="/install/step/4" >
|
|
||||||
<default key="_controller">Thelia\Controller\Install\InstallController::databaseSelectionAction</default>
|
|
||||||
</route>
|
|
||||||
|
|
||||||
<route id="install.step5" path="/install/step/5" >
|
|
||||||
<default key="_controller">Thelia\Controller\Install\InstallController::generalInformationAction</default>
|
|
||||||
</route>
|
|
||||||
|
|
||||||
<route id="install.step6" path="/install/thanks" >
|
|
||||||
<default key="_controller">Thelia\Controller\Install\InstallController::thanksAction</default>
|
|
||||||
</route>
|
|
||||||
|
|
||||||
</routes>
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*************************************************************************************/
|
|
||||||
/* */
|
|
||||||
/* Thelia */
|
|
||||||
/* */
|
|
||||||
/* Copyright (c) OpenStudio */
|
|
||||||
/* email : info@thelia.net */
|
|
||||||
/* web : http://www.thelia.net */
|
|
||||||
/* */
|
|
||||||
/* This program is free software; you can redistribute it and/or modify */
|
|
||||||
/* it under the terms of the GNU General Public License as published by */
|
|
||||||
/* the Free Software Foundation; either version 3 of the License */
|
|
||||||
/* */
|
|
||||||
/* This program is distributed in the hope that it will be useful, */
|
|
||||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
||||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
||||||
/* GNU General Public License for more details. */
|
|
||||||
/* */
|
|
||||||
/* You should have received a copy of the GNU General Public License */
|
|
||||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
/* */
|
|
||||||
/*************************************************************************************/
|
|
||||||
|
|
||||||
namespace Thelia\Controller\Install;
|
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
|
||||||
use Thelia\Controller\BaseController;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class BaseInstallController
|
|
||||||
* @package Thelia\Controller\Install
|
|
||||||
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
|
||||||
*/
|
|
||||||
class BaseInstallController extends BaseController
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @return a ParserInterface instance parser
|
|
||||||
*/
|
|
||||||
protected function getParser()
|
|
||||||
{
|
|
||||||
$parser = $this->container->get("thelia.parser");
|
|
||||||
|
|
||||||
// Define the template that shoud be used
|
|
||||||
$parser->setTemplate("install");
|
|
||||||
|
|
||||||
return $parser;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function render($templateName, $args = array())
|
|
||||||
{
|
|
||||||
return new Response($this->renderRaw($templateName, $args));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function renderRaw($templateName, $args = array())
|
|
||||||
{
|
|
||||||
$data = $this->getParser()->render($templateName, $args);
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,270 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*************************************************************************************/
|
|
||||||
/* */
|
|
||||||
/* Thelia */
|
|
||||||
/* */
|
|
||||||
/* Copyright (c) OpenStudio */
|
|
||||||
/* email : info@thelia.net */
|
|
||||||
/* web : http://www.thelia.net */
|
|
||||||
/* */
|
|
||||||
/* This program is free software; you can redistribute it and/or modify */
|
|
||||||
/* it under the terms of the GNU General Public License as published by */
|
|
||||||
/* the Free Software Foundation; either version 3 of the License */
|
|
||||||
/* */
|
|
||||||
/* This program is distributed in the hope that it will be useful, */
|
|
||||||
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
||||||
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
|
||||||
/* GNU General Public License for more details. */
|
|
||||||
/* */
|
|
||||||
/* You should have received a copy of the GNU General Public License */
|
|
||||||
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
||||||
/* */
|
|
||||||
/*************************************************************************************/
|
|
||||||
|
|
||||||
namespace Thelia\Controller\Install;
|
|
||||||
use Thelia\Form\Exception\FormValidationException;
|
|
||||||
use Thelia\Form\InstallStep3Form;
|
|
||||||
use Thelia\Install\CheckDatabaseConnection;
|
|
||||||
use Thelia\Install\CheckPermission;
|
|
||||||
use Thelia\Install\Exception\AlreadyInstallException;
|
|
||||||
use Thelia\Install\Exception\InstallException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class InstallController
|
|
||||||
*
|
|
||||||
* @package Thelia\Controller\Install
|
|
||||||
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
|
||||||
* @author Guillaume MOREL <gmorel@openstudio.fr>
|
|
||||||
*/
|
|
||||||
class InstallController extends BaseInstallController
|
|
||||||
{
|
|
||||||
public function indexAction()
|
|
||||||
{
|
|
||||||
$args = array();
|
|
||||||
try {
|
|
||||||
//$this->verifyStep(1); // @todo implement
|
|
||||||
$this->getSession()->set("step", 1);
|
|
||||||
} catch (AlreadyInstallException $e) {
|
|
||||||
$args['isAlreadyInstalled'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return $this->render("index.html");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Integration tests
|
|
||||||
*
|
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
|
||||||
*/
|
|
||||||
public function checkPermissionAction()
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
//$this->verifyStep(2); // @todo implement
|
|
||||||
$checkPermission = new CheckPermission(true, $this->getTranslator());
|
|
||||||
$args['isValid'] = $isValid = $checkPermission->exec();
|
|
||||||
$args['validationMessages'] = $checkPermission->getValidationMessages();
|
|
||||||
|
|
||||||
$this->getSession()->set("step", 2);
|
|
||||||
} catch (AlreadyInstallException $e) {
|
|
||||||
$args['isAlreadyInstalled'] = true;
|
|
||||||
}
|
|
||||||
$args = array();
|
|
||||||
|
|
||||||
|
|
||||||
return $this->render("step-2.html", $args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Database connexion tests
|
|
||||||
*
|
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
|
||||||
*/
|
|
||||||
public function databaseConnectionAction()
|
|
||||||
{
|
|
||||||
$args = array();
|
|
||||||
|
|
||||||
try {
|
|
||||||
//$this->verifyStep(2); // @todo implement
|
|
||||||
|
|
||||||
if ($this->getRequest()->isMethod('POST')) {
|
|
||||||
// Create the form from the request
|
|
||||||
$step3Form = new InstallStep3Form($this->getRequest());
|
|
||||||
|
|
||||||
$message = false;
|
|
||||||
try {
|
|
||||||
// Check the form against constraints violations
|
|
||||||
$form = $this->validateForm($step3Form, 'POST');
|
|
||||||
|
|
||||||
// Get the form field values
|
|
||||||
$data = $form->getData();
|
|
||||||
var_dump('data', $data);
|
|
||||||
|
|
||||||
// @todo implement tests
|
|
||||||
try {
|
|
||||||
new CheckDatabaseConnection(
|
|
||||||
$data['host'],
|
|
||||||
$data['user'],
|
|
||||||
$data['password'],
|
|
||||||
$data['port'],
|
|
||||||
true,
|
|
||||||
$this->getTranslator()
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->getSession()->set('install', array(
|
|
||||||
'host' =>$data['host'],
|
|
||||||
'user' => $data['user'],
|
|
||||||
'password' => $data['password'],
|
|
||||||
'port' => $data['port']
|
|
||||||
)
|
|
||||||
);
|
|
||||||
} catch (InstallException $e) {
|
|
||||||
$message = $this->getTranslator()->trans(
|
|
||||||
'Can\'t connect with these credentials to this server',
|
|
||||||
array(),
|
|
||||||
'install-wizard'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// $this->redirect(
|
|
||||||
// str_replace(
|
|
||||||
// '{id}',
|
|
||||||
// $couponEvent->getCoupon()->getId(),
|
|
||||||
// $creationForm->getSuccessUrl()
|
|
||||||
// )
|
|
||||||
// );
|
|
||||||
} catch (FormValidationException $e) {
|
|
||||||
// Invalid data entered
|
|
||||||
$message = $this->getTranslator()->trans(
|
|
||||||
'Please check your input:',
|
|
||||||
array(),
|
|
||||||
'install-wizard'
|
|
||||||
);
|
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
// Any other error
|
|
||||||
$message = $this->getTranslator()->trans(
|
|
||||||
'Sorry, an error occurred:',
|
|
||||||
array(),
|
|
||||||
'install-wizard'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($message !== false) {
|
|
||||||
// Mark the form as with error
|
|
||||||
$step3Form->setErrorMessage($message);
|
|
||||||
|
|
||||||
// Send the form and the error to the parser
|
|
||||||
$this->getParserContext()
|
|
||||||
->addForm($step3Form)
|
|
||||||
->setGeneralError($message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->getSession()->set("step", 3);
|
|
||||||
|
|
||||||
$args['edit_language_locale'] = $this->getSession()->getLang()->getLocale();
|
|
||||||
$args['formAction'] = 'install/step/3';
|
|
||||||
|
|
||||||
} catch (AlreadyInstallException $e) {
|
|
||||||
$args['isAlreadyInstalled'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->render('step-3.html', $args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Database selection
|
|
||||||
*
|
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
|
||||||
*/
|
|
||||||
public function databaseSelectionAction()
|
|
||||||
{
|
|
||||||
$args = array();
|
|
||||||
try {
|
|
||||||
|
|
||||||
} catch (AlreadyInstallException $e) {
|
|
||||||
$args['isAlreadyInstalled'] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//$this->verifyStep(2); // @todo implement
|
|
||||||
|
|
||||||
//$permission = new CheckPermission();
|
|
||||||
|
|
||||||
$this->getSession()->set("step", 4);
|
|
||||||
|
|
||||||
return $this->render("step-4.html");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set general information
|
|
||||||
*
|
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
|
||||||
*/
|
|
||||||
public function generalInformationAction()
|
|
||||||
{
|
|
||||||
$args = array();
|
|
||||||
try {
|
|
||||||
|
|
||||||
} catch (AlreadyInstallException $e) {
|
|
||||||
$args['isAlreadyInstalled'] = true;
|
|
||||||
}
|
|
||||||
//$this->verifyStep(2); // @todo implement
|
|
||||||
|
|
||||||
//$permission = new CheckPermission();
|
|
||||||
|
|
||||||
$this->getSession()->set("step", 5);
|
|
||||||
|
|
||||||
return $this->render("step-5.html");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Display Thanks page
|
|
||||||
*
|
|
||||||
* @return \Symfony\Component\HttpFoundation\Response
|
|
||||||
*/
|
|
||||||
public function thanksAction()
|
|
||||||
{
|
|
||||||
$args = array();
|
|
||||||
try {
|
|
||||||
|
|
||||||
} catch (AlreadyInstallException $e) {
|
|
||||||
$args['isAlreadyInstalled'] = true;
|
|
||||||
}
|
|
||||||
//$this->verifyStep(2); // @todo implement
|
|
||||||
|
|
||||||
//$permission = new CheckPermission();
|
|
||||||
|
|
||||||
$this->getSession()->set("step", 6);
|
|
||||||
|
|
||||||
return $this->render("thanks.html");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verify each steps and redirect if one step has already been passed
|
|
||||||
*
|
|
||||||
* @param int $step Step number
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
protected function verifyStep($step)
|
|
||||||
{
|
|
||||||
$session = $this->getSession();
|
|
||||||
|
|
||||||
if ($session->has("step")) {
|
|
||||||
$sessionStep = $session->get("step");
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ($step) {
|
|
||||||
case "1" :
|
|
||||||
if ($sessionStep > 1) {
|
|
||||||
$this->redirect("/install/step/2");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{extends file="layout.tpl"}
|
|
||||||
|
|
||||||
{block name="page-title"}{intl l='Installation'}{/block}
|
|
||||||
|
|
||||||
{block name="main-content"}
|
|
||||||
<div class="install">
|
|
||||||
<div id="wrapper" class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="general-block-decorator">
|
|
||||||
|
|
||||||
<h3 class="title title-without-tabs">{intl l="Thelia installation wizard"}</h3>
|
|
||||||
|
|
||||||
<div class="wizard">
|
|
||||||
<ul>
|
|
||||||
<li class="active"><span class="badge">1</span>{intl l="Welcome"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">2</span>{intl l="Checking permissions"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">3</span>{intl l="Database connection"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">4</span>{intl l="Database selection"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">5</span>{intl l="General information"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">6</span>{intl l="Thanks"}<span class="chevron"></span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="well">
|
|
||||||
<p class="lead text-center">
|
|
||||||
{intl l="Welcome in the Thelia installation wizard."}
|
|
||||||
</p>
|
|
||||||
<p class="text-center">
|
|
||||||
{intl l="We will guide you throughout this process to install any application on your system."}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clearfix">
|
|
||||||
<a href="{url path='/install/step/2'}" class="pull-right btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> {intl l="Continue"}</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/block}
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="{$lang_code}">
|
|
||||||
<head>
|
|
||||||
<title>{block name="page-title"}Thelia Install{/block}</title>
|
|
||||||
|
|
||||||
{images file='../admin/default/assets/img/favicon.ico'}<link rel="shortcut icon" href="{$asset_url}" />{/images}
|
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
|
|
||||||
{stylesheets file='../admin/default/assets/less/*' filters='less,cssembed'}
|
|
||||||
<link rel="stylesheet" href="{$asset_url}">
|
|
||||||
{/stylesheets}
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="topbar">
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="version-info">{intl l='Version %ver' ver="{$THELIA_VERSION}"}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{* -- Main page content section ----------------------------------------- *}
|
|
||||||
{if $isAlreadyInstalled}
|
|
||||||
<div>{intl l='Thelia is already installed'}</div>
|
|
||||||
{else}
|
|
||||||
{block name="main-content"}Put here the content of the template{/block}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
|
|
||||||
{* -- Footer section ---------------------------------------------------- *}
|
|
||||||
|
|
||||||
<hr />
|
|
||||||
<footer class="footer">
|
|
||||||
<div class="container">
|
|
||||||
<p>{intl l='© Thelia 2013'}
|
|
||||||
- <a href="http://www.openstudio.fr/" target="_blank">{intl l='Édité par OpenStudio'}</a>
|
|
||||||
- <a href="http://forum.thelia.net/" target="_blank">{intl l='Forum Thelia'}</a>
|
|
||||||
- <a href="http://contrib.thelia.net/" target="_blank">{intl l='Contributions Thelia'}</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{module_include location='in_footer'}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
{* -- Javascript section ------------------------------------------------ *}
|
|
||||||
|
|
||||||
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
|
|
||||||
|
|
||||||
{block name="after-javascript-include"}{/block}
|
|
||||||
|
|
||||||
{javascripts file='../admin/default/assets/js/bootstrap/bootstrap.js'}
|
|
||||||
<script src="{$asset_url}"></script>
|
|
||||||
{/javascripts}
|
|
||||||
|
|
||||||
{block name="javascript-initialization"}{/block}
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{extends file="layout.tpl"}
|
|
||||||
|
|
||||||
{block name="page-title"}{intl l='Installation step 2'}{/block}
|
|
||||||
|
|
||||||
{block name="main-content"}
|
|
||||||
<div class="install">
|
|
||||||
<div id="wrapper" class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="general-block-decorator">
|
|
||||||
|
|
||||||
<h3 class="title title-without-tabs">{intl l="Thelia installation wizard"}</h3>
|
|
||||||
|
|
||||||
<div class="wizard">
|
|
||||||
<ul>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">1</span>{intl l="Welcome"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="active"><span class="badge">2</span>{intl l="Checking permissions"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">3</span>{intl l="Database connection"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">4</span>{intl l="Database selection"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">5</span>{intl l="General information"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">6</span>{intl l="Thanks"}<span class="chevron"></span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="well">
|
|
||||||
<p>{intl l="Checking directory permissions ..."}</p>
|
|
||||||
<ul class="list-unstyled list-group">
|
|
||||||
{foreach from=$validationMessages item=validationMessage}
|
|
||||||
<li class="list-group-item {if $validationMessage.status}text-success{else}text-danger{/if}">
|
|
||||||
{$validationMessage.text nofilter}
|
|
||||||
{if !$validationMessage.status} - {$validationMessage.hint nofilter}{/if}
|
|
||||||
</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clearfix">
|
|
||||||
<a href="{url path='/install'}" class="pull-left btn btn-default"><span class="glyphicon glyphicon-chevron-left"></span> {intl l="Return"}</a>
|
|
||||||
<a href="{url path='/install/step/3'}" class="pull-right btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> {intl l="Continue"}</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/block}
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
{extends file="layout.tpl"}
|
|
||||||
|
|
||||||
{block name="page-title"}{intl l='Installation step 3'}{/block}
|
|
||||||
|
|
||||||
{block name="main-content"}
|
|
||||||
<div class="install">
|
|
||||||
<div id="wrapper" class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="general-block-decorator">
|
|
||||||
|
|
||||||
<h3 class="title title-without-tabs">{intl l="Thelia installation wizard"}</h3>
|
|
||||||
|
|
||||||
<div class="wizard">
|
|
||||||
<ul>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">1</span>{intl l="Welcome"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">2</span>{intl l="Checking permissions"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="active"><span class="badge">3</span>{intl l="Database connection"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">4</span>{intl l="Database selection"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">5</span>{intl l="General information"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">6</span>{intl l="Thanks"}<span class="chevron"></span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{form name="thelia.install.step3"}
|
|
||||||
<form action="{url path=$formAction}" {form_enctype form=$form} method="POST" >
|
|
||||||
{if ! empty($general_error) }
|
|
||||||
<div class="alert alert-danger">{$general_error}</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{form_hidden_fields form=$form}
|
|
||||||
|
|
||||||
{form_field form=$form field='locale'}
|
|
||||||
<input type="hidden" name="{$name}" value="{if $value}{$value}{else}{$edit_language_locale}{/if}" />
|
|
||||||
{/form_field}
|
|
||||||
|
|
||||||
<div class="well">
|
|
||||||
{form_field form=$form field='host'}
|
|
||||||
<div class="form-group{if $error} has-error{/if}">
|
|
||||||
<label for="host">{intl l="Host"} :</label>
|
|
||||||
<input id="host" class="form-control" type="text" name="{$name}" value="{$value}" placeholder="localhost">
|
|
||||||
{if $error}{$message}{/if}
|
|
||||||
</div>
|
|
||||||
{/form_field}
|
|
||||||
|
|
||||||
{form_field form=$form field='user'}
|
|
||||||
<div class="form-group{if $error} has-error{/if}">
|
|
||||||
<label for="user">{intl l="User"} :</label>
|
|
||||||
<input id="user" type="text" class="form-control" name="{$name}" value="{$value}" >
|
|
||||||
{if $error}{$message}{/if}
|
|
||||||
</div>
|
|
||||||
{/form_field}
|
|
||||||
|
|
||||||
{form_field form=$form field='password'}
|
|
||||||
<div class="form-group{if $error} has-error{/if}">
|
|
||||||
<label for="password">{intl l="Password"} :</label>
|
|
||||||
<input id="password" type="password" class="form-control" name="{$name}" value="{$value}" >
|
|
||||||
{if $error}{$message}{/if}
|
|
||||||
</div>
|
|
||||||
{/form_field}
|
|
||||||
|
|
||||||
{form_field form=$form field='port'}
|
|
||||||
<div class="form-group{if $error} has-error{/if}">
|
|
||||||
<label for="port">{intl l="Port"} :</label>
|
|
||||||
<input id="port" type="text" class="form-control" name="{$name}" value="{if value}{$value}{else}3306{/if}">
|
|
||||||
{if $error}{$message}{/if}
|
|
||||||
</div>
|
|
||||||
{/form_field}
|
|
||||||
</div>
|
|
||||||
<button type="submit" value="{intl l="Continue"}" />
|
|
||||||
<div class="clearfix">
|
|
||||||
|
|
||||||
<a href="install/step/2" class="pull-left btn btn-default"><span class="glyphicon glyphicon-chevron-left"></span> {intl l="Return"}</a>
|
|
||||||
<a href="install/step/4" class="pull-right btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> {intl l="Continue"}</a>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{/form}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/block}
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
{extends file="layout.tpl"}
|
|
||||||
|
|
||||||
{block name="page-title"}{intl l='Installation step 4'}{/block}
|
|
||||||
|
|
||||||
{block name="main-content"}
|
|
||||||
<div class="install">
|
|
||||||
<div id="wrapper" class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="general-block-decorator">
|
|
||||||
|
|
||||||
<h3 class="title title-without-tabs">{intl l="Thelia installation wizard"}</h3>
|
|
||||||
|
|
||||||
<div class="wizard">
|
|
||||||
<ul>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">1</span>{intl l="Welcome"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">2</span>{intl l="Checking permissions"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">3</span>{intl l="Database connection"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="active"><span class="badge">4</span>{intl l="Database selection"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">5</span>{intl l="General information"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">6</span>{intl l="Thanks"}<span class="chevron"></span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="well">
|
|
||||||
<form action="">
|
|
||||||
<fieldset>
|
|
||||||
<legend>{intl l="Choose your database"}</legend>
|
|
||||||
<p>
|
|
||||||
The SQL server contains multiple databases.<br/>
|
|
||||||
Select below the one you want to use.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="" id="" value="">
|
|
||||||
Database 1
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="" id="" value="">
|
|
||||||
Database 2
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{intl l="or"}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="radio">
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="" id="" value="" checked>
|
|
||||||
Create an other database
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control">
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clearfix">
|
|
||||||
<a href="install/step/2" class="pull-left btn btn-default"><span class="glyphicon glyphicon-chevron-left"></span> {intl l="Return"}</a>
|
|
||||||
<a href="install/step/4" class="pull-right btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> {intl l="Continue"}</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/block}
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
{extends file="layout.tpl"}
|
|
||||||
|
|
||||||
{block name="page-title"}{intl l='Installation step 4'}{/block}
|
|
||||||
|
|
||||||
{block name="main-content"}
|
|
||||||
<div class="install">
|
|
||||||
<div id="wrapper" class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="general-block-decorator">
|
|
||||||
|
|
||||||
<h3 class="title title-without-tabs">{intl l="Thelia installation wizard"}</h3>
|
|
||||||
|
|
||||||
<div class="wizard">
|
|
||||||
<ul>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">1</span>{intl l="Welcome"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">2</span>{intl l="Checking permissions"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">3</span>{intl l="Database connection"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">4</span>{intl l="Database selection"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="active"><span class="badge">5</span>{intl l="General information"}<span class="chevron"></span></li>
|
|
||||||
<li><span class="badge">6</span>{intl l="Thanks"}<span class="chevron"></span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="well">
|
|
||||||
<form action="">
|
|
||||||
|
|
||||||
<p>
|
|
||||||
The system will now you create a custom site access.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="">{intl l="Login"} :</label>
|
|
||||||
<input id="" type="text" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="">{intl l="Password"} :</label>
|
|
||||||
<input id="" type="password" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="">{intl l="Password confirmation"} :</label>
|
|
||||||
<input id="" type="password" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="">{intl l="Email address"} :</label>
|
|
||||||
<input id="" type="email" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="">{intl l="Email address confirmation"} :</label>
|
|
||||||
<input id="" type="email" class="form-control">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clearfix">
|
|
||||||
<a href="install/step/2" class="pull-left btn btn-default"><span class="glyphicon glyphicon-chevron-left"></span> {intl l="Return"}</a>
|
|
||||||
<a href="install/step/4" class="pull-right btn btn-default btn-primary"><span class="glyphicon glyphicon-chevron-right"></span> {intl l="Continue"}</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/block}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{extends file="layout.tpl"}
|
|
||||||
|
|
||||||
{block name="page-title"}{intl l='Thanks'}{/block}
|
|
||||||
|
|
||||||
{block name="main-content"}
|
|
||||||
<div class="install">
|
|
||||||
<div id="wrapper" class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<div class="general-block-decorator">
|
|
||||||
|
|
||||||
<h3 class="title title-without-tabs">{intl l="Thelia installation wizard"}</h3>
|
|
||||||
|
|
||||||
<div class="wizard">
|
|
||||||
<ul>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">1</span>{intl l="Welcome"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">2</span>{intl l="Checking permissions"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">3</span>{intl l="Database connection"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">4</span>{intl l="Database selection"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="complete"><a href="#"><span class="badge">5</span>{intl l="General information"}<span class="chevron"></span></a></li>
|
|
||||||
<li class="active"><span class="badge">6</span>{intl l="Thanks"}<span class="chevron"></span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="well">
|
|
||||||
<p class="lead text-center">
|
|
||||||
{intl l="Thank you have installed Thelia"}.
|
|
||||||
</p>
|
|
||||||
<p class="text-center">
|
|
||||||
{intl l="You will be redirected to your personal space in order to manage your store now."}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/block}
|
|
||||||
Reference in New Issue
Block a user