]>
git.agnieray.net Git - galette.git/blob - galette/install/steps/type.php
c00e157da85504f5950774d65d0851b1d4e56612
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 * Galette installation, installation type step
10 * Copyright © 2013-2014 The Galette Team
12 * This file is part of Galette (http://galette.tuxfamily.org).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2013-2014 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @link http://galette.tuxfamily.org
34 * @since Available since 0.8 - 2013-01-09
37 use Galette\Core\Install
as GaletteInstall
;
39 <form action
="installer.php" method
="POST" class="ui form">
40 <div
class="ui two stackable cards">
41 <div
class="ui fluid card">
44 <input type
="radio" name
="install_type" value
="<?php echo GaletteInstall::INSTALL; ?>"<?php
if ($install->isInstall() ||
!$install->isUpgrade()) { echo ' checked="checked"'; } ?
> id
="install"/>
45 <label
for="install"><?php
echo _T("New installation"); ?
></label
>
48 <li
><?php
echo _T("you're installing Galette for the first time"); ?
>,</li
>
49 <li
><?php
echo _T("you wish to erase an older version of Galette without keeping your data"); ?
>.</li
>
53 <div
class="ui fluid card">
56 <input type
="radio" name
="install_type" value
="<?php echo GaletteInstall::UPDATE; ?>"<?php
if ($install->isUpgrade()) { echo ' checked="checked"'; } ?
> id
="update"/>
57 <label
for="update"><?php
echo _T("Update"); ?
></label
>
60 <li
><?php
echo _T("you already have installed Galette, and you want to upgrade to the latest version"); ?
>.</li
>
62 <p
class="ui orange message"><?php
echo _T("Warning: Don't forget to backup your current database."); ?
></p
>
67 <div
class="ui mobile tablet computer reversed equal width grid">
68 <div
class="right aligned column">
69 <button type
="submit" class="ui right labeled icon button"><i
class="angle double right icon"></i
> <?php
echo _T("Next step"); ?
></button
>
71 <div
class="left aligned column">
72 <button type
="submit" id
="btnback" name
="stepback_btn" formnovalidate
class="ui labeled icon button"><i
class="angle double left icon"></i
> <?php
echo _T("Back"); ?
></button
>