root / branches / 0.8 / linshare / src / main / resources / org / linagora / linShare / view / tapestry / components / UserSearchResults.tml @ 208
History | View | Annotate | Download (5.6 KB)
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|---|
| 2 | <t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> |
| 3 | |
| 4 | <div id="list"> |
| 5 | |
| 6 | <t:if test="inSearch"> |
| 7 | <h2>${message:pages.user.list.users.search.heading}</h2>
|
| 8 | </t:if> |
| 9 | <t:if test="inSearch" negate="true"> |
| 10 | <h2>${message:pages.user.list.users.heading}</h2>
|
| 11 | </t:if> |
| 12 | |
| 13 | |
| 14 | |
| 15 | <t:sorter t:toggleNeeded="false" t:eventName="eventReorderList" t:sorter="prop:sorterModel" t:labels="${message:pages.user.sorter.name.label},${message:pages.user.sorter.mail.label},${message:pages.user.sorter.expiration.label}" t:properties="literal:name,mail,expiration"/>
|
| 16 | |
| 17 | <t:form t:id="results"> |
| 18 | <t:linkit.hiddenfield t:id="action" /> |
| 19 | |
| 20 | <t:grid source="users" row="user" include="mail" |
| 21 | add="picture, action, selectedValue" reorder="mail, picture" rowsPerPage="10"> |
| 22 | |
| 23 | <t:parameter t:name="empty"> |
| 24 | ${message:components.userSearch.grid.empty}
|
| 25 | </t:parameter> |
| 26 | |
| 27 | |
| 28 | <!-- Header definition --> |
| 29 | |
| 30 | <t:parameter t:name="mailHeader"> |
| 31 | ${message:components.userSearch.grid.user}
|
| 32 | </t:parameter> |
| 33 | |
| 34 | <t:parameter t:name="pictureHeader"> |
| 35 | ${message:components.userSearch.grid.usertype}
|
| 36 | </t:parameter> |
| 37 | |
| 38 | <t:parameter t:name="actionHeader"> |
| 39 | ${message:components.userSearch.grid.actions}
|
| 40 | </t:parameter> |
| 41 | |
| 42 | <t:parameter t:name="selectedValueHeader"> |
| 43 | <t:checkbox t:id="selectAll" onclick="checkAll();" value="valueCheck" title="${message:components.userSearch.grid.checkAll}"/>
|
| 44 | </t:parameter> |
| 45 | |
| 46 | |
| 47 | <!-- Selected cell definition --> |
| 48 | |
| 49 | <t:parameter name="pictureCell"> |
| 50 | <t:if test="admin"> |
| 51 | <t:if test="userGuest"> |
| 52 | <img src="${asset:context:images/icons/usertype-guestsimple.png}"
|
| 53 | alt="${message:components.userSearch.grid.usertype.guestSimple}"
|
| 54 | title="${message:components.userSearch.grid.usertype.guestSimple}" />
|
| 55 | <t:parameter name="else"> |
| 56 | <t:if test="userAdmin"> |
| 57 | <img src="${asset:context:images/icons/usertype-internaladmin.png}"
|
| 58 | alt="${message:components.userSearch.grid.usertype.internalAdmin}"
|
| 59 | title="${message:components.userSearch.grid.usertype.internalAdmin}" />
|
| 60 | <t:parameter name="else"> |
| 61 | <img src="${asset:context:images/icons/usertype-internalsimple.png}"
|
| 62 | alt="${message:components.userSearch.grid.usertype.internalSimple}"
|
| 63 | title="${message:components.userSearch.grid.usertype.internalSimple}" />
|
| 64 | </t:parameter> |
| 65 | </t:if> |
| 66 | </t:parameter> |
| 67 | </t:if> |
| 68 | </t:if> |
| 69 | </t:parameter> |
| 70 | |
| 71 | <t:parameter name="mailCell"> |
| 72 | <div> |
| 73 | <t:actionlink t:id="showUser" zone="userDetailsZone" title="${showUserTooltip}" context="user.mail">
|
| 74 | <span onclick="userDetailsWindow.showCenter(true);">${user.firstName} ${user.lastName}</span>
|
| 75 | </t:actionlink> |
| 76 | <br/> |
| 77 | <span class="emailAddress"> |
| 78 | ${user.mail},
|
| 79 | <t:if test="userGuest"> |
| 80 | ${message:UserType.GUEST}<t:if test="${user.expirationDate}">,</t:if>
|
| 81 | </t:if> |
| 82 | <t:if test="userGuest" negate="true"> |
| 83 | ${message:UserType.INTERNAL}<t:if test="${user.expirationDate}">,</t:if>
|
| 84 | </t:if> |
| 85 | </span>${message:global.space}
|
| 86 | <span class="expirationDate"> |
| 87 | <t:if test="${user.expirationDate}">
|
| 88 | ${message:components.userSearch.grid.expires} ${formattedUserExpiryDate}<t:if test="${userCommentExtract}">,</t:if>
|
| 89 | </t:if> |
| 90 | </span>${message:global.space}
|
| 91 | <span class="userComment"> |
| 92 | <t:if test="${userCommentExtract}">
|
| 93 | ${userCommentExtract}
|
| 94 | </t:if> |
| 95 | </span> |
| 96 | </div> |
| 97 | </t:parameter> |
| 98 | |
| 99 | <t:parameter name="actionCell"> |
| 100 | <t:actionLink t:id="share" t:context="user.login" title="${message:components.userSearch.action.share.title}">
|
| 101 | <img src="${asset:context:images/icons/share-on.png}" alt="${message:global.button.share}"/>
|
| 102 | </t:actionLink> |
| 103 | <t:if test="userEditable"> |
| 104 | <t:actionLink t:id="edit" context="user.login" t:zone="userEditFormZone" |
| 105 | title="${message:components.userSearch.action.edit.title}">
|
| 106 | <img src="${asset:context:images/icons/edit.png}" alt="${message:global.button.edit}"
|
| 107 | onClick="userEditWindow.showCenter(true)" /> |
| 108 | </t:actionLink> |
| 109 | </t:if> |
| 110 | <t:if test="userDeletable"> |
| 111 | <t:actionLink t:id="delete" context="user.login" t:zone="zoneConfirmDelete" |
| 112 | title="${message:components.userSearch.action.delete.title}">
|
| 113 | <img src="${asset:context:images/icons/delete.png}" alt="${message:global.button.delete}"
|
| 114 | onClick="window_confirm.showCenter(true)" /> |
| 115 | </t:actionLink> |
| 116 | </t:if> |
| 117 | </t:parameter> |
| 118 | |
| 119 | <t:parameter name="selectedValueCell"> |
| 120 | <t:checkbox t:id="selected" onclick="countUserCheckbox();"/> |
| 121 | </t:parameter> |
| 122 | |
| 123 | </t:grid> |
| 124 | |
| 125 | <t:if test="users"> |
| 126 | <t:if test="users.empty" negate="true"> |
| 127 | <div id="actionListUser" style="display:none"> |
| 128 | <t:eventLink t:event="share" class="listDocument" title="${message:components.userSearch.action.share}">
|
| 129 | <img src="${asset:context:images/icons/share-on.png}" alt="" /> ${message:components.userSearch.action.share}</t:eventLink>
|
| 130 | </div> |
| 131 | </t:if> |
| 132 | </t:if> |
| 133 | |
| 134 | </t:form> |
| 135 | |
| 136 | </div><!-- id="list" --> |
| 137 | |
| 138 | |
| 139 | <!-- Popups --> |
| 140 | |
| 141 | <t:confirmPopup |
| 142 | t:messageLabel="${message:components.userSearch.action.delete.ask}"
|
| 143 | t:eventName="userDeleteEvent" /> |
| 144 | |
| 145 | <t:zone t:id="zoneConfirmDelete" /> |
| 146 | |
| 147 | <t:userDetailsDisplayer/> |
| 148 | |
| 149 | <div style="display:none"> |
| 150 | <t:zone t:id="userEditTemplateZone"> |
| 151 | <t:userEditForm users="users" editUserWithMail="selectedLogin"/> |
| 152 | </t:zone> |
| 153 | </div> |
| 154 | |
| 155 | <div t:id="userEditWindow"> |
| 156 | <t:zone id="userEditFormZone" update="show"/> |
| 157 | </div> |
| 158 | |
| 159 | </t:container> |