~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/templates/specification-subscription.pt

[r=benji][bug=50875] Allow teams to be unsubscribed from blueprints
        and fix (modernise) form infrastructure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
<div metal:fill-slot="main">
17
17
 
18
 
  <div class="top-portlet" tal:condition="view/subscription">
19
 
 
20
 
    <p>
21
 
      Choose &#8220;Unsubscribe&#8221; to remove your subscription to this
22
 
      blueprint, or &#8220;Cancel&#8221; to return to the blueprint page.
23
 
    </p>
24
 
 
25
 
  </div>
26
 
 
27
 
  <div class="top-portlet" tal:condition="not: view/subscription">
28
 
 
29
 
    <p>
30
 
      Choose &#8220;Subscribe&#8221; to subscribe to this blueprint,
31
 
      or &#8220;Cancel&#8221; to return to the blueprint page.
32
 
    </p>
33
 
 
34
 
  </div>
35
 
 
36
 
    <form action="." method="POST">
37
 
 
38
 
      <div class="field">
39
 
 
40
 
        <tal:subscribed condition="view/subscription">
41
 
          <input type="checkbox" id="essential" name="essential"
42
 
                 value="yes" checked="yes"
43
 
                 tal:condition="view/subscription/essential" />
44
 
          <input type="checkbox" id="essential" name="essential"
45
 
                 value="yes"
46
 
                 tal:condition="not: view/subscription/essential" />
47
 
        </tal:subscribed>
48
 
        <tal:not_subscribed condition="not: view/subscription">
49
 
          <input type="checkbox" id="essential" name="essential"
50
 
                 value="yes" />
51
 
        </tal:not_subscribed>
52
 
 
53
 
        <label for="essential">Participation essential</label>
54
 
 
55
 
        <p class="formHelp">
56
 
          Check this box only if you are required to be included in all discussions about
57
 
          this feature when you are attending sprints or meetings with this
58
 
          feature on the agenda.
59
 
        </p>
60
 
 
61
 
      </div>
62
 
 
63
 
      <div class="actions">
64
 
        <input tal:condition="not: view/subscription"
65
 
               type="submit"
66
 
               name="subscribe"
67
 
               value="Subscribe" />
68
 
        <input tal:condition="view/subscription"
69
 
               type="submit"
70
 
               name="update"
71
 
               value="Update" />
72
 
        <input tal:condition="view/subscription"
73
 
               type="submit"
74
 
               name="unsubscribe"
75
 
               value="Unsubscribe" />
76
 
        <input type="submit"
77
 
               name="cancel"
78
 
               value="Cancel" />
79
 
      </div>
80
 
    </form>
81
 
 
 
18
    <div metal:use-macro="context/@@launchpad_form/form">
 
19
    </div>
82
20
</div>
83
21
 
84
22
</body>