Code

Upps
[gosa.git] / plugins / admin / fai / faiNewBranch.tpl
index 183c6a3e94475e436c91a057157b786feb508b95..111fa80ed5144bcb3d03f43d3bbeb9359dc8e4ab 100755 (executable)
@@ -1,61 +1,54 @@
+{if $iframe == false}
+
 <br>
 <p class="seperator">
-{t}Please enter a name for the branch. Names like 'scripts', 'hooks', 'partitions', 'variables', 'templates', 'fai' and aƶready existing names are not allowed.{/t}
+{t}You are now going to create a branch or locked branch. This action clones the existing release to another release name. Branches can be modified as usual. FAI classes of locked branches cannot be modified, just additional classes are possible. Branch names should be alphanumeric, excluding the reserved names 'scripts', 'hooks', 'partitions', 'variables', 'templates' and 'fai'.{/t}
 <br>
 <br>
 </p>
 <p class="seperator">
 <br>
-<b>{t}Please enter a name for the branch.{/t}</b>
+<b>{t}Please enter a name for the branch{/t}</b> &nbsp;
+<input type="text" id="BranchName" name="BranchName" value="{$BranchName}" style="width:120px;">
 <br>
 <br>
 </p>
-<br>
-<table summary="" style='width:100%'>
- <tr>
-  <td style='width:49%'>
-   <table summary="">
-    <tr>
-     <td> 
-       <h1>{t}Enter FAI branch name.{/t}</h1>
-     </td>
-   </tr>
-   <tr>
-     <td>
-      {t}Branch name{/t}&nbsp;<input type="text"        name="BranchName" value="{$BranchName}" style="width:120px;">
-     </td>
-    </tr>
-   </table>
-   <br>
-   <br>
-  </td>
- </tr>
-</table>
-<p class="seperator">&nbsp;</p>
 
 <div align="right">
        <p>
-               <input type="submit" value="{t}Use{/t}"         name="UseBranchName">           
+               <input type="submit" value="{t}Apply{/t}"       name="UseBranchName">           
                <input type="submit" value="{t}Cancel{/t}"      name="CancelBranchName">                
        </p>
 </div>
 
-
-
-
-
-
-
-
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
        <!--
-       document.mainform.UseTextInputName.select();
-       document.mainform.UseTextInputName.focus();
+       document.mainform.BranchName.select();
+       document.mainform.BranchName.focus();
        -->
 </script>
+{else}
 
-
-
-
-
+<h2>{t}Processing the requested operation{/t}</h2>
+{t}As soon as the copy operation has finished, you can scroll down to end of the page and press the 'Continue' button to continue with the fai management dialog.{/t}
+<br>
+<br>
+<div style="margin:3px;background-color:white; border:1px solid #A0A0A0">
+<iframe src="?plug={$plugID}&PerformBranch=1" width="100%" name="status" style="height:450px;background-color:#FFFFFF;">
+
+       <p>{t}Your browser doesn't support iframes, please use this link to perform the requested operation.{/t}
+               <br>
+               <a href='?plug={$plugID}&PerformBranch=1' target="_blank" title="{t}Perform requested operation.{/t}"><b>{t}Initiate operation{/t}</b></a>
+       </p>    
+</iframe>
+</div>
+<!--
+<p class="seperator">&nbsp;</p>
+<div style="text-align: right;width:99%;">
+       <p>
+               <input type="submit" name="CancelBranchName" value="{t}Back{/t}">
+       </p>
+</div>
+-->
+{/if}