1 <table style="width:100%" summary="{t}Mimetype generic{/t}">
2 <tr>
3 <td colspan="2">
4 <h3>{t}Generic{/t}</h3>
5 </td>
6 </tr>
7 <tr>
8 <td style='width:50%; '>
10 <table summary="{t}Mimetype settings{/t}">
11 <tr>
12 <td>
13 {t}Mime type{/t}{$must}
14 </td>
15 <td>
16 {render acl=$cnACL}
17 <input type="text" name='cn' value="{$cn}" title='{t}Please enter a name for the mime type here{/t}'>
18 {/render}
19 </td>
20 </tr>
21 <tr>
22 <td>
23 {t}Mime group{/t}
24 </td>
25 <td>
26 {render acl=$gotoMimeGroupACL}
27 <select name='gotoMimeGroup' title='{t}Categorize this mime type{/t}' size=1>
28 {html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
29 </select>
30 {/render}
31 </td>
32 </tr>
33 <tr>
34 <td>
35 {t}Description{/t}
36 </td>
37 <td>
38 {render acl=$descriptionACL}
39 <input type="text" name='description' value="{$description}" title='{t}Please specify a description{/t}'>
40 {/render}
41 </td>
42 </tr>
43 {if !$isReleaseMimeType}
44 <tr>
45 <td><LABEL for="base">{t}Base{/t}{$must}</LABEL></td>
46 <td>
47 {render acl=$baseACL}
48 <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}">
49 {html_options options=$bases selected=$base_select}
50 </select>
51 {/render}
52 {if !$isReleaseMimeType}
53 {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
54 {image path="images/lists/folder.png" action="chooseBase" title="{t}Select a base{/t}"}
56 {/render}
57 {/if}
58 </td>
59 </tr>
61 {/if}
62 </table>
64 </td>
65 <td class='left-border'>
67 <table summary="{t}Picture settings{/t}">
68 <tr>
69 <td>
70 <LABEL for="picture_file">{t}Icon{/t}</LABEL><br>
71 {if $IconReadable}
72 {image path="{$gotoMimeIcon}"}
73 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
74 {else}
75 {image path="images/empty.png"}
76 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
77 {/if}
78 </td>
79 <td>
81 <br>
82 <input type="hidden" name="MAX_FILE_SIZE" value="100000">
83 {render acl=$gotoMimeIconACL}
84 <input name="picture_file" type="file" size="20" maxlength="255"
85 accept="image/*.png" id="picture_file">
86 {/render}
87 {render acl=$gotoMimeIconACL}
88 <button type='submit' name='update_icon'>{t}Update{/t}</button>
89 title="{t}Update mime type icon{/t}">
90 {/render}
91 </td>
92 </tr>
93 </table>
94 </td>
95 </tr>
96 <tr>
97 <td colspan="2">
98 <hr>
99 </td>
100 </tr>
101 <tr>
102 <td colspan="2">
103 <h3>{t}Left click{/t}</h3>
104 </td>
105 </tr>
106 <tr>
107 <td style='width:50%; '>
109 {t}File patterns{/t}{$must}
110 {render acl=$gotoMimeFilePatternACL}
111 {$gotoMimeFilePatterns}
112 {/render}
114 {render acl=$gotoMimeFilePatternACL}
115 <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
116 {/render}
117 {render acl=$gotoMimeFilePatternACL}
118 <button type='submit' name='AddNewFilePattern' title="{t}Add a new file pattern{/t}">{msgPool type=addButton}</button>
120 {/render}
121 </td>
122 <td class='left-border'>
124 {t}Applications{/t}
125 {render acl=$gotoMimeApplicationACL}
126 {$gotoMimeApplications}
127 {/render}
129 {render acl=$gotoMimeApplicationACL}
130 <select name="NewApplicationSelect" size=1>
131 <option value="">-</option>
132 {html_options options=$ApplicationList}
133 </select>
134 {/render}
135 {render acl=$gotoMimeApplicationACL}
136 <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
137 {/render}
138 {render acl=$gotoMimeApplicationACL}
139 <button type='submit' name='AddNewApplication' title="{t}Add application{/t}">{msgPool type=addButton}</button>
141 {/render}
142 </td>
143 </tr>
144 <tr>
145 <td colspan="2">
146 <hr>
147 </td>
148 </tr>
149 <tr>
150 <td colspan="2">
151 <h3>{t}Embedding{/t}</h3>
152 </td>
153 </tr>
154 <tr>
155 <td style='width:50%; '>
158 <table summary="{t}Left click actions{/t}">
159 <tr>
160 <td>
162 {render acl=$gotoMimeLeftClickActionACL}
163 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
164 {if $gotoMimeLeftClickAction_I} checked {/if}>
165 {/render}
166 {t}Show file in embedded viewer{/t}
167 <br>
169 {render acl=$gotoMimeLeftClickActionACL}
170 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
171 {if $gotoMimeLeftClickAction_E} checked {/if}>
172 {/render}
173 {t}Show file in external viewer{/t}
174 <br>
176 {render acl=$gotoMimeLeftClickActionACL}
177 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
178 {if $gotoMimeLeftClickAction_Q} checked {/if}>
179 {/render}
180 {t}Ask whether to save to local disk{/t}
181 </td>
182 </tr>
183 </table>
185 </td>
186 <td class='left-border'>
188 {t}Applications{/t}
189 {render acl=$gotoMimeEmbeddedApplicationACL}
190 {$gotoMimeEmbeddedApplications}
191 {/render}
192 {render acl=$gotoMimeEmbeddedApplicationACL}
193 <select name="NewEmbeddedApplicationSelect" size=1>
194 <option value="">-</option>
195 {html_options options=$ApplicationList}
196 </select>
197 {/render}
198 {render acl=$gotoMimeEmbeddedApplicationACL}
199 <input type='text' name='NewEmbeddedApplication' value=''
200 title='{t}Enter an application name here{/t}'>
201 {/render}
202 {render acl=$gotoMimeEmbeddedApplicationACL}
203 <button type='submit' name='AddNewEmbeddedApplication'>{msgPool type=addButton}</button>
204 title='{t}Add application{/t}'>
205 {/render}
206 </td>
207 </tr>
208 </table>
209 <input type="hidden" name="MimeGeneric" value="1">
210 <!-- Place cursor -->
211 <script language="JavaScript" type="text/javascript">
212 <!-- // First input field on page
213 focus_field('cn');
214 -->
215 </script>