Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Unified Diff: appengine/monorail/templates/project/people-detail-row-part.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/monorail/templates/project/people-detail-row-part.ezt
diff --git a/appengine/monorail/templates/project/people-detail-row-part.ezt b/appengine/monorail/templates/project/people-detail-row-part.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..785005faae745f788178f629aa724d6f646e19d1
--- /dev/null
+++ b/appengine/monorail/templates/project/people-detail-row-part.ezt
@@ -0,0 +1,29 @@
+[# Display one row in the permissions table.
+
+Args:
+ arg0: True if the permission is native to the role. So, it cannot be removed.
+ arg1: True if the user has this permission. So, it will be shown when not in editing mode.
+ arg2: Permission name.
+ arg3: Permission description.
+
+References globals:
+ offer_edit_perms: True if the user can edit permissions on this page.
+]
+
+<tr>
+ <td>
+ <input type="checkbox" [if-any arg1]checked="checked"[end] id="[arg2]"
+ [if-any offer_edit_perms]
+ [if-any arg0]
+ disabled="disabled"
+ [else]
+ name="extra_perms" value="[arg2]"
+ [end]
+ [else]
+ disabled="disabled"
+ [end]
+ >
+ <label for="[arg2]">[arg2]</label>
+ </td>
+ <td>[arg3]</td>
+</tr>

Powered by Google App Engine
This is Rietveld 408576698