2 {assign var="extend" value='ajax.tpl'}
4 {assign var="extend" value='page.tpl'}
8 <section id="plugin_install">
10 <h1>{_T string="%plugin plugin installation" pattern="/%plugin/" replace=$plugin.name}</h1>
13 <form action="{path_for name="pluginInitDb" data=["id" => $plugid]}" id="plugins_initdb_form" method="post">
14 <h2>{$page_title}</h2>
16 {include file="global_messages.tpl"}
22 <div id="installation_mode">
23 <article id="mode_new" class="installation_mode">
25 <input type="radio" name="install_type" value="{Galette\Core\PluginInstall::INSTALL}" checked="checked" id="install"/>
26 <label for="install">{_T string="New installation"}</label>
29 <li>{_T string="you're installing %name for the first time" pattern="/%name/" replace=$plugin.name},</li>
30 <li>{_T string="you wish to erase an older version of of %name without keeping your data" pattern="/%name/" replace=$plugin.name}.</li>
33 {if isset($update_scripts) and $update_scripts|@count > 0}
34 <article id="mode_update" class="installation_mode">
36 <input type="radio" name="install_type" value="{Galette\Core\PluginInstall::UPDATE}" id="update"/>
37 <label for="update">{_T string="Update"}</label>
40 <li>{_T string="you already have installed %name, and you want to upgrade to the latest version" pattern="/%name/" replace=$plugin.name}.</li>
42 <p id="warningbox">{_T string="Warning: Don't forget to backup your current database."}</span>
47 {if $step == 'i2' || $step == 'u2'}
51 <fieldset class="cssform">
52 <legend class="ui-state-active ui-corner-top">{_T string="You current %name version is..." pattern="/%name/" replace=$plugin.name}</legend>
54 {assign var=last value=0.00}
55 {foreach from=$update_scripts key=k item=val}
58 <label for="upgrade-{$val}">
61 {_T string="older than %version" pattern="/%version/" replace=$val}
62 {elseif $last != $val}
63 {_T string="comprised between"} {$last} {_T string="and"} {$val}
67 {assign var=last value=$val}
71 <input type="radio" name="previous_version" value="{$val}" id="upgrade-{$val}" required/>
78 {if $step == 'i4' || $step == 'u4'}
79 <p>{_T string="(Errors on DROP and RENAME operations can be ignored)"}</p>
80 {if $error_detected|@count > 0}
83 {_T string="The tables are not totally created, it may be a permission problem."}
85 {_T string="The tables have not been totally created, it may be a permission problem."}
87 {_T string="Your database is maybe not usable, try to restore the older version."}
92 {if $step == 'i5' || $step =='u5'}
95 {_T string="Plugin '%name' has been successfully installed!" pattern="/%name/" replace=$plugin.name}
97 {_T string="Plugin '%name' has been successfully updated!" pattern="/%name/" replace=$plugin.name}
103 <input type="hidden" name="plugid" value="{$plugid}"/>
104 {if $istep > 1 && isset($install_type)}
105 <input type="hidden" name="install_type" value="{$install_type}"/>
107 {if $error_detected|@count == 0 && $istep >= 2 || $istep > 2}
108 <input type="hidden" name="install_dbperms_ok" value="1"/>
110 {if $error_detected|@count == 0 && $istep >= 4 || $istep > 4}
111 <input type="hidden" name="install_dbwrite_ok" value="1"/>
113 {if $error_detected|@count > 0}
114 <input type="submit" value="{_T string="Retry"}"/>
116 <input id="next" type="submit" value="{_T string="Next step"}"/>
120 <a href="#" class="button" id="btnback">{_T string="Close"}</a>
122 <a href="{path_for name="plugins"}" class="button" id="btnback">{_T string="Back to plugins managment page"}</a>
129 <p>{_T string="Steps:"}</p>
131 <li{if $step == 1} class="current"{/if}>{_T string="Installation mode"} - </li>
132 <li{if $step == 'i2' || $step == 'u2'} class="current"{/if}>{_T string="Access permissions to database"} - </li>
133 {if isset($install_type) and $install_type == 'upgrade'}
134 <li{if $step == 'u3'} class="current"{/if}>{_T string="Version selection"} - </li>
137 <li{if $step == 'i4' || $step == 'u4'} class="current"{/if}>{if !isset($install_type) or $install_type == 'install'}{_T string="Database installation"}{else}{_T string="Database upgrade"}{/if} - </li>
138 <li{if $step == 'i5' || $step == 'u5'} class="current"{/if}>{_T string="End!"}</li>