Code

Updated buttons
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 14:38:57 +0000 (14:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Mar 2010 14:38:57 +0000 (14:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16662 594d385d-05f5-0310-b6e9-bd551577e9d8

23 files changed:
gosa-plugins/fai/admin/fai/askClassName.tpl
gosa-plugins/fai/admin/fai/faiDiskEntry.tpl
gosa-plugins/fai/admin/fai/faiGroupHandle.tpl
gosa-plugins/fai/admin/fai/faiHook.tpl
gosa-plugins/fai/admin/fai/faiHookEntry.tpl
gosa-plugins/fai/admin/fai/faiNewBranch.tpl
gosa-plugins/fai/admin/fai/faiPackage.tpl
gosa-plugins/fai/admin/fai/faiPackageConfiguration.tpl
gosa-plugins/fai/admin/fai/faiPartition.tpl
gosa-plugins/fai/admin/fai/faiPartitionTable.tpl
gosa-plugins/fai/admin/fai/faiPartitionTableEntry.tpl
gosa-plugins/fai/admin/fai/faiProfile.tpl
gosa-plugins/fai/admin/fai/faiProfileEntry.tpl
gosa-plugins/fai/admin/fai/faiScript.tpl
gosa-plugins/fai/admin/fai/faiScriptEntry.tpl
gosa-plugins/fai/admin/fai/faiTemplate.tpl
gosa-plugins/fai/admin/fai/faiTemplateEdit.tpl
gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl
gosa-plugins/fai/admin/fai/faiVariable.tpl
gosa-plugins/fai/admin/fai/faiVariableEntry.tpl
gosa-plugins/fai/admin/fai/packageSelect/selectPackage-list.tpl
gosa-plugins/fai/admin/fai/remove.tpl
gosa-plugins/fai/admin/fai/remove_branch.tpl

index 2a55e5b8d0754278cc44817f8666cfd063d41ac2..80e9b6e1ae80e0d3486463488c68474cc6d13adc 100644 (file)
 <hr>
 
 <p style="text-align:right">
- <input type="submit" name="edit_continue" value="{t}Continue{/t}">&nbsp;
- <input type="submit" name="edit_cancel" value="{msgPool type='cancelButton'}">
+ <button type='submit' name='edit_continue'>{t}Continue{/t}</button>&nbsp;
+
+ <button type='submit' name='edit_cancel'>{msgPool type='cancelButton'}</button>
+
 </p>
 
 <!-- Place cursor -->
index ce4583539fb2a0bc7e8c3eeb4f60e0e53db49a97..329422153da12da09210aaed3ea996775a5c9b46 100644 (file)
       <select name='lvmPartitionAdd' style='width:240px;'>
         {html_options options=$physicalPartitionList}
       </select>
-      <input type="submit" name='addLvmPartition' value="{msgPool type="addButton"}">&nbsp;
-      <input type="submit" name='delLvmPartition' value="{msgPool type="delButton"}">&nbsp;
+      <button type='submit' name='addLvmPartition'>{msgPool type="addButton"}</button>&nbsp;
+
+      <button type='submit' name='delLvmPartition'>{msgPool type="delButton"}</button>&nbsp;
+
     </td>
   </tr>
 </table>
 <br>
 {if !$freeze}
        {if $sub_object_is_createable}
-               <input type="submit" name="AddPartition" value="{t}Add partition{/t}">
+               <button type='submit' name='AddPartition'>{t}Add partition{/t}</button>
+
        {else}
-               <input type="submit" name="restricted" value="{t}Add partition{/t}" disabled>
+               <button type='submit' name='restricted'>{t}Add partition{/t}</button>
+
        {/if}
 {/if}
 <br>   
 <br>
 <div style="align:right;" align="right">
 {if !$freeze}
-       <input type="submit" name="SaveDisk" value="{msgPool type=saveButton}">
+       <button type='submit' name='SaveDisk'>{msgPool type=saveButton}</button>
+
 {/if}
-<input type="submit" name="CancelDisk" value="{msgPool type=cancelButton}" >
+<button type='submit' name='CancelDisk'>{msgPool type=cancelButton}</button>
+
 </div>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
index 80a16f07536da0176c8d1a1142d2d7173e9e8ef7..e8a7081c0ff7ccf508db2ed8b871c132a6093950 100644 (file)
@@ -77,7 +77,9 @@
 <input type='hidden' value='faiGroupHandle' name='faiGroupHandle'>
 <p class='seperator'></div>
 <div style='text-align:right; padding:5px'>
-       <input type='submit' value='{msgPool type=applyButton}' name='faiGroupHandle_apply'>
+       <button type='submit' name='faiGroupHandle_apply'>{msgPool type=applyButton}</button>
+
        &nbsp;
-       <input type='submit' value='{msgPool type=cancelButton}' name='faiGroupHandle_cancel'>
+       <button type='submit' name='faiGroupHandle_cancel'>{msgPool type=cancelButton}</button>
+
 </div>
index 4436a6694b3b08e247009cca48d4d398535305cc..35bce60c087fdc729d32a803cd3bc895859e95b1 100644 (file)
                                        <td>
                                                {$Entry_divlist}
 {if $sub_object_is_addable}
-                                               <input type="submit" name="AddSubObject"     value="{msgPool type=addButton}"   title="{msgPool type=addButton}">
+                                               <button type='submit' name='AddSubObject' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {else}
-                                               <input type="submit" name="AddSubObject"     value="{msgPool type=addButton}"   title="{msgPool type=addButton}" disabled>
+                                               <button type='submit' name='AddSubObject' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {/if}
                                        </td>
                                </tr>
index e0ac912eac85a88155bd16c621910131c2b2263f..00e2562fe5e6ca454b42bfb6dcc0ca4d1839d113 100644 (file)
@@ -72,7 +72,8 @@
     <input type="file" name="ImportFile">&nbsp;
 {/render}
 {render acl=$FAIscriptACL}
-    <input type="submit" name="ImportUpload" value="{t}Import script{/t}" >
+    <button type='submit' name='ImportUpload'>{t}Import script{/t}</button>
+
 {/render}
 {render acl=$FAIscriptACL}
        {$DownMe}
 <br>
 <div style="align:right;" align="right">
 {if !$freeze}
-       <input type="submit" value="{msgPool type=applyButton}"         name="SaveSubObject">&nbsp;
+       <button type='submit' name='SaveSubObject'>{msgPool type=applyButton}</button>&nbsp;
+
 {/if}
-       <input type="submit" value="{msgPool type=cancelButton}"        name="CancelSubObject">
+       <button type='submit' name='CancelSubObject'>{msgPool type=cancelButton}</button>
+
 </div>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
index 24fcc26910d853054dff36512e508e8e638fe17d..d8e46752146ff9355ada24a47e20c44b0b6defb4 100644 (file)
 
 <div align="right">
        <p>
-               <input type="submit" value="{msgPool type=applyButton}"         name="UseBranchName">           
-               <input type="submit" value="{msgPool type=cancelButton}"        name="CancelBranchName">                
+               <button type='submit' name='UseBranchName'>{msgPool type=applyButton}</button>          
+
+               <button type='submit' name='CancelBranchName'>{msgPool type=cancelButton}</button>              
+
        </p>
 </div>
 
index 5b32ddd1dc419b3d1078aae527ade0ffc9cdf8b8..5d58c5895f48091fb7ff2b5d53f3497ed5f594ac 100644 (file)
        <tr>
                <td>
                        <input type="text" size="25" name="addPpkgsText" value="" />
-                       <input type="submit" name="AddManualpkg" value="{msgPool type=addButton}" />
+                       <button type='submit' name='AddManualpkg'>{msgPool type=addButton}</button>
+
                        &nbsp;
-                       <input type="submit" name="Addpkg" value="{t}Add from list{/t}" />
+                       <button type='submit' name='Addpkg'>{t}Add from list{/t}</button>
+
                </td>
        </tr>
 {/render}
index 298d502ccf807e11f1a625aaed0bb36cce54778a..4fee0bfeca75ff78709aa01c4ae9e54818addb71 100644 (file)
@@ -3,7 +3,9 @@
 <hr>
 <br>
 <div align="right" style="align:right;">
-    <input name="SaveObjectConfig" value="{msgPool type=applyButton}" type="submit">
-    <input name="CancelObjectConfig" value="{msgPool type=cancelButton}" type="submit">
+    <button type='submit' name='SaveObjectConfig'>{msgPool type=applyButton}</button>
+
+    <button type='submit' name='CancelObjectConfig'>{msgPool type=cancelButton}</button>
+
 </div>
 
index e3f4d6dc6c88b0b33cc53a4618d582465aeac906..c96cd2705ec640ab06a739a49e02ee0b6b516990 100644 (file)
       <select name='physicalPartitionAdd' style='width:240px;'>
         {html_options options=$physicalPartitionList}
       </select>
-      <input type="submit" name='addPhysicalPartition' value="{msgPool type="addButton"}">&nbsp; 
-      <input type="submit" name='delPhysicalPartition' value="{msgPool type="delButton"}">&nbsp; 
-      <input type="submit" name='toggleMissing' value="{t}Toggle missing{/t}">&nbsp; 
-      <input type="submit" name='toggleSpare' value="{t}Toggle spare{/t}">&nbsp; 
+      <button type='submit' name='addPhysicalPartition'>{msgPool type=addButton}</button>&nbsp; 
+
+      <button type='submit' name='delPhysicalPartition'>{msgPool type=delButton}</button>&nbsp; 
+
+      <button type='submit' name='toggleMissing'>{t}Toggle missing{/t}</button>&nbsp; 
+
+      <button type='submit' name='toggleSpare'>{t}Toggle spare{/t}</button>&nbsp; 
+
     </td>
   </tr>
   <tr>
 <hr>
 <div style='text-align:right; width:100%; padding:5px'>
   {if !$freeze}
-  <input type='submit' name='PartitionSave' value='{msgPool type=okButton}'>
+  <button type='submit' name='PartitionSave'>{msgPool type=okButton}</button>
+
   &nbsp;
   {/if}
-  <input type='submit' name='PartitionCancel' value='{msgPool type=cancelButton}'>
+  <button type='submit' name='PartitionCancel'>{msgPool type=cancelButton}</button>
+
 </div>
index 3ddfe7c0ee5ff4bf9278031d35fa450d101f4f0d..8184ae93efef7d61b42d836c2450f002a682dc91 100644 (file)
                                </h3>
                                 {$Entry_divlist}
 {if $sub_object_is_addable}
-                                <input type="submit" name="AddDisk" value="{t}Add disk{/t}" title="{t}Add disk{/t}">
-                                <input type="submit" id="AddRaid" name="AddRaid" value="{t}Add RAID{/t}" title="{t}Add RAID{/t}" {$storage_mode} {$addraid}>
-                                <input type="submit" id="AddVolgroup" name="AddVolgroup" value="{t}Add volume group{/t}" title="{t}Add volume group{/t}" {$storage_mode}>
+                                <button type='submit' name='AddDisk' title="{t}Add disk{/t}">{t}Add disk{/t}</button>
+
+                                <button type='submit' name='AddRaid' id="AddRaid" title="{t}Add RAID{/t}">{t}Add RAID{/t}</button>
+
+                                <button type='submit' name='AddVolgroup' id="AddVolgroup" title="{t}Add volume group{/t}">{t}Add volume group{/t}</button>
+
 {else}
-                                <input type="submit" name="AddDisk" value="{t}Add disk{/t}" title="{t}Add disk{/t}" disabled>
-                                <input type="submit" name="AddRaid" value="{t}Add RAID{/t}" title="{t}Add RAID{/t}" disabled>
-                                <input type="submit" name="AddVolgroup" value="{t}Add volume group{/t}" title="{t}Add volume group{/t}" disabled>
+                                <button type='submit' name='AddDisk' title="{t}Add disk{/t}">{t}Add disk{/t}</button>
+
+                                <button type='submit' name='AddRaid' title="{t}Add RAID{/t}">{t}Add RAID{/t}</button>
+
+                                <button type='submit' name='AddVolgroup' title="{t}Add volume group{/t}">{t}Add volume group{/t}</button>
+
 {/if}
 
                </td>
index 4ae08f6ad995ec7e8c75b3aebe4ea0673ca902a1..37fd5844c6aba1dfcd9ffd1ea8b732df3016e4c0 100644 (file)
 <br>
 {if !$freeze}
        {if $sub_object_is_createable}
-               <input type="submit" name="AddPartition" value="{t}Add partition{/t}">
+               <button type='submit' name='AddPartition'>{t}Add partition{/t}</button>
+
        {else}
-               <input type="submit" name="restricted" value="{t}Add partition{/t}" disabled>
+               <button type='submit' name='restricted'>{t}Add partition{/t}</button>
+
        {/if}
 {/if}
 <br>   
 <br>
 <div style="align:right;" align="right">
 {if !$freeze}
-       <input type="submit" name="SaveDisk" value="{msgPool type=saveButton}">
+       <button type='submit' name='SaveDisk'>{msgPool type=saveButton}</button>
+
 {/if}
-<input type="submit" name="CancelDisk" value="{msgPool type=cancelButton}" >
+<button type='submit' name='CancelDisk'>{msgPool type=cancelButton}</button>
+
 </div>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
index fdc28283d71a347ab33b47262f0947c809ceae9f..ee78927eb8d0278bb8dd56da4778fb0e2ba59ca2 100644 (file)
@@ -40,7 +40,8 @@
                                                {$divlist}
                                                <br>
 {render acl=$FAIclassACL}
-                                               <input type="submit" name="AddClass" value="{msgPool type=addButton}">
+                                               <button type='submit' name='AddClass'>{msgPool type=addButton}</button>
+
 {/render}
                                                <input type="hidden" name="edit_helper">
                                        </td>
index 8dc2d1fd9730a762477fa17b8961632d2ed8fe00..419de00f08249f386c27606dc3b43b467adab77e 100644 (file)
@@ -67,7 +67,9 @@
 </table>
 
 <div align="right" style="align:right;">
-       <input name="SaveSubObject" value="{msgPool type=applyButton}" type="submit">
-       <input name="CancelSubObject" value="{msgPool type=cancelButton}" type="submit">
+       <button type='submit' name='SaveSubObject'>{msgPool type=applyButton}</button>
+
+       <button type='submit' name='CancelSubObject'>{msgPool type=cancelButton}</button>
+
 </div>
 <!-- Place cursor -->
index 0b27d6722f8a1d35e16d93164de8c7eb6f3f69b6..6c33a59833893bb47c3dfaed72c905813f51167e 100644 (file)
                                        <td>
                                                {$Entry_divlist}
 {if $sub_object_is_addable}
-                                               <input type="submit" name="AddSubObject"     value="{msgPool type=addButton}"   title="{msgPool type=addButton}" >
+                                               <button type='submit' name='AddSubObject' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {else}
-                                               <input type="submit" name="Dummy2"     value="{msgPool type=addButton}" title="{msgPool type=addButton}" disabled>
+                                               <button type='submit' name='Dummy2' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {/if}
                                        </td>
                                </tr>
index 3d497e495daf74a4bda80e136019f1da713e70e8..c586ca6bd3c9be9adb20f1301ed4e498a008785e 100644 (file)
@@ -72,7 +72,8 @@
        <input type="file" name="ImportFile">&nbsp;
 {/render}
 {render acl=$FAIscriptACL}
-       <input type="submit" name="ImportUpload" value="{t}Import script{/t}">
+       <button type='submit' name='ImportUpload'>{t}Import script{/t}</button>
+
 {/render}
 {render acl=$FAIscriptACL}
        {$DownMe}
 <br>
 <div style="align:right;" align="right">
 {if !$freeze}
-       <input type="submit" value="{msgPool type=applyButton}"         name="SaveSubObject">&nbsp;
+       <button type='submit' name='SaveSubObject'>{msgPool type=applyButton}</button>&nbsp;
+
 {/if}
-       <input type="submit" value="{msgPool type=cancelButton}"        name="CancelSubObject">
+       <button type='submit' name='CancelSubObject'>{msgPool type=cancelButton}</button>
+
 </div>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
index 6c46c42ad1bd489130fea9a95e651a4818b34645..01ee36ed040f9267034461398220bc686336d914 100644 (file)
                                </h3>
                        {$Entry_divlist}
 {if $sub_object_is_addable}
-                               <input type="submit" name="AddSubObject"     value="{msgPool type=addButton}"           title="{msgPool type=addButton}">
+                               <button type='submit' name='AddSubObject' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {else}
-                               <input type="submit" name="AddSubObject"     value="{msgPool type=addButton}"           title="{msgPool type=addButton}" disabled>
+                               <button type='submit' name='AddSubObject' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {/if}
                </td>
        </tr>
index d9875177889665856325b3bee839a454079d1b89..1eb15ba168e61438f81bf2475ad1c665d9ffa442 100644 (file)
@@ -6,7 +6,8 @@
 
 <p class='seperator'>
   <div style='text-align:right;'>
-    <input type='submit' name='templateEditCancel' value='{msgPool type=cancelButton'}'>
+    <button type='submit' name='templateEditCancel'>{msgPool type=cancelButton}</button>
+
   </div>
 </p>
 
@@ -14,7 +15,8 @@
 
 {if $write_protect}
 {t}This FAI template is write protected. Editing may break it!{/t}
-<br><input type='submit' value='{t}Edit anyway{/t}' name='editAnyway'>
+<br><button type='submit' name='editAnyway'>{t}Edit anyway{/t}</button>
+
 {/if}
 
 <textarea {if $write_protect} disabled {/if}
 
 <p class='seperator'>
   <div style='text-align:right;'>
-    <input type='submit' name='templateEditSave' value='{msgPool type=okButton}'>
+    <button type='submit' name='templateEditSave'>{msgPool type=okButton}</button>
+
     &nbsp;
-    <input type='submit' name='templateEditCancel' value='{msgPool type=cancelButton'}'>
+    <button type='submit' name='templateEditCancel'>{msgPool type=cancelButton}</button>
+
   </div>
 </p>
 
index cad8d140430514ed1548919b6d546c2287210aba..a54b9eac04073e7f10cb341db1bf23001aa5a46a 100644 (file)
@@ -92,7 +92,8 @@
                          <input type="file" name="FAItemplateFile" value="" id="FAItemplateFile">
 {/render}
 {render acl=$FAItemplateFileACL}
-                         <input type="submit" value="{t}Upload{/t}" name="TmpFileUpload">
+                         <button type='submit' name='TmpFileUpload'>{t}Upload{/t}</button>
+
 {/render}
                  </td>
     </tr>
 <br>
 <div style="align:right;" align="right">
 {if !$freeze}
-       <input type="submit" value="{msgPool type=applyButton}"         name="SaveSubObject">&nbsp;
+       <button type='submit' name='SaveSubObject'>{msgPool type=applyButton}</button>&nbsp;
+
 {/if}
-       <input type="submit" value="{msgPool type=cancelButton}"        name="CancelSubObject">
+       <button type='submit' name='CancelSubObject'>{msgPool type=cancelButton}</button>
+
 </div>
 </td>
 </tr>
index 08d565d7148f38c2bdc17572fae7548e3ae9a33e..bf62a0ff46eb5149d6f45c08490969f30c588161 100644 (file)
                                                        {html_options options=$SubObjects}
                                                </select><br>
 {if $is_createable}
-                                       <input type="submit" name="AddSubObject"     value="{msgPool type=addButton}"           title="{msgPool type=addButton}">
+                                       <button type='submit' name='AddSubObject' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {else}
-                                       <input disabled type="submit" name="AddSubObject"     value="{msgPool type=addButton}"          title="{msgPool type=addButton}">
+                                       <button type='submit' name='AddSubObject' title="{msgPool type=addButton}">{msgPool type=addButton}</button>
+
 {/if}
-                                       <input type="submit" name="EditSubObject"    value="{t}Edit{/t}"    title="{t}Edit{/t}" >
+                                       <button type='submit' name='EditSubObject' title="{t}Edit{/t}">{t}Edit{/t}</button>
+
 {if $is_removeable}
-                                       <input type="submit" name="DelSubObject"     value="{msgPool type=delButton}"  title="{msgPool type=delButton}">
+                                       <button type='submit' name='DelSubObject' title="{msgPool type=delButton}">{msgPool type=delButton}</button>
+
 {else}
-                                       <input disabled type="submit" name="DelSubObject"     value="{msgPool type=delButton}"  title="{msgPool type=delButton}">
+                                       <button type='submit' name='DelSubObject' title="{msgPool type=delButton}">{msgPool type=delButton}</button>
+
 {/if}
                                        </td>
                                </tr>
index d4b65f3ab8318edf0347c70985fb9f548d3efe2f..90e81391005691bcfda039feb1f68d893694cb59 100644 (file)
 <br>
 <div style="align:right;" align="right">
 {if !$freeze}
-       <input type="submit" value="{msgPool type=applyButton}"         name="SaveSubObject" >&nbsp;
+       <button type='submit' name='SaveSubObject'>{msgPool type=applyButton}</button>&nbsp;
+
 {/if}
-       <input type="submit" value="{msgPool type=cancelButton}"        name="CancelSubObject">
+       <button type='submit' name='CancelSubObject'>{msgPool type=cancelButton}</button>
+
 </div>
 
 <!-- Place cursor -->
index fa469ca9c14531c0aa93454999e62dc19b99eb3c..15dfca474dbb1f9e2d1e32ae3bfec8584797eeaa 100644 (file)
@@ -26,6 +26,8 @@
 
 <hr>
 <div class="plugin-actions">
-  <input type=submit name="packageSelect_save" value="{msgPool type=addButton}">
-  <input type=submit name="packageSelect_cancel" value="{msgPool type=cancelButton}">
+  <button type='submit' name='packageSelect_save'>{msgPool type=addButton}</button>
+
+  <button type='submit' name='packageSelect_cancel'>{msgPool type=cancelButton}</button>
+
 </div>
index 43c7fd8e642e9b71381cddc340d85a2712c0f8d2..a95fc2cf9857a51bd1def0186eb509373fc40e98 100644 (file)
@@ -12,6 +12,8 @@
 
 <hr>
 <div class="plugin-actions">
-  <input type=submit name="delete_confirmed" value="{msgPool type=delButton}">
-  <input type=submit name="delete_cancel" value="{msgPool type=cancelButton}">
+  <button type='submit' name='delete_confirmed'>{msgPool type=delButton}</button>
+
+  <button type='submit' name='delete_cancel'>{msgPool type=cancelButton}</button>
+
 </div>
index 832cb495df90cb059305431d36b9410d99e8cd38..6351762a8d87fe12474d44c995d1229173119d48 100644 (file)
@@ -13,6 +13,8 @@
 
 <hr>
 <div class="plugin-actions">
-  <input type=submit name="delete_branch_confirm" value="{msgPool type=delButton}">
-  <input type=submit name="delete_cancel" value="{msgPool type=cancelButton}">
+  <button type='submit' name='delete_branch_confirm'>{msgPool type=delButton}</button>
+
+  <button type='submit' name='delete_cancel'>{msgPool type=cancelButton}</button>
+
 </div>