Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into team-managed
Conflicts: src/ploneintranet/workspace/browser/roster.py
- Loading branch information
Showing
6 changed files
with
162 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
src/ploneintranet/workspace/browser/templates/roster-edit.pt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" | ||
lang="en" | ||
metal:use-macro="context/main_template/macros/master" | ||
i18n:domain="plone"> | ||
|
||
<head> | ||
</head> | ||
|
||
<body> | ||
<metal:main fill-slot="main" | ||
tal:define="context_state context/@@plone_context_state; | ||
user_cannot_manage python: | ||
not view.can_manage_workspace(); | ||
"> | ||
|
||
<h1 class="documentFirstHeading" | ||
i18n:translate="heading_edit_roster"> | ||
Edit roster for | ||
<q tal:content="context/Title" i18n:name="folder">title</q> | ||
</h1> | ||
|
||
<div tal:replace="structure provider:plone.abovecontentbody" | ||
tal:condition="not:ajax_load" /> | ||
|
||
<div id="content-core"> | ||
<form method="post" | ||
tal:attributes="action string:${context/absolute_url}/@@edit-roster"> | ||
|
||
<input type="hidden" name="form.submitted:boolean" value="True" /> | ||
|
||
<div class="field"> | ||
<input type="text" | ||
id="edit-roster-user-search" | ||
size="30" | ||
name="search_term" | ||
title="Search for a user" | ||
placeholder="Search for a user" | ||
i18n:attributes="title; placeholder" | ||
tal:attributes="value request/search_term|nothing" | ||
class="searchField" | ||
value="" | ||
/> | ||
<input type="submit" | ||
id="edit-roster-search-button" | ||
name="form.button.SearchUsers" | ||
value="Search users" | ||
class="searchButton allowMultiSubmit" | ||
i18n:attributes="value label_search" | ||
/> | ||
</div> | ||
</form> | ||
|
||
<form method="post" | ||
tal:attributes="action string:${context/absolute_url}/@@update_roster"> | ||
<div id="edit-roster-container"> | ||
<table metal:define-macro="edit-roster" id="edit-roster" | ||
class="listing" | ||
summary="Current users" | ||
tal:define="users view/users;" | ||
i18n:attributes="summary rostered-users;"> | ||
|
||
<thead metal:define-macro="edit-roster-head" id="edit-roster-head"> | ||
<tr> | ||
<th i18n:translate="label_name">Name</th> | ||
<th class="nosort">Participant</th> | ||
<th class="nosort">Workspace Admin</th> | ||
</tr> | ||
</thead> | ||
|
||
<tbody metal:define-macro="edit-roster-settings" id="edit-roster-settings"> | ||
<tal:entries repeat="user users"> | ||
<tr tal:define="oddrow repeat/user/odd; | ||
is_admin user/admin | nothing; | ||
is_member user/member | nothing" | ||
tal:attributes="class python:oddrow and 'odd' or 'even'"> | ||
<td> | ||
<span tal:replace="user/title" /> | ||
<input | ||
type="hidden" | ||
name="entries.id:records" | ||
tal:attributes="value user/id" | ||
/> | ||
<input | ||
type="hidden" | ||
name="entries.type:records" | ||
value="user" | ||
/> | ||
</td> | ||
<td class="listingCheckbox"> | ||
<input class="noborder" | ||
type="checkbox" | ||
value="1" | ||
name="entries.member:records" | ||
tal:attributes="checked is_member; | ||
disabled is_admin" | ||
/> | ||
<input type="hidden" | ||
name="entries.member:records" | ||
value="1" | ||
tal:condition="is_admin" /> | ||
</td> | ||
<td class="listingCheckbox"> | ||
<input class="noborder" | ||
type="checkbox" | ||
value="1" | ||
name="entries.admin:records" | ||
tal:attributes="checked is_admin; | ||
disabled user_cannot_manage;" | ||
/> | ||
</td> | ||
</tr> | ||
</tal:entries> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<input id="edit-roster-save-button" class="context allowMultiSubmit" type="submit" name="form.button.Save" value="Save" i18n:attributes="value label_save" /> | ||
<input tal:replace="structure context/@@authenticator/authenticator" /> | ||
|
||
</form> | ||
</div> | ||
</metal:main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters