~launchpad-pqm/launchpad/devel

5491.1.3 by Graham Binns
Moved bug attachment form into a macro.
1
<fieldset
8137.17.24 by Barry Warsaw
thread merge
2
    style="border: 1px solid #999; padding: 0.5em"
5491.1.3 by Graham Binns
Moved bug attachment form into a macro.
3
    xmlns:tal="http://xml.zope.org/namespaces/tal"
4
    xmlns:metal="http://xml.zope.org/namespaces/metal"
5
    metal:define-macro="attachment-form">
6
7
  <legend style="margin-left: 1em; font-weight: normal;">
8137.17.24 by Barry Warsaw
thread merge
8
    <span class="fieldOptional">Include an attachment (Optional)</span>
5491.1.3 by Graham Binns
Moved bug attachment form into a macro.
9
  </legend>
10
8223.6.7 by Gavin Panella
Go back to basics.
11
  <table>
5491.1.3 by Graham Binns
Moved bug attachment form into a macro.
12
    <tal:filecontent
13
        tal:define="widget nocall:view/widgets/filecontent|nothing"
14
        tal:condition="widget">
15
      <metal:widget metal:use-macro="context/@@launchpad_form/widget_row" />
16
    </tal:filecontent>
17
18
    <tal:patch
19
        tal:define="widget nocall:view/widgets/patch|nothing"
20
        tal:condition="widget">
21
      <metal:widget metal:use-macro="context/@@launchpad_form/widget_row" />
22
    </tal:patch>
23
24
    <tal:attachment_description
25
        tal:define="widget nocall:view/widgets/attachment_description|nothing"
26
        tal:condition="widget">
27
      <metal:widget metal:use-macro="context/@@launchpad_form/widget_row" />
28
    </tal:attachment_description>
29
30
  </table>
31
</fieldset>
32