OLD | NEW |
(Empty) | |
| 1 [# Diplay a widget to choose project access level, or read-only text showing |
| 2 the access level. Read-only text is used when the user does not have |
| 3 permission to edit, or if there is only one available choice. |
| 4 ] |
| 5 |
| 6 [define access_menu_was_shown]False[end] |
| 7 |
| 8 [if-any read_only][else] |
| 9 [if-any offer_access_level] |
| 10 <select name="access" id="access"> |
| 11 <option value="" disabled="disabled" [if-any initial_access][else]selected
="selected"[end]> |
| 12 Select an access level... |
| 13 </option> |
| 14 [for available_access_levels] |
| 15 <option value="[available_access_levels.key]" |
| 16 [if-any initial_access] |
| 17 [is initial_access.key available_access_levels.key]selected="selecte
d"[end] |
| 18 [end]> |
| 19 [available_access_levels.name] |
| 20 </option> |
| 21 [end] |
| 22 </select> |
| 23 [define access_menu_was_shown]True[end] |
| 24 [end] |
| 25 [end] |
| 26 |
| 27 [is access_menu_was_shown "False"] |
| 28 [initial_access.name] |
| 29 <input type="hidden" name="access" value="[initial_access.key]"> |
| 30 [end] |
| 31 |
| 32 <div class="formerror"> |
| 33 [if-any errors.access] |
| 34 <div class="emphasis">[errors.access]</div> |
| 35 [end] |
| 36 </div> |
OLD | NEW |