diff --git a/gosa-plugins/goto/admin/mimetypes/generic.tpl b/gosa-plugins/goto/admin/mimetypes/generic.tpl
index c8450d509fa99049a0f8fc86a10dd6a18ea608b3..8c088cdcba04048d77e0b6c90b5430c708e57ab1 100644 (file)
-<table style="width:100%">
- <tr>
- <td colspan="2">
- <h2><img src='plugins/goto/images/list_mime.png' class='center' alt='[M]'> {t}Generic{/t}</h2>
- </td>
- </tr>
- <tr>
- <td style='width:50%; vertical-align:top;' >
- <table>
- <tr>
- <td>
- {t}Mime type{/t}{$must}
- </td>
- <td>
-{render acl=$cnACL}
- <input type="text" name='cn' value="{$cn}" title='{t}Please enter a name for the mime type here{/t}'>
-{/render}
- </td>
- </tr>
- <tr>
- <td>
- {t}Mime group{/t}
- </td>
- <td>
-{render acl=$gotoMimeGroupACL}
- <select name='gotoMimeGroup' title='{t}Categorize this mime type{/t}'>
- {html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
- </select>
-{/render}
- </td>
- </tr>
- <tr>
- <td>
- {t}Description{/t}
- </td>
- <td>
-{render acl=$descriptionACL}
- <input type="text" name='description' value="{$description}" title='{t}Please specify a description{/t}'>
-{/render}
- </td>
- </tr>
-{if !$isReleaseMimeType}
- <tr>
- <td><LABEL for="base">{t}Base{/t}{$must}</LABEL></td>
- <td>
- {render acl=$baseACL}
- <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}">
- {html_options options=$bases selected=$base_select}
- </select>
- {/render}
- {if !$isReleaseMimeType}
- {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
- <input type="image" name="chooseBase" src="images/lists/folder.png" class="center" title="{t}Select a base{/t}">
- {/render}
- {/if}
- </td>
- </tr>
-
-{/if}
- </table>
-
- </td>
- <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
- <table summary="">
- <tr>
- <td>
- <LABEL for="picture_file">{t}Icon{/t}</LABEL><br>
-{if $IconReadable}
- <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime icon{/t}'
- style="width:48px; height:48; background-color:white; vertical-align:bottom;">
-{else}
- <img src="images/empty.png" border=1 alt='{t}Mime icon{/t}'
- style="width:48px; height:48; background-color:white; vertical-align:bottom;">
-{/if}
- </td>
- <td style="vertical-align:top">
- <br>
- <input type="hidden" name="MAX_FILE_SIZE" value="100000">
-{render acl=$gotoMimeIconACL}
- <input name="picture_file" type="file" size="20" maxlength="255"
- accept="image/*.png" id="picture_file">
-{/render}
-{render acl=$gotoMimeIconACL}
- <input type="submit" name="update_icon" value="{t}Update{/t}"
- title="{t}Update mime type icon{/t}">
-{/render}
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <p class='seperator'> </p>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <h2><img src='plugins/goto/images/mime_leftclick.png' class='center' alt='{t}Left click{/t}'> {t}Left click{/t}</h2>
- </td>
- </tr>
- <tr>
- <td style='width:50%; vertical-align:top;' >
- {t}File patterns{/t}{$must}
-{render acl=$gotoMimeFilePatternACL}
- {$gotoMimeFilePatterns}
-{/render}
-{render acl=$gotoMimeFilePatternACL}
- <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
-{/render}
-{render acl=$gotoMimeFilePatternACL}
- <input type='submit' name='AddNewFilePattern' value='{msgPool type=addButton}' title='{t}Add a new file pattern{/t}'>
-{/render}
- </td>
- <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
- {t}Applications{/t}
-{render acl=$gotoMimeApplicationACL}
- {$gotoMimeApplications}
-{/render}
+<h3>{t}Generic{/t}</h3>
-{render acl=$gotoMimeApplicationACL}
- <select name="NewApplicationSelect">
- <option value="">-</option>
- {html_options options=$ApplicationList}
- </select>
-{/render}
-{render acl=$gotoMimeApplicationACL}
- <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
-{/render}
-{render acl=$gotoMimeApplicationACL}
- <input type='submit' name='AddNewApplication' value='{msgPool type=addButton}' title='{t}Add application{/t}'>
-{/render}
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <p class='seperator'> </p>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <h2><img src='plugins/goto/images/mime_embedding.png' class='center' alt='{t}Embedding{/t}'> {t}Embedding{/t}</h2>
- </td>
- </tr>
- <tr>
- <td style='width:50%; vertical-align:top;' >
-
- <table>
- <tr>
- <td style='vertical-align:top; '>
-{render acl=$gotoMimeLeftClickActionACL}
- <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
- {if $gotoMimeLeftClickAction_I} checked {/if}>
-{/render}
- {t}Show file in embedded viewer{/t}
- <br>
+<table style="width:100%" summary="{t}Mime-type generic{/t}">
+ <tr>
+ <td style='width:50%; '>
+
+ <table summary="{t}Mime-type settings{/t}">
+ <tr>
+ <td>{t}Mime type{/t}{$must}</td>
+ <td>
+ {render acl=$cnACL}
+ <input type="text" name='cn' value="{$cn}" title='{t}Please enter a name for the mime-type here{/t}'>
+ {/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Mime-group{/t}</td>
+ <td>
+ {render acl=$gotoMimeGroupACL}
+ <select name='gotoMimeGroup' title='{t}Categorize this mime type{/t}' size=1>
+ {html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
+ </select>
+ {/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Description{/t}</td>
+ <td>
+ {render acl=$descriptionACL}
+ <input type="text" name='description' value="{$description}" title='{t}Please specify a description{/t}'>
+ {/render}
+ </td>
+ </tr>
+
+ {if !$isReleaseMimeType}
+ <tr>
+ <td><br><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
+ <td>
+ <br>
+{render acl=$baseACL}
+ {$base}
+{/render}
+ </td>
+ </tr>
+ {/if}
+ </table>
-{render acl=$gotoMimeLeftClickActionACL}
- <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
- {if $gotoMimeLeftClickAction_E} checked {/if}>
-{/render}
- {t}Show file in external viewer{/t}
- <br>
+ </td>
+ <td class='left-border'>
-{render acl=$gotoMimeLeftClickActionACL}
- <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
- {if $gotoMimeLeftClickAction_Q} checked {/if}>
-{/render}
- {t}Ask whether to save to local disk{/t}
- </td>
- </tr>
- </table>
-
- </td>
- <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
- {t}Applications{/t}
-{render acl=$gotoMimeEmbeddedApplicationACL}
- {$gotoMimeEmbeddedApplications}
-{/render}
-{render acl=$gotoMimeEmbeddedApplicationACL}
- <select name="NewEmbeddedApplicationSelect">
- <option value="">-</option>
- {html_options options=$ApplicationList}
- </select>
-{/render}
-{render acl=$gotoMimeEmbeddedApplicationACL}
- <input type='text' name='NewEmbeddedApplication' value=''
- title='{t}Enter an application name here{/t}'>
-{/render}
-{render acl=$gotoMimeEmbeddedApplicationACL}
- <input type='submit' name='AddNewEmbeddedApplication' value='{msgPool type=addButton}'
- title='{t}Add application{/t}'>
-{/render}
- </td>
- </tr>
+ <table summary="{t}Picture settings{/t}">
+ <tr>
+ <td>
+ <LABEL for="picture_file">{t}Icon{/t}</LABEL>
+ <br>
+ {if $IconReadable}
+ <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime-icon{/t}'
+ style="width:48px; height:48; background-color:white; vertical-align:bottom;">
+ {else}
+ {image path="images/empty.png"}
+ {/if}
+ </td>
+ <td>
+ <br>
+ <input type="hidden" name="MAX_FILE_SIZE" value="1000000">
+ {render acl=$gotoMimeIconACL}
+ <input name="picture_file" type="file" size="20" maxlength="255"
+ accept="image/*.png" id="picture_file">
+ {/render}
+ {render acl=$gotoMimeIconACL}
+ <button type='submit' name='update_icon'title="{t}Update mime type icon{/t}">{t}Update{/t}</button>
+ {/render}
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+
+ <hr>
+
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <h3>{t}Left click{/t}</h3>
+ </td>
+ </tr>
+ <tr>
+ <td style='width:50%; '>
+
+ {t}File patterns{/t}{$must}
+
+ {render acl=$gotoMimeFilePatternACL}
+ {$gotoMimeFilePatterns}
+ {/render}
+ {render acl=$gotoMimeFilePatternACL}
+ <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
+ {/render}
+ {render acl=$gotoMimeFilePatternACL}
+ <button type='submit' name='AddNewFilePattern' title="{t}Add a new file pattern{/t}">
+ {msgPool type=addButton}</button>
+ {/render}
+
+ </td>
+ <td class='left-border'>
+
+ {t}Applications{/t}
+
+ {render acl=$gotoMimeApplicationACL}
+ {$gotoMimeApplications}
+ {/render}
+ {render acl=$gotoMimeApplicationACL}
+ <select name="NewApplicationSelect" size=1><option value="">-</option>
+ {html_options options=$ApplicationList}
+ </select>
+ {/render}
+ {render acl=$gotoMimeApplicationACL}
+ <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
+ {/render}
+ {render acl=$gotoMimeApplicationACL}
+ <button type='submit' name='AddNewApplication' title="{t}Add application{/t}">
+ {msgPool type=addButton}</button>
+ {/render}
+
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+
+ <hr>
+
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+
+ <h3>{t}Embedding{/t}</h3>
+
+ </td>
+ </tr>
+ <tr>
+ <td style='width:50%; '>
+
+ {render acl=$gotoMimeLeftClickActionACL}
+ <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
+ {if $gotoMimeLeftClickAction_I} checked {/if}>
+ {/render}{t}Show file in embedded viewer{/t}
+ <br>
+ {render acl=$gotoMimeLeftClickActionACL}
+ <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
+ {if $gotoMimeLeftClickAction_E} checked {/if}>
+ {/render}{t}Show file in external viewer{/t}
+ <br>
+ {render acl=$gotoMimeLeftClickActionACL}
+ <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
+ {if $gotoMimeLeftClickAction_Q} checked {/if}>
+ {/render}{t}Ask whether to save to local disk{/t}
+
+ </td>
+ <td class='left-border'>
+
+ {t}Applications{/t}
+ {render acl=$gotoMimeEmbeddedApplicationACL}
+ {$gotoMimeEmbeddedApplications}
+ {/render}
+ {render acl=$gotoMimeEmbeddedApplicationACL}
+ <select name="NewEmbeddedApplicationSelect" size=1><option value="">-</option>
+ {html_options options=$ApplicationList}
+ </select>
+ {/render}
+ {render acl=$gotoMimeEmbeddedApplicationACL}
+ <input type='text' name='NewEmbeddedApplication' value='' title='{t}Enter an application name here{/t}'>
+ {/render}
+ {render acl=$gotoMimeEmbeddedApplicationACL}
+ <button type='submit' name='AddNewEmbeddedApplication'
+ title='{t}Add application{/t}'>{msgPool type=addButton}</button>
+ {/render}
+
+ </td>
+ </tr>
</table>
-<input type="hidden" name="MimeGeneric" value="1">
-<!-- Place cursor -->
-<script language="JavaScript" type="text/javascript">
- <!-- // First input field on page
- focus_field('cn');
- -->
-</script>
+<input type="hidden" name="MimeGeneric" value="1"><!-- Place cursor -->
+<script language="JavaScript" type="text/javascript"><!-- // First input field on page focus_field('cn'); --></script>