diff --git a/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl b/gosa-plugins/fai/admin/fai/faiTemplateEntry.tpl
index b8ee41a61a4d3b3a2da31c8061d8a7ea6c546ce6..7a09041582f18991b3c4f1b85a7d41ab9cb173c2 100644 (file)
<input type="hidden" name="SubObjectFormSubmitted" value="1">
-<h2><img class="middle" alt="" src="images/forward.png" title="{t}Generic{/t}"> {t}Generic{/t}</h2>
+<h3><img class="middle" alt="" src="images/forward.png" title="{t}Generic{/t}"> {t}Generic{/t}</h3>
<table width="100%" summary="">
<tr>
- <td width="50%">
- <table>
+ <td style="vertical-align:top;width:50%;border-right:1px solid #B0B0B0; padding-right:10px;">
+ <table style='width:100%;'>
<tr>
<td>
{t}File name{/t}{$must}
</td>
- <td>
+ <td style='width:100%;'>
{render acl=$cnACL}
- <input value="{$cn}" name="cn" size="45" maxlength="80">
+ <input style='width:100%;' value="{$templateFile}"
+ name="templateFile" maxlength="80">
{/render}
</td>
- </tr>
+ </tr>
<tr>
- <td>
- <LABEL for="templatePath">
- {t}Destination path{/t}{$must}
- </LABEL>
- </td>
- <td>
+ <td>
+ <LABEL for="templatePath">
+ {t}Destination path{/t}{$must}
+ </LABEL>
+ </td>
+ <td>
{render acl=$FAItemplatePathACL}
- <input type="text" name="FAItemplatePath" value="{$templatePath}" id="templatePath" size="45">
+ <input style='width:100%;' type="text" name="templatePath"
+ value="{$templatePath}" id="templatePath" >
{/render}
</td>
- </tr>
+ </tr>
</table>
</td>
- <td>
- {t}Description{/t}
+ <td style='vertical-align:top;'>
+ <table style='width:100%;'>
+ <tr>
+ <td style='vertical-align:top;'>
+ {t}Description{/t}
+ </td>
+ <td style='width:100%;'>
{render acl=$descriptionACL}
- <input size="45" maxlength="80" value="{$description}" name="description">
+ <input style='width:100%;' maxlength="80"
+ value="{$description}" name="description">
{/render}
- </td>
+ </td>
+ </tr>
+ </table>
+ </td>
</tr>
</table>
<table width="100%" summary="">
<tr>
- <td colspan=2><h2><img class="middle" alt="" src="images/fai_template.png" title="{t}Template attributes{/t}"> {t}Template attributes{/t}</h2></td>
+ <td colspan=2>
+ <h3>
+ <img class="center" alt=""
+ src="plugins/fai/images/fai_template.png"
+ title="{t}Template attributes{/t}"> {t}Template attributes{/t}
+ </h3>
+ </td>
</tr>
<tr>
<td style="vertical-align:top;width:50%;border-right:1px solid #B0B0B0">
- <table summary="">
+ <table summary="">
<tr>
- <td style="vertical-align:top">
- <LABEL for="FAItemplateFile">
- {t}File{/t}{$must}
- </LABEL>
- </td>
- <td style="vertical-align:top" class="center">
- {$status}
- {if $bStatus}
- <a href="getbin.php?rand={$rand}">
- <img class="center" alt="{t}Save template{/t}..." title="{t}Save template{/t}..." src="images/save.png" border="0" />
- </a>
- {/if}
- <br>
- <br>
+ <td>
+ {t}File{/t}{$must}: {$status}
+ {if $bStatus}
+ <a href="{$plug}&getFAItemplate">
+ <img class="center" alt="{t}Save template{/t}..."
+ title="{t}Save template{/t}..." src="images/save.png" border="0" />
+ </a>
+ <a href="{$plug}&editFAItemplate">
+ <img class="center" alt="{t}Edit template{/t}..."
+ title="{t}Edit template{/t}..." src="images/lists/edit.png" border="0" />
+ </a>
+ {/if}
+ </td>
+ </tr>
+ {if $bStatus}
+ <tr>
+ <td>
+ {t}Full path{/t}: <i>{$FAItemplatePath}</i>
+ </td>
+ </tr>
+ {/if}
+ <tr>
+ <td style="vertical-align:top" class="center">
{render acl=$FAItemplateFileACL}
- <input type="file" name="FAItemplateFile" value="{$FAItemplateFile}" id="FAItemplateFile">
+ <input type="file" name="FAItemplateFile" value="" id="FAItemplateFile">
{/render}
{render acl=$FAItemplateFileACL}
- <input type="submit" value="{t}Upload{/t}" name="TmpFileUpload">
+ <input type="submit" value="{t}Upload{/t}" name="TmpFileUpload">
{/render}
- <br>
- <br>
- </td>
- </tr><tr>
- <td>
- {t}Full path{/t}
- </td>
- <td>
-{render acl=$FAItemplatePathACL}
- <i>{$FAItemplatePath}</i>
-{/render}
- </td>
- </tr>
- </table>
+ </td>
+ </tr>
+ </table>
</td>
<td>
<table summary="">
<p class="seperator"> </p>
<br>
<div style="align:right;" align="right">
- <input type="submit" value="{t}Apply{/t}" name="SaveSubObject">
- <input type="submit" value="{t}Cancel{/t}" name="CancelSubObject">
+{if !$freeze}
+ <input type="submit" value="{msgPool type=applyButton}" name="SaveSubObject">
+{/if}
+ <input type="submit" value="{msgPool type=cancelButton}" name="CancelSubObject">
</div>
</td>
</tr>