Code

Added focus to cn
[gosa.git] / plugins / admin / mimetypes / generic.tpl
1 <table style="width:100%">
2         <tr>
3                 <td colspan="2">
4                         <h2><img src='images/list_mime.png' class='center'>&nbsp;{t}Generic{/t}</h2>
5                 </td>
6         </tr>
7         <tr>
8                 <td style='width:50%; vertical-align:top;' >
9                                 
10                         <table>
11                                 <tr>
12                                         <td>
13                                                 {t}Mime type{/t}
14                                         </td>
15                                         <td>
16                                                 <input type="text" name='cn' value="{$cn}" {$cnACL} title='{t}Please enter a name for the mime type here{/t}'>
17                                         </td>
18                                 </tr>
19                                 <tr>
20                                         <td>
21                                                 {t}Mime group{/t}
22                                         </td>
23                                         <td>
24                                                 <select name='gotoMimeGroup' {$gotoMimeGroupACL} title='{t}Categorize this mime type{/t}'>
25                                                         {html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
26                                                 </select>
27                                         </td>
28                                 </tr>
29                                 <tr>
30                                         <td>
31                                                 {t}Description{/t}
32                                         </td>
33                                         <td>
34                                                 <input type="text" name='description' value="{$description}" {$descriptionACL} title='{t}Please sepecify a description{/t}'>
35                                         </td>
36                                 </tr>
37                                 <tr>
38                                         <td><LABEL for="base">{t}Base{/t}{$must}</LABEL></td>
39                                         <td>
40                                                 <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}"
41                                                         {if $isReleaseMimeType} disabled {/if} {$baseACL}>
42                                                         {html_options options=$bases selected=$base_select}
43                                                 </select>
44                                                 {if $baseACL == "" && !$isReleaseMimeType}
45                                                         <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
46                                                 {else}
47                                                         <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
48                                                 {/if}
49                                   </td>
50                                  </tr>
52                         </table>
53                         
54                 </td>
55                 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
56                         <table summary="">
57                                 <tr>
58                                         <td>
59                                                 <LABEL for="picture_file">{t}Icon{/t}</LABEL><br>
60                                                 <img src="{$gotoMimeIcon}" border=1 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
61                                         </td>
62                                         <td style="vertical-align:top">
63                                                 &nbsp;<br>
64                                                 <input type="hidden" name="MAX_FILE_SIZE" value="100000">
65                                                 <input name="picture_file" type="file" size="20" maxlength="255" accept="image/*.png" id="picture_file" {$gotoMimeIconACL}>
66                                                 <input type="submit" name="update_icon" value="{t}Update{/t}" title="{t}Update mime type icon{/t}" {$gotoMimeIconACL}>
67                                         </td>
68                                 </tr>
69                         </table>
70                 </td>
71         </tr>
72         <tr>
73                 <td colspan="2">
74                         <p class='seperator'>&nbsp;</p>
75                 </td>
76         </tr>
77         <tr>
78                 <td colspan="2">
79                         <h2><img src='images/mime_leftclick.png' class='center'>&nbsp;{t}Left click{/t}</h2>
80                 </td>
81         </tr>
82         <tr>
83                 <td style='width:50%; vertical-align:top;' >
84                         {t}File patterns{/t}
85                         {$gotoMimeFilePatterns}         
86                         <input type='text'       name='NewFilePattern'    value='' title='{t}Please specify a new file pattern{/t}' {$gotoMimeFilePatternACL}>
87                         <input type='submit' name='AddNewFilePattern' value='{t}Add{/t}' title='{t}Add a new file pattern{/t}' {$gotoMimeFilePatternACL}>
88                 </td>
89                 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
90                         {t}Applications{/t}
91                         {$gotoMimeApplications}         
92                         <input type='text'       name='NewApplication'    value='' title='{t}Enter an application name here{/t}' {$gotoMimeApplicationACL}>
93                         <input type='submit' name='AddNewApplication' value='{t}Add{/t}' title='{t}Add application{/t}' {$gotoMimeApplicationACL}>
94                 </td>
95         </tr>
96         <tr>    
97                 <td colspan="2">
98                         <p class='seperator'>&nbsp;</p>
99                 </td>
100         </tr>
101         <tr>    
102                 <td colspan="2">
103                         <h2><img src='images/mime_embedding.png' class='center'>&nbsp;{t}Embedding{/t}</h2>
104                 </td>
105         </tr>
106         <tr>
107                 <td style='width:50%; vertical-align:top;' >
108                                 
109                         <table>
110                                 <tr>
111                                         <td style='vertical-align:top; '>
112                                                 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I' 
113                                                         {if $gotoMimeLeftClickAction_I} checked {/if} {$gotoMimeLeftClickActionACL}>
114                                                 {t}Show file in embedded viewer{/t}
115                                                 <br>
117                                                 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E' 
118                                                         {if $gotoMimeLeftClickAction_E} checked {/if} {$gotoMimeLeftClickActionACL}>
119                                                 {t}Show file in external viewer{/t}
120                                                 <br>
122                                                 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1' 
123                                                         {if $gotoMimeLeftClickAction_Q} checked {/if} {$gotoMimeLeftClickActionACL}>
124                                                 {t}Ask wheter to save to local disk{/t}
125                                         </td>
126                                 </tr>
127                         </table>
128                         
129                 </td>
130                 <td style="border-left:1px solid #A0A0A0;vertical-align:top;">
131                         {t}Applications{/t}
132                         {$gotoMimeEmbeddedApplications}         
133                         <input type='text'       name='NewEmbeddedApplication'    value='' title='{t}Enter an application name here{/t}' {$gotoMimeEmbeddedApplicationACL}>
134                         <input type='submit' name='AddNewEmbeddedApplication' value='{t}Add{/t}' title='{t}Add application{/t}' {$gotoMimeEmbeddedApplicationACL}>
135                 </td>
136         </tr>
137 </table>
138 <input type="hidden" name="MimeGeneric" value="1">
139 <!-- Place cursor -->
140 <script language="JavaScript" type="text/javascript">
141   <!-- // First input field on page
142   document.mainform.cn.focus();
143   -->
144 </script>