119 | | pheader=shn_pr_pheader |
120 | | }}} |
121 | | |
122 | | The optional '''pheader''' argument helps you to display some information about the primary resource record in the view while operating on a component (e.g. the person's name and ID, when displaying a list of available images for this person). You may pass static content, or a function or lambda to produce content, which will be forwarded as ''pheader'' variable to the view. |
123 | | |
124 | | If you pass a function or lambda as pheader, then it has to take 5 arguments: |
| 119 | rheader=lambda jr: shn_pr_rheader(jr, |
| 120 | tabs = [(T("Basic Details"), None), |
| 121 | (T("Images"), "image"), |
| 122 | (T("Identity"), "identity"), |
| 123 | (T("Address"), "address"), |
| 124 | (T("Contact Data"), "pe_contact"), |
| 125 | (T("Memberships"), "group_membership"), |
| 126 | (T("Presence Log"), "presence"), |
| 127 | (T("Subscriptions"), "pe_subscription") |
| 128 | ]), |
| 129 | sticky=True) |
| 130 | }}} |
| 131 | |
| 132 | The optional '''rheader''' argument helps you to display some information about the primary resource record in the view while operating on a component (e.g. the person's name and ID, when displaying a list of available images for this person). You may pass static content, or a function or lambda to produce content, which will be forwarded as ''rheader'' variable to the view. |
| 133 | |
| 134 | If you pass a function or lambda as rheader, then it has to take 5 arguments: |