Code

Udpated JS focus,
[gosa.git] / plugins / admin / fai / faiNewBranch.tpl
index ac360601a66e1c3d7a1df2b305cfc90c76966f03..358f6d0c1b8b743870175eff0309abe1cb26ae7f 100755 (executable)
@@ -1,61 +1,55 @@
+{if $iframe == false}
+
 <br>
 <p class="seperator">
-{t}Please enter a name for the branch/freeze. Names like 'scripts', 'hooks', 'partitions', 'variables', 'templates', 'fai' and already 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>
+{t}Branches are created as subreleases of the currently selected branch. Creating a new branch named 1.0.2 in SARGE for example, will result in a new release called SARGE/1.0.2.{/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();
+       focus_field('BranchName');
        -->
 </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}&amp;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}&amp;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}