diff --git a/gosa-core/plugins/generic/dashBoard/Register/register.tpl b/gosa-core/plugins/generic/dashBoard/Register/register.tpl
index 76b6f43c3067c6e60daa80bdb2f5167fa94548f3..3d995604202ed8a5a12cb341d609c2b4515fb7e2 100644 (file)
-<h3>{t}GOsa registration{/t}</h3>
+<script type="text/javascript" src="include/pwdStrength.js"></script>
+<h3>{t}GOsa registration{/t}</h3>
{if $step == 0}
{t}Do you want to register GOsa and benefit from the features it brings?{/t}
<p>
- <input type='radio' name='registrationType' value='' id="registrationType_"
- {if $default == ""} checked {/if}><b><LABEL for="registrationType_">{t}I do not want to register{/t}</LABEL></b>
+ <input type='radio' name='registrationType' value='dontWant' id="registrationType_dontWant"
+ {if $default == "dontWant"} checked {/if}>
+ <b><LABEL for="registrationType_dontWant">{t}I do not want to register{/t}</LABEL></b>
<p style='padding-left:20px;'>
<!-- Add a descritive text later -->
</p>
- <input type='radio' name='registrationType' value='annonym' id="registrationType_annonym"
- {if $default == "annonym"} checked {/if}><b><LABEL for="registrationType_annonym">{t}Annonym access{/t}</LABEL></b>
- <p style='padding-left:20px;'>
- <ul>
- <li>{t}Access to the 'Open-Channels' to easily install or remove plugins within the GOsa user interface{/t}</li>
- <li>{t}Use the inbuild bugtracker and keep track of their status on the dash-board.{/t}</li>
- </ul>
- </p>
- <p style='padding-left:20px;'>
- {t}What information will be transmitted to the backend and maybe stored:{/t}
- <ul>
- <li>{t}Information about the installed plugins and their version.{/t}</li>
- <li>{t}The GOsa-UUID (will be generated during the registration) and a password, to authenticate.{/t}</li>
- <li>{t}The bugs you will report and the corresponding trace. You can select what information you want to send in.{/t}</li>
- </ul>
- </p>
-
- <input type='radio' name='registrationType' value='registered' id="registrationType_registered"
- {if $default == "registered"} checked {/if}><b><LABEL for="registrationType_registered">{t}Register{/t}</LABEL></b>
+ <input type='radio' name='registrationType' value='registrate' id="registrationType_registrate"
+ {if $default == "registrate"} checked {/if}><b><LABEL for="registrationType_registrate">{t}Register{/t}</LABEL></b>
<p style='padding-left:20px;'>
{t}Additionally to the 'Annonomous' account you can:{/t}
<ul>
<li>{t}Access to 'Premium-Channels'.{/t}</li>
<li>{t}Watch the status of current plugin updates/patches and the availability of new plugins.{/t}</li>
- <li>{t}Receive newsletter, if wanted.{/t}</li>
+ <li>{t}Recieve newsletter, if wanted.{/t}</li>
<li>{t}View several usefull statistics about your GOsa installation{/t}.</li>
</ul>
</p>
{/if}
-{if $step == 1}
-
+{if $step == 1 && $default == "registrate"}
+ <table>
+ <tr>
+ <td><LABEL for="username">{t}Login{/t}</LABEL></td>
+ <td><input type='text' id='username' name='username' value="{$username}"></td>
+ </tr>
+ <tr>
+ <td><LABEL for="password">{t}Password{/t}</LABEL></td>
+ <td>{factory type='password' name='password' id='password' value={$password}}</td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td><div style="color: red; font-size: small;"><i>{$error}</i></div></td>
+ </tr>
+ </table>
<hr>
<div class="plugin-actions">
- <button name='stepBack'>{msgPool type=backButton}</button>
+ <button name='stepBack'>{msgPool type=backButton}</button>
+ <button name='registerPage1'>{msgPool type=okButton}</button>
</div>
{/if}
-{if $step == 2}
+{if $step == 2 && $default == "registrate"}
+ <h3>{t}Registration complete{/t}</h3>
+ <p>
+ {t}GOsa instance successfully registered{/t}
+ </p>
+ <hr>
+ <div class="plugin-actions">
+ <button name='registerComplete'>{msgPool type=okButton}</button>
+ </div>
+{/if}
+{if $step == 1 && $default == "dontWant"}
+ <h3>{t}Registration complete{/t}</h3>
+ <p>
+ {t}GOsa instance will not be registered{/t}
+ </p>
<hr>
<div class="plugin-actions">
- <button name='stepBack'>{msgPool type=backButton}</button>
+ <button name='stepBack'>{msgPool type=backButton}</button>
+ <button name='registerComplete'>{msgPool type=okButton}</button>
</div>
{/if}