Code

Updated registriation process.
[gosa.git] / gosa-core / plugins / generic / dashBoard / Register / register.tpl
index 5d67160fe32db87ebf64b64ff2cd6ced6ddbbdd7..e1ee7723cc77ae0b6bd6adb1a168fbcaa0d67fb0 100644 (file)
 <h3>{t}GOsa registration{/t}</h3>
 
-{t}Do you want to register GOsa and benefit from the features it brings?{/t}
 
-<p>
- <input type='radio' name='registrationType' value=''
-        {if $default == ""} checked {/if}><b>{t}I do not want to register{/t}</b>
-    <p style='padding-left:20px;'>
-        <!-- Add a descritive text later -->
-    </p>
+{if $step == 0}
 
-    <input type='radio' name='registrationType' value='annonym'
-        {if $default == "annonym"} checked {/if}><b>{t}Annonym access{/t}</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>
+    {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>
+        <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'
-        {if $default == "registered"} checked {/if}><b>{t}Register{/t}</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}View several usefull statistics about your GOsa installation{/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}All personal information filled in the registration form.{/t}</li>
-        <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>
-        <li>{t}When the statistics extension is used. GOsa will transmit information about plugins, their usage and the amount of objects present in your ldap database. No sensitive data is transmitted here, just the object type, the action performed, cpu usage, memory usage, elapsed time...{/t}</li>
-    </ul>
+        <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>
+        <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}View several usefull statistics about your GOsa installation{/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}All personal information filled in the registration form.{/t}</li>
+            <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>
+            <li>{t}When the statistics extension is used. GOsa will transmit information about plugins, their usage and the amount of objects present in your ldap database. No sensitive data is transmitted here, just the object type, the action performed, cpu usage, memory usage, elapsed time...{/t}</li>
+        </ul>
+        </p>
     </p>
-</p>
+    <hr>
+    <div class="plugin-actions">
+        <button name='startRegistration'>{msgPool type=okButton}</button>
+    </div>
+
+{/if}
+
+{if $step == 1}
+
+    {if $default == ""}
+        <b>{t}Selected registration type:{/t} {$default}</b>
+    {elseif $default == "annonym"}
+        <b>{t}Selected registration type:{/t} {$default}</b>
+    {elseif $default == "registered"}
+        
+        <p>
+            {t}Please fill in the fields below.{/t}
+            <br>
+            <i>({$must} {t}Required fields{/t})</i>
+        </p>
+
+
+        <table style='width:100%;'>
+            <tr> 
+                <td style='width:180px;'><LABEL for="mailAddress">{t}Mail-address{/t}{$must}</LABEL></td>
+                <td>
+                    <input type='text' name="mailAddress" value="{$mailAddress}" id="mailAddress">
+                </td>
+            </tr>
+            <tr> 
+                <td style='width:180px;'><LABEL for="surname">{t}Surname{/t}{$must}</LABEL></td>
+                <td>
+                    <input type='text' name="surname" value="{$surname}" id="surname">
+                </td>
+            </tr>
+            <tr> 
+                <td style='width:180px;'><LABEL for="givenName">{t}Given name{/t}{$must}</LABEL></td>
+                <td>
+                    <input type='text' name="givenName" value="{$givenName}" id="givenName">
+                </td>
+            </tr>
+            <tr> 
+                <td style='width:180px;'><LABEL for="company">{t}Company{/t}{$must}</LABEL></td>
+                <td>
+                    <input type='text' name="company" value="{$company}" id="company">
+                </td>
+            </tr>
+            <tr> 
+                <td style='width:180px;'><LABEL for="clients">{t}Amount of managed clients{/t}{$must}</LABEL></td>
+                <td>
+                    <input type='text' name="clients" value="{$clients}" id="clients">
+                </td>
+            </tr>
+            <tr> 
+                <td style='width:180px;'><LABEL for="knownFrom">{t}Where do you know GOsa from?{/t}{$must}</LABEL></td>
+                <td>
+                    <input type='text' name="knownFrom" value="{$knownFrom}" id="knownFrom">
+                </td>
+            </tr>
+        </table>
+       
+
+    {/if}
+
+    <hr>
+    <div class="plugin-actions">
+        <button name='stepBack'>{msgPool type=backButton}</button>
+        <button name='registerNow'>{msgPool type=okButton}</button>
+    </div>
+{/if}
+
+{if $step == 2}
+
+    <hr>
+    <div class="plugin-actions">
+        <button name='stepBack'>{msgPool type=backButton}</button>
+    </div>
+{/if}
+
+{if $step == 200}
+   <h3>VERIFY TEXTS!!!</h3> You have receifed a mail, bafasel, please click link and so on.
 
+{/if}