1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
5 | metal:use-macro="context/main_template/macros/master" |
---|
6 | i18n:domain="plone"> |
---|
7 | |
---|
8 | <body> |
---|
9 | |
---|
10 | <div metal:fill-slot="main" |
---|
11 | tal:define="audio_info context/@@audio_encoded; errors options/state/getErrors"> |
---|
12 | |
---|
13 | <tal:main-macro metal:define-macro="main"> |
---|
14 | |
---|
15 | <div metal:use-macro="context/document_actions/macros/document_actions"> |
---|
16 | Document actions (print, sendto etc) |
---|
17 | </div> |
---|
18 | |
---|
19 | <h1>Audio file info</h1> |
---|
20 | |
---|
21 | <div id="object_metadata"> |
---|
22 | <p> |
---|
23 | <strong i18n:translate="">Title:</strong> |
---|
24 | <span tal:content="audio_info/title">Title</span> |
---|
25 | </p> |
---|
26 | <p> |
---|
27 | <strong i18n:translate="">Artist:</strong> |
---|
28 | <span tal:condition="audio_info/artist|nothing" tal:content="audio_info/artist">Artist</span> |
---|
29 | </p> |
---|
30 | <p> |
---|
31 | <strong i18n:translate="">Album:</strong> |
---|
32 | <span tal:condition="audio_info/album|nothing" tal:content="audio_info/album">Album</span> |
---|
33 | </p> |
---|
34 | <p> |
---|
35 | <strong i18n:translate="">Comment:</strong> |
---|
36 | <span tal:condition="audio_info/comment|nothing" tal:content="audio_info/comment">Comment</span> |
---|
37 | </p> |
---|
38 | </div> |
---|
39 | |
---|
40 | <form |
---|
41 | method="post" |
---|
42 | action="." |
---|
43 | tal:attributes="action string:${here_url}/${template/getId}"> |
---|
44 | |
---|
45 | <h1>ID3Tag text encoding</h1> |
---|
46 | |
---|
47 | <div class="field" |
---|
48 | tal:define="error errors/encoding|nothing;" |
---|
49 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
50 | |
---|
51 | <label i18n:translate=""> |
---|
52 | Encoding |
---|
53 | <span class="fieldRequired" title="Required">(Required)</span> |
---|
54 | </label> |
---|
55 | |
---|
56 | <div tal:content="error">Validation error output</div> |
---|
57 | |
---|
58 | <div class="formHelp"> |
---|
59 | If you can't read audio info and see in it not textual characters, audio tag data may be encoded wrong. |
---|
60 | Try to manually set audio tag text encoding. If nothing changed better leave encoding selector empty. |
---|
61 | </div> |
---|
62 | |
---|
63 | <select name="encoding" id="encoding" |
---|
64 | tal:attributes="tabindex tabindex/next;"> |
---|
65 | <option selected tal:content="audio_info/encoding">current encoding</option> |
---|
66 | <option tal:repeat="text_encoding audio_info/getEncodingsList" tal:content="text_encoding"> |
---|
67 | some text encoding |
---|
68 | </option> |
---|
69 | </select> |
---|
70 | </div> |
---|
71 | |
---|
72 | <div class="formControls"> |
---|
73 | <input class="context" |
---|
74 | type="submit" |
---|
75 | tabindex="" |
---|
76 | name="form.button.Set" |
---|
77 | value="Set" |
---|
78 | tal:attributes="tabindex tabindex/next;" |
---|
79 | i18n:attributes="value "/> |
---|
80 | </div> |
---|
81 | |
---|
82 | <input type="hidden" name="form.submitted" value="1" /> |
---|
83 | |
---|
84 | </form> |
---|
85 | |
---|
86 | <div metal:use-macro="context/document_byline/macros/byline"> |
---|
87 | Get the byline - contains details about author and modification date. |
---|
88 | </div> |
---|
89 | |
---|
90 | <div class="visualClear"> </div> |
---|
91 | |
---|
92 | </tal:main-macro> |
---|
93 | </div> |
---|
94 | |
---|
95 | </body> |
---|
96 | |
---|
97 | </html> |
---|