2 <h3>{t}Generic{/t}</h3>
4 <table style="width:100%" summary="{t}Mimetype generic{/t}">
5 <tr>
6 <td style='width:50%; '>
8 <table summary="{t}Mimetype 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><LABEL for="picture_file">{t}Icon{/t}</LABEL>
55 <br>
57 {if $IconReadable}
58 <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime icon{/t}' style="width:48px; height:48; background-color:white; vertical-align:bottom;">
59 {else}
60 {image path="images/empty.png"}
62 {/if}
63 </td>
64 <td>
65 <br>
66 <input type="hidden" name="MAX_FILE_SIZE" value="100000">
67 {render acl=$gotoMimeIconACL}
68 <input name="picture_file" type="file" size="20" maxlength="255" accept="image/*.png" id="picture_file">
69 {/render}
70 {render acl=$gotoMimeIconACL}
71 <button type='submit' name='update_icon'title="{t}Update mime type icon{/t}">{t}Update{/t}</button>
72 {/render}
73 </td>
74 </tr>
75 </table>
76 </td>
77 </tr>
78 <tr>
79 <td colspan="2">
80 <hr>
81 </td>
82 </tr>
83 <tr>
84 <td colspan="2">
85 <h3>{t}Left click{/t}
86 </h3>
87 </td>
88 </tr>
89 <tr>
90 <td style='width:50%; '>{t}File patterns{/t}
91 {$must}
92 {render acl=$gotoMimeFilePatternACL}
93 {$gotoMimeFilePatterns}
94 {/render}
95 {render acl=$gotoMimeFilePatternACL}
96 <input type='text' name='NewFilePattern' value='' title='{t}Please specify a new file pattern{/t}'>
97 {/render}
98 {render acl=$gotoMimeFilePatternACL}
99 <button type='submit' name='AddNewFilePattern' title="{t}Add a new file pattern{/t}">
100 {msgPool type=addButton}</button>
101 {/render}
102 </td>
103 <td class='left-border'>{t}Applications{/t}
104 {render acl=$gotoMimeApplicationACL}
105 {$gotoMimeApplications}
106 {/render}
107 {render acl=$gotoMimeApplicationACL}
108 <select name="NewApplicationSelect" size=1><option value="">-</option>
109 {html_options options=$ApplicationList}
110 </select>
111 {/render}
112 {render acl=$gotoMimeApplicationACL}
113 <input type='text' name='NewApplication' value='' title='{t}Enter an application name here{/t}'>
114 {/render}
115 {render acl=$gotoMimeApplicationACL}
116 <button type='submit' name='AddNewApplication' title="{t}Add application{/t}">
117 {msgPool type=addButton}</button>
118 {/render}
119 </td>
120 </tr>
121 <tr>
122 <td colspan="2">
123 <hr>
124 </td>
125 </tr>
126 <tr>
127 <td colspan="2">
128 <h3>{t}Embedding{/t}
129 </h3>
130 </td>
131 </tr>
132 <tr>
133 <td style='width:50%; '>
134 <table summary="{t}Left click actions{/t}">
135 <tr>
136 <td>
137 {render acl=$gotoMimeLeftClickActionACL}
140 <input type='radio' name='gotoMimeLeftClickAction_IE' value='I' {if $gotoMimeLeftClickAction_I} checked {/if}>
141 {/render}{t}Show file in embedded viewer{/t}
142 <br>
143 {render acl=$gotoMimeLeftClickActionACL}
146 <input type='radio' name='gotoMimeLeftClickAction_IE' value='E' {if $gotoMimeLeftClickAction_E} checked {/if}>
147 {/render}{t}Show file in external viewer{/t}
148 <br>
149 {render acl=$gotoMimeLeftClickActionACL}
152 <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1' {if $gotoMimeLeftClickAction_Q} checked {/if}>
153 {/render}{t}Ask whether to save to local disk{/t}
154 </td>
155 </tr>
156 </table>
157 </td>
158 <td class='left-border'>{t}Applications{/t}
159 {render acl=$gotoMimeEmbeddedApplicationACL}
160 {$gotoMimeEmbeddedApplications}
161 {/render}
162 {render acl=$gotoMimeEmbeddedApplicationACL}
163 <select name="NewEmbeddedApplicationSelect" size=1><option value="">-</option>
164 {html_options options=$ApplicationList}
165 </select>
166 {/render}
167 {render acl=$gotoMimeEmbeddedApplicationACL}
168 <input type='text' name='NewEmbeddedApplication' value='' title='{t}Enter an application name here{/t}'>
169 {/render}
170 {render acl=$gotoMimeEmbeddedApplicationACL}
171 <button type='submit' name='AddNewEmbeddedApplication'
172 title='{t}Add application{/t}'>{msgPool type=addButton}</button>
173 {/render}
174 </td>
175 </tr>
176 </table>
177 <input type="hidden" name="MimeGeneric" value="1"><!-- Place cursor -->
178 <script language="JavaScript" type="text/javascript"><!-- // First input field on page focus_field('cn'); --></script>