]> git.agnieray.net Git - galette.git/blob - galette/install/steps/type.php
c00e157da85504f5950774d65d0851b1d4e56612
[galette.git] / galette / install / steps / type.php
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * Galette installation, installation type step
7 *
8 * PHP version 5
9 *
10 * Copyright © 2013-2014 The Galette Team
11 *
12 * This file is part of Galette (http://galette.tuxfamily.org).
13 *
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.
18 *
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.
23 *
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/>.
26 *
27 * @category Core
28 * @package Galette
29 *
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
35 */
36
37 use Galette\Core\Install as GaletteInstall;
38 ?>
39 <form action="installer.php" method="POST" class="ui form">
40 <div class="ui two stackable cards">
41 <div class="ui fluid card">
42 <div class="content">
43 <h2>
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>
46 </h2>
47 <ul>
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>
50 </ul>
51 </div>
52 </div>
53 <div class="ui fluid card">
54 <div class="content">
55 <h2>
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>
58 </h2>
59 <ul>
60 <li><?php echo _T("you already have installed Galette, and you want to upgrade to the latest version"); ?>.</li>
61 </ul>
62 <p class="ui orange message"><?php echo _T("Warning: Don't forget to backup your current database."); ?></p>
63 </div>
64 </div>
65 </div>
66
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>
70 </div>
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>
73 </div>
74 </div>
75 </form>