source: trunk/skins/lemill/widget_copyright.pt @ 3022

Revision 3022, 5.4 KB checked in by jukka, 10 years ago (diff)

Fixes for after upgrade bugs

Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xmlns:tal="http://xml.zope.org/namespaces/tal"
3      xmlns:metal="http://xml.zope.org/namespaces/metal"
4      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5      i18n:domain="lemill">
6  <head><title></title></head>
7  <body>
8
9    <!-- Copyright Widgets -->
10   
11    <metal:view_macro define-macro="view"
12              tal:define="vocab python:field.Vocabulary(here);
13                          version python:request.get('version',None);                         
14                          value python:test(version, here.getFieldHistory(field.getName(), version), accessor());
15                          value value;
16                          display python:here.displayValue(vocab, value)">
17        <tal:copyright condition="python:value=='CreativeCommons'">
18            <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5  License</a>.<!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
19            <Work rdf:about="">
20            <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
21            </Work>
22            <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
23        </tal:copyright>
24        <tal:block tal:condition="python:value!='CreativeCommons'" tal:content="display"/>
25    </metal:view_macro>
26
27    <metal:define define-macro="edit">
28
29        <metal:use use-macro="field_macro | here/widgets/field/macros/edit">
30
31            <metal:fill fill-slot="widget_body"
32                        tal:define="vocab python:field.Vocabulary(here);
33                                    vlen python:len(vocab);
34                                    format python:widget.format;
35                                    fieldName temp_name | fieldName;">
36
37                <tal:onlyChoice condition="python:vlen==1">
38               
39                    <p i18n:translate="text_cc_license_notification" tal:condition="python:here.meta_type != 'LeMillPrintResource'">
40The text you included to this resource should be written by you. You should not copy text straight from other sources unless they are released under the Creative Commons Attribution-ShareAlike 2.5 license - the license used here. However, you may naturally use citation in your text with references to the original text.
41                    </p>
42                    <p i18n:translate="text_printresource_cc_license_notification" tal:condition="python:here.meta_type == 'LeMillPrintResource'">
43The uploaded print resource will be published under the Creative Commons Attribution-ShareAlike 2.5 license. Please do not upload resources that are released under a different license.
44                    </p>
45                    <input type="hidden"
46                        tal:define="tabindex tabindex/next"
47                        tal:attributes="value python:vocab[0];
48                            name fieldName;
49                            id string:${fieldName}_${tabindex};"/>
50                       
51                </tal:onlyChoice>
52
53                <tal:shortVocab condition="python:(vlen>1)">
54                    <!-- Radio when the vocab is short < 4 -->
55                    <tal:radios repeat="item vocab">
56                        <input class="noborder"
57                               tabindex=""
58                               type="radio"
59                               tal:define="tabindex tabindex/next"
60                               tal:attributes="name fieldName;
61                                               id string:${fieldName}_${tabindex};
62                                               checked python:here.checkSelected(item, value);
63                                               value item;
64                                               tabindex tabindex;"
65                               />
66                        <label tal:content="structure python:vocab.getMsgId(item)"
67                               i18n:translate=""
68                               tal:attributes="for string:${fieldName}_${tabindex/pos}" />
69                        <br />
70                    </tal:radios>
71                </tal:shortVocab>
72            </metal:fill>
73        </metal:use>
74    </metal:define>
75
76
77    <div metal:define-macro="search">
78      <div metal:use-macro="here/widgets/lines/macros/edit">
79      </div>
80    </div>
81
82    <div metal:define-macro="hidden">
83      <input type="hidden"
84             name=""
85             value=""
86             tabindex="#"
87             tal:attributes="name string:${fieldName}:lines;
88                             value python:'\n'.join(value);
89                             tabindex tabindex/next;" />
90
91    </div>
92
93
94  </body>
95
96</html>
97
Note: See TracBrowser for help on using the repository browser.