~vcs-imports/zope.app.securitypolicy/trunk

« back to all changes in this revision

Viewing changes to src/zope/app/securitypolicy/browser/manage_permissionform.pt

  • Committer: rogerineichen
  • Date: 2007-09-26 14:51:44 UTC
  • Revision ID: vcs-imports@canonical.com-20070926145144-lyl0lnz4xl2jb41i
Revert my latest changes, was the wrong checkout base

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html metal:use-macro="context/@@standard_macros/page"
 
2
    i18n:domain="zope">
 
3
<head>
 
4
  <style metal:fill-slot="headers" type="text/css">
 
5
    <!--
 
6
    .row-normal {
 
7
      background-color: #ffffff;
 
8
      border: none;
 
9
    }
 
10
 
 
11
    .row-hilite {
 
12
      background-color: #efefef;
 
13
      border: none;
 
14
    }
 
15
    -->
 
16
  </style>
 
17
</head>
 
18
<body>
 
19
<div metal:fill-slot="body">
 
20
 
 
21
  <p tal:define="status view/update"
 
22
     tal:condition="status"
 
23
     tal:content="status" />
 
24
 
 
25
  <p class="form-help" i18n:translate="">
 
26
    Helpful message.
 
27
  </p>
 
28
 
 
29
  <div tal:define="perm 
 
30
         python:view.permissionForID(request.get('permission_to_manage'))">
 
31
 
 
32
    <p class="form-text" i18n:translate="">
 
33
      Roles assigned to the permission
 
34
      <strong tal:content="perm/title" 
 
35
          i18n:name="perm_title" i18n:translate="">Change DTML Methods</strong>
 
36
      (id: <strong tal:content="perm/id"
 
37
          i18n:name="perm_id">Zope.Some.Permission</strong>)
 
38
    </p>
 
39
 
 
40
    <form action="AllRolePermissions.html" method="post">
 
41
 
 
42
      <input type="hidden" name="permission_id" value="Permission Name"
 
43
          tal:attributes="value perm/id" />
 
44
 
 
45
        <div class="form-element">
 
46
 
 
47
          <table width="100%" cellspacing="0" cellpadding="2" border="0" 
 
48
              nowrap="nowrap">
 
49
 
 
50
            <tr class="list-header">
 
51
              <td align="left" valign="top">
 
52
                <div class="form-label">
 
53
                  <strong i18n:translate="">Role</strong>
 
54
                </div>
 
55
              </td>
 
56
              <td align="left">
 
57
                <div class="form-label">
 
58
                  <strong i18n:translate="">Setting</strong>
 
59
                </div>
 
60
              </td>
 
61
            </tr>
 
62
 
 
63
            <tr class="row-normal"
 
64
                tal:repeat="setting perm/roleSettings"
 
65
                tal:attributes="class
 
66
          python:path('repeat/setting/even') and 'row-normal' or 'row-hilite'">
 
67
              <td align="left" valign="top"
 
68
                  tal:define="ir repeat/setting/index"
 
69
                  tal:content="python:path('view/roles')[ir].id">
 
70
                Manager
 
71
              </td>
 
72
              <td>
 
73
                <select name="settings:list">
 
74
                    <option value="Unset"
 
75
                       tal:repeat="option view/availableSettings"
 
76
                       tal:attributes="value option/id;
 
77
                                       selected python:setting == option['id']"
 
78
                       tal:content="option/shorttitle"
 
79
                       i18n:translate="">+</option>
 
80
                </select>
 
81
              </td>
 
82
            </tr>
 
83
        </table>
 
84
 
 
85
      </div>
 
86
 
 
87
      <div class="form-element">
 
88
        <input class="form-element" type="submit" name="SUBMIT_PERMS" 
 
89
            value="Save Changes" i18n:attributes="value save-changes-button"/>
 
90
      </div>
 
91
    </form>
 
92
 
 
93
  </div>
 
94
</div>
 
95
</body>
 
96
</html>