Code

Updated mimetypes
[gosa.git] / gosa-plugins / goto / admin / mimetypes / generic.tpl
2 <table style="width:100%" summary="{t}Mimetype generic{/t}">
3  <tr>
4   <td colspan="2">
5    <h3>{t}Generic{/t}
6    </h3>
7   </td>
8  </tr>
9  <tr>
10   <td style='width:50%; '>
11    <table summary="{t}Mimetype settings{/t}">
12     <tr>
13      <td>{t}Mime type{/t}
14       {$must}
15      </td>
16      <td>
17       {render acl=$cnACL}
18        <input type="text" name='cn' value="{$cn}" title='{t}Please enter a name for the mime type here{/t}'>
19       {/render}
20      </td>
21     </tr>
22     <tr>
23      <td>{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>{t}Description{/t}
35      </td>
36      <td>
37       {render acl=$descriptionACL}
38        <input type="text" name='description' value="{$description}" title='{t}Please specify a description{/t}'>
39       {/render}
40      </td>
41     </tr>
42     
43     {if !$isReleaseMimeType}
44      <tr>
45       <td><LABEL for="base">{t}Base{/t}
46        {$must}</LABEL>
47       </td>
48       <td>
49        {render acl=$baseACL}
50         <select size="1" id="base" name="base" title="{t}Choose subtree to place application in{/t}">
51          {html_options options=$bases selected=$base_select}
52         </select>
53        {/render}
54        
55        {if !$isReleaseMimeType}
56         {render acl=$baseACL disable_picture='images/lists/folder_grey.png'}
57          {image path="images/lists/folder.png" action="chooseBase" title="{t}Select a base{/t}"}
58         {/render}
59         
60        {/if}
61       </td>
62      </tr>
63      
64     {/if}
65    </table>
66   </td>
67   <td class='left-border'>
68    <table summary="{t}Picture settings{/t}">
69     <tr>
70      <td><LABEL for="picture_file">{t}Icon{/t}</LABEL>
71       <br>
72       
73       {if $IconReadable}
74        <img src="{$gotoMimeIcon}" border=1 alt='{t}Mime icon{/t}' style="width:48px; height:48; background-color:white; vertical-align:bottom;">
75        {else}
76        {image path="images/empty.png"}
77        
78       {/if}
79      </td>
80      <td>&nbsp;
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"                                                         accept="image/*.png" id="picture_file">
85       {/render}
86       {render acl=$gotoMimeIconACL}
87        <button type='submit' name='update_icon'title="{t}Update mime type icon{/t}">{t}Update{/t}</button>
88       {/render}
89      </td>
90     </tr>
91    </table>
92   </td>
93  </tr>
94  <tr>
95   <td colspan="2">
96    <hr>
97   </td>
98  </tr>
99  <tr>
100   <td colspan="2">
101    <h3>{t}Left click{/t}
102    </h3>
103   </td>
104  </tr>
105  <tr>
106   <td style='width:50%; '>{t}File patterns{/t}
107    {$must}
108    {render acl=$gotoMimeFilePatternACL}
109     {$gotoMimeFilePatterns}
110    {/render}
111    {render acl=$gotoMimeFilePatternACL}
112     <input type='text'   name='NewFilePattern'    value='' title='{t}Please specify a new file pattern{/t}'>
113    {/render}
114    {render acl=$gotoMimeFilePatternACL}
115     <button type='submit' name='AddNewFilePattern' title="{t}Add a new file pattern{/t}">
116     {msgPool type=addButton}</button>
117    {/render}
118   </td>
119   <td class='left-border'>{t}Applications{/t}
120    {render acl=$gotoMimeApplicationACL}
121     {$gotoMimeApplications}
122    {/render}
123    {render acl=$gotoMimeApplicationACL}
124     <select name="NewApplicationSelect" size=1><option value="">-</option>
125      {html_options options=$ApplicationList}
126     </select>
127    {/render}
128    {render acl=$gotoMimeApplicationACL}
129     <input type='text'   name='NewApplication'    value='' title='{t}Enter an application name here{/t}'>
130    {/render}
131    {render acl=$gotoMimeApplicationACL}
132     <button type='submit' name='AddNewApplication' title="{t}Add application{/t}">
133     {msgPool type=addButton}</button>
134    {/render}
135   </td>
136  </tr>
137  <tr>
138   <td colspan="2">
139    <hr>
140   </td>
141  </tr>
142  <tr>
143   <td colspan="2">
144    <h3>{t}Embedding{/t}
145    </h3>
146   </td>
147  </tr>
148  <tr>
149   <td style='width:50%; '>
150    <table summary="{t}Left click actions{/t}">
151     <tr>
152      <td>
153       {render acl=$gotoMimeLeftClickActionACL}
154        
155        
156        <input type='radio' name='gotoMimeLeftClickAction_IE' value='I'                                                  {if $gotoMimeLeftClickAction_I} checked {/if}>
157       {/render}{t}Show file in embedded viewer{/t}
158       <br>
159       {render acl=$gotoMimeLeftClickActionACL}
160        
161        
162        <input type='radio' name='gotoMimeLeftClickAction_IE' value='E'                                                  {if $gotoMimeLeftClickAction_E} checked {/if}>
163       {/render}{t}Show file in external viewer{/t}
164       <br>
165       {render acl=$gotoMimeLeftClickActionACL}
166        
167        
168        <input type='checkbox' name='gotoMimeLeftClickAction_Q' value='1'                                                        {if $gotoMimeLeftClickAction_Q} checked {/if}>
169       {/render}{t}Ask whether to save to local disk{/t}
170      </td>
171     </tr>
172    </table>
173   </td>
174   <td class='left-border'>{t}Applications{/t}
175    {render acl=$gotoMimeEmbeddedApplicationACL}
176     {$gotoMimeEmbeddedApplications}
177    {/render}
178    {render acl=$gotoMimeEmbeddedApplicationACL}
179     <select name="NewEmbeddedApplicationSelect" size=1><option value="">-</option>
180      {html_options options=$ApplicationList}
181     </select>
182    {/render}
183    {render acl=$gotoMimeEmbeddedApplicationACL}
184     <input type='text'   name='NewEmbeddedApplication'    value=''                              title='{t}Enter an application name here{/t}'>
185    {/render}
186    {render acl=$gotoMimeEmbeddedApplicationACL}
187     <button type='submit' name='AddNewEmbeddedApplication'>
188     {msgPool type=addButton}</button>title='{t}Add application{/t}'>
189    {/render}
190   </td>
191  </tr>
192 </table>
193 <input type="hidden" name="MimeGeneric" value="1"><!-- Place cursor -->
194 <script language="JavaScript" type="text/javascript"><!-- // First input field on page  focus_field('cn');  --></script>