2 <h3>{t}Generic{/t}</h3>
4 <table style="width:100%" summary="{t}Mime-type generic{/t}">
5 <tr>
6 <td style='width:50%; '>
8 <table summary="{t}Mime-type settings{/t}">
9 <tr>
10 <td>{t}Mime type{/t}{$must}</td>
11 <td>
12 {render acl=$cnACL}
13 <input type="text" name='cn' value="{$cn}" title='{t}Please enter a name for the mime-type here{/t}'>
14 {/render}
15 </td>
16 </tr>
17 <tr>
18 <td>{t}Mime-group{/t}</td>
19 <td>
20 {render acl=$gotoMimeGroupACL}
21 <select name='gotoMimeGroup' title='{t}Categorize this mime type{/t}' size=1>
22 {html_options output=$gotoMimeGroups values=$gotoMimeGroups selected=$gotoMimeGroup}
23 </select>
24 {/render}
25 </td>
26 </tr>
27 <tr>
28 <td>{t}Description{/t}</td>
29 <td>
30 {render acl=$descriptionACL}
31 <input type="text" name='description' value="{$description}" title='{t}Please specify a description{/t}'>
32 {/render}
33 </td>
34 </tr>
36 {if !$isReleaseMimeType}
37 <tr>
38 <td><br><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
39 <td>
40 <br>
41 {render acl=$baseACL}
42 {$base}
43 {/render}
44 </td>
45 </tr>
46 {/if}
47 </table>
49 </td>
50 <td class='left-border'>
52 <table summary="{t}Picture settings{/t}">
53 <tr>
54 <td>
55 <LABEL for="picture_file">{t}Icon{/t}</LABEL>
56 <br>
57 {if $IconReadable}
58 <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime-icon{/t}'
59 style="width:48px; height:48; background-color:white; vertical-align:bottom;">
60 {else}
61 {image path="images/empty.png"}
62 {/if}
63 </td>
64 <td>
65 <br>
66 <input type="hidden" name="MAX_FILE_SIZE" value="1000000">
67 {render acl=$gotoMimeIconACL}
68 <input name="picture_file" type="file" size="20" maxlength="255"
69 accept="image/*.png" id="picture_file">
70 {/render}
71 {render acl=$gotoMimeIconACL}
72 <button type='submit' name='update_icon'title="{t}Update mime type icon{/t}">{t}Update{/t}</button>
73 {/render}
74 </td>
75 </tr>
76 </table>
78 </td>
79 </tr>
80 <tr>
81 <td colspan="2">
83 <hr>
85 </td>
86 </tr>
87 <tr>
88 <td colspan="2">
89 <h3>{t}Left click{/t}</h3>
90 </td>
91 </tr>
92 <tr>
93 <td style='width:50%; '>
95 {t}File patterns{/t}{$must}
97 {render acl=$gotoMimeFilePatternACL}
98 {$gotoMimeFilePatterns}
99 {/render}
100 {render acl=$gotoMimeFilePatternACL}
101 <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
102 {/render}
103 {render acl=$gotoMimeFilePatternACL}
104 <button type='submit' name='AddNewFilePattern' title="{t}Add a new file pattern{/t}">
105 {msgPool type=addButton}</button>
106 {/render}
108 </td>
109 <td class='left-border'>
111 {t}Applications{/t}
113 {render acl=$gotoMimeApplicationACL}
114 {$gotoMimeApplications}
115 {/render}
116 {render acl=$gotoMimeApplicationACL}
117 <select name="NewApplicationSelect" size=1><option value="">-</option>
118 {html_options options=$ApplicationList}
119 </select>
120 {/render}
121 {render acl=$gotoMimeApplicationACL}
122 <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
123 {/render}
124 {render acl=$gotoMimeApplicationACL}
125 <button type='submit' name='AddNewApplication' title="{t}Add application{/t}">
126 {msgPool type=addButton}</button>
127 {/render}
129 </td>
130 </tr>
131 <tr>
132 <td colspan="2">
134 <hr>
136 </td>
137 </tr>
138 <tr>
139 <td colspan="2">
141 <h3>{t}Embedding{/t}</h3>
143 </td>
144 </tr>
145 <tr>
146 <td style='width:50%; '>
148 {render acl=$gotoMimeLeftClickActionACL}
149 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'
150 {if $gotoMimeLeftClickAction_I} checked {/if}>
151 {/render}{t}Show file in embedded viewer{/t}
152 <br>
153 {render acl=$gotoMimeLeftClickActionACL}
154 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'
155 {if $gotoMimeLeftClickAction_E} checked {/if}>
156 {/render}{t}Show file in external viewer{/t}
157 <br>
158 {render acl=$gotoMimeLeftClickActionACL}
159 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'
160 {if $gotoMimeLeftClickAction_Q} checked {/if}>
161 {/render}{t}Ask whether to save to local disk{/t}
163 </td>
164 <td class='left-border'>
166 {t}Applications{/t}
167 {render acl=$gotoMimeEmbeddedApplicationACL}
168 {$gotoMimeEmbeddedApplications}
169 {/render}
170 {render acl=$gotoMimeEmbeddedApplicationACL}
171 <select name="NewEmbeddedApplicationSelect" size=1><option value="">-</option>
172 {html_options options=$ApplicationList}
173 </select>
174 {/render}
175 {render acl=$gotoMimeEmbeddedApplicationACL}
176 <input type='text' name='NewEmbeddedApplication' value='' title='{t}Enter an application name here{/t}'>
177 {/render}
178 {render acl=$gotoMimeEmbeddedApplicationACL}
179 <button type='submit' name='AddNewEmbeddedApplication'
180 title='{t}Add application{/t}'>{msgPool type=addButton}</button>
181 {/render}
183 </td>
184 </tr>
185 </table>
186 <input type="hidden" name="MimeGeneric" value="1"><!-- Place cursor -->
187 <script language="JavaScript" type="text/javascript"><!-- // First input field on page focus_field('cn'); --></script>