~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<span tal:attributes="id view/content_box_id">
    <span class="yui3-activator-data-box">
      <tal:attribute replace="structure view/default_html"/>
    </span>
    <button class="lazr-btn yui3-activator-act yui3-activator-hidden">
      Edit
    </button>

    <a tal:condition="view/help_link"
       tal:attributes="href view/help_link"
       target="help"
       class="sprite maybe">&nbsp;
       <span class="invisible-link">Driver help</span>
    </a>

    <noscript tal:condition="view/can_write">
      <a tal:attributes="href view/edit_url;
                         title view/edit_title"
         class="sprite edit"></a>
      <a tal:condition="view/help_link"
         tal:attributes="href view/help_link"
         target="help"
         class="sprite maybe">&nbsp;
         <span class="invisible-link">Driver help</span>
      </a>
    </noscript>
    <div class="yui3-activator-message-box yui3-activator-hidden"></div>
</span>

<script tal:condition="view/can_write"
        tal:content="structure string:
LPS.use('lp.app.picker', 'lp.client', function(Y) {
    if (Y.UA.ie) {
        return;
    }

    var picker_config = ${view/json_config}
    picker_config.validate_callback = Y.lp.app.picker.public_private_warning;
    Y.on('load', function(e) {
      Y.lp.app.picker.addPickerPatcher(
        ${view/json_vocabulary_name},
        ${view/json_resource_uri},
        ${view/json_attribute},
        ${view/json_content_box_id},
        picker_config);
      }, window);
});
"/>