Code

updated templates
[gosa.git] / gosa-plugins / goto / admin / systems / goto / SelectDeviceType.tpl
index d25acbf49d72780f3f97c6048e507ddf30e4b566..08a0f03105c75280b41c595b8c01cccdfa14ce63 100644 (file)
@@ -1,16 +1,19 @@
 <br>
 <p class="seperator">
-{t}This is a new system which currently has no system type defined. Please choose a system type for this entry and press the 'continue' button. If this system should be added to a group of system settings, specify the preferred object group below.{/t}
+{t}This system has no system type configured. Please choose a system type for this object and an optional inheritance group. Press the 'continue' button to proceed.{/t}
 <br>
 <br>
 </p>
 <p class="seperator">
 <br>
+{if $dns_cnt == 1}
 <b>{t}Please select a system type and an optional bundle of predefined settings to be inherited.{/t}</b>
+{else}
+<b>{t}Please select a system type and a bundle of predefined settings to be inherited.{/t}</b>
+{/if}
 <br>
 <br>
 </p>
-<br>
 <table summary="" style='width:100%'>
  <tr>
   <td style='width:49%'>
@@ -18,7 +21,8 @@
     <tr>
      <td> 
       {t}System type{/t}&nbsp;
-         <select name="SystemType" title="{t}Choose a system type{/t}" style="width:120px;">
+         <select name="SystemType" title="{t}System type{/t}" style="width:120px;"
+                       onChange="document.mainform.submit();">
        {html_options values=$SystemTypeKeys output=$SystemTypes selected=$SystemType}
       </select>
      </td>
     <tr>
      <td> 
       {t}Choose an object group as template{/t}&nbsp;
-         <select name="ObjectGroup" title="{t}Choose an object group{/t}" style="width:120px;">
-       {html_options values=$ObjectGroupKeys output=$ObjectGroups selected=$ObjectGroup}
+         <select name="ObjectGroup" title="{t}Object group{/t}" style="width:120px;" size=1>
+               {if $dns_cnt == 1}
+               <option value='none'>{t}none{/t}</option>       
+               {/if}
+       {html_options options=$ogroups selected=$ObjectGroup}
       </select>
      </td>
     </tr>
   </td>
  </tr>
 </table>
-<p class="seperator">&nbsp;</p>
+<hr>
 <div style="align: right;" align="right"><p>
-       <input type="submit" name="SystemTypeChoosen" value="{t}Continue{/t}">
-       <input type="submit" name="SystemTypeAborted" value="{t}Cancel{/t}">
+       <button type='submit' name='systemTypeChosen'>{t}Continue{/t}</button>
+
+       <button type='submit' name='SystemTypeAborted'>{msgPool type=cancelButton}</button>
+
 </p></div>