Improved ACLs editor window

Monotone-Parent: da6b5b0b22738692fb0aafb95b28a58d2a16855e
Monotone-Revision: 18e33d0c1964c0a62a8a43c69d2300477fb492b5

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-12-23T15:51:12
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2008-12-23 15:51:12 +00:00
parent e26d380fa2
commit 46ae8aa3d6
21 changed files with 107 additions and 58 deletions

View File

@ -2157,7 +2157,8 @@ static Class sogoAppointmentFolderKlass = Nil;
- (NSArray *) subscriptionRoles - (NSArray *) subscriptionRoles
{ {
return [NSArray arrayWithObjects: return [NSArray arrayWithObjects:
SOGoRole_ObjectCreator, SOGoRole_ObjectEraser, SOGoRole_ObjectCreator,
SOGoRole_ObjectEraser,
SOGoCalendarRole_PublicResponder, SOGoCalendarRole_PublicResponder,
SOGoCalendarRole_PublicModifier, SOGoCalendarRole_PublicModifier,
SOGoCalendarRole_PublicViewer, SOGoCalendarRole_PublicViewer,

View File

@ -577,7 +577,8 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID)
subject = [p getSubject]; subject = [p getSubject];
text = [p getBody]; text = [p getBody];
NSLog(@"Template: %@", pageName); NSLog(@"Template: %@", pageName);
NSLog(@"Email: %@ => %@ (%@)", senderEmail, recipient, subject); NSLog(@"Sender => Recipient: %@ => %@", senderEmail, recipient);
NSLog(@"Subject: %@", subject);
/* construct message */ /* construct message */
headerMap = [NGMutableHashMap hashMapWithCapacity: 5]; headerMap = [NGMutableHashMap hashMapWithCapacity: 5];

View File

@ -43,3 +43,5 @@
"You are not allowed to access this module or this system. Please contact your system administrator." "You are not allowed to access this module or this system. Please contact your system administrator."
= "You are not allowed to access this module or this system. Please contact your system administrator."; = "You are not allowed to access this module or this system. Please contact your system administrator.";
"You don't have the required privileges to perform the operation."
= "You don't have the required privileges to perform the operation.";

View File

@ -44,3 +44,5 @@
"You are not allowed to access this module or this system. Please contact your system administrator." "You are not allowed to access this module or this system. Please contact your system administrator."
= "You are not allowed to access this module or this system. Please contact your system administrator."; = "You are not allowed to access this module or this system. Please contact your system administrator.";
"You don't have the required privileges to perform the operation."
= "You don't have the required privileges to perform the operation.";

View File

@ -41,3 +41,5 @@
"You are not allowed to access this module or this system. Please contact your system administrator." "You are not allowed to access this module or this system. Please contact your system administrator."
= "Vous n'êtes pas autorisé à accéder à ce module ou ce système. Veuillez contacter votre administrateur système."; = "Vous n'êtes pas autorisé à accéder à ce module ou ce système. Veuillez contacter votre administrateur système.";
"You don't have the required privileges to perform the operation."
= "Vous n'avez pas les privilèges requis pour compléter l'opération.";

View File

@ -44,3 +44,5 @@
"You are not allowed to access this module or this system. Please contact your system administrator." "You are not allowed to access this module or this system. Please contact your system administrator."
= "You are not allowed to access this module or this system. Please contact your system administrator."; = "You are not allowed to access this module or this system. Please contact your system administrator.";
"You don't have the required privileges to perform the operation."
= "Sie haben nicht die benötigte Berechtigung für diesen Befehl.";

View File

@ -38,3 +38,5 @@
"You are not allowed to access this module or this system. Please contact your system administrator." "You are not allowed to access this module or this system. Please contact your system administrator."
= "You are not allowed to access this module or this system. Please contact your system administrator."; = "You are not allowed to access this module or this system. Please contact your system administrator.";
"You don't have the required privileges to perform the operation."
= "You don't have the required privileges to perform the operation.";

View File

@ -48,3 +48,5 @@
"You are not allowed to access this module or this system. Please contact your system administrator." "You are not allowed to access this module or this system. Please contact your system administrator."
= "You are not allowed to access this module or this system. Please contact your system administrator."; = "You are not allowed to access this module or this system. Please contact your system administrator.";
"You don't have the required privileges to perform the operation."
= "You don't have the required privileges to perform the operation.";

View File

@ -116,8 +116,6 @@
"Are you sure you want to delete the selected contacts?" "Are you sure you want to delete the selected contacts?"
= "Are you sure you want to delete the selected contacts?"; = "Are you sure you want to delete the selected contacts?";
"You don't have the required privileges to perform the operation."
= "You don't have the required privileges to perform the operation.";
"You cannot delete the card of \"%{0}\"." "You cannot delete the card of \"%{0}\"."
= "You cannot delete the card of \"%{0}\"."; = "You cannot delete the card of \"%{0}\".";

View File

@ -129,8 +129,6 @@
"Are you sure you want to delete the selected contacts?" "Are you sure you want to delete the selected contacts?"
= "Voulez-vous vraiment supprimer les contacts sélectionnés ?"; = "Voulez-vous vraiment supprimer les contacts sélectionnés ?";
"You don't have the required privileges to perform the operation."
= "Vous n'avez pas les privilèges requis pour compléter l'opération.";
"You cannot delete the card of \"%{0}\"." "You cannot delete the card of \"%{0}\"."
= "Vous ne pouvez pas supprimer la fiche de \"%{0}\"."; = "Vous ne pouvez pas supprimer la fiche de \"%{0}\".";

View File

@ -128,8 +128,6 @@
"Are you sure you want to delete the selected contacts?" "Are you sure you want to delete the selected contacts?"
= "Wollen Sie wirklich die ausgewählte Karten löschen?"; = "Wollen Sie wirklich die ausgewählte Karten löschen?";
"You don't have the required privileges to perform the operation."
= "Sie haben nicht die benötigte Berechtigung für diesen Befehl.";
"You cannot delete the selected contact(s)" "You cannot delete the selected contact(s)"
= "Ausgewählte Karten können nicht gelöscht werden."; = "Ausgewählte Karten können nicht gelöscht werden.";
"You cannot delete the card of \"%{0}\"." "You cannot delete the card of \"%{0}\"."

View File

@ -96,16 +96,26 @@
"Forbidden" = "Toegang geweigerd"; "Forbidden" = "Toegang geweigerd";
/* acls */ /* acls */
"Default Roles" = "Standaardmachtigingen"; "Default Roles" = "Standaardmachtigingen";
"User rights for:" = "Machtigingen voor:"; "User rights for:" = "Machtigingen voor:";
"label_Public" = "Publiek"; "label_Public" = "Publiek";
"label_Private" = "Privé"; "label_Private" = "Privé";
"label_Confidential" = "Vertrouwelijk"; "label_Confidential" = "Vertrouwelijk";
"label_Viewer" = "Alles inzien";
"label_DAndTViewer" = "Alleen Datum & tijd inzien";
"label_Modifier" = "Aanpassen";
"label_Responder" = "Reageren op";
"label_None" = "Geen toegang";
"View All" = "Alles inzien"; "View All" = "Alles inzien";
"View the Date & Time" = "Alleen Datum & tijd inzien"; "View the Date & Time" = "Alleen Datum & tijd inzien";
"Modify" = "Aanpassen"; "Modify" = "Aanpassen";
"Respond To" = "Reageren op"; "Respond To" = "Reageren op";
"None" = "Geen toegang"; "None" = "Geen toegang";
"This person can create objects in my calendar." "This person can create objects in my calendar."
= "Deze persoon mag afspraken in mijn agenda plaatsen."; = "Deze persoon mag afspraken in mijn agenda plaatsen.";
"This person can erase objects from my calendar." "This person can erase objects from my calendar."

View File

@ -110,16 +110,26 @@
"Forbidden" = "Forbidden"; "Forbidden" = "Forbidden";
/* acls */ /* acls */
"Default Roles" = "Default Roles"; "Default Roles" = "Default Roles";
"User rights for:" = "User rights for:"; "User rights for:" = "User rights for:";
"label_Public" = "Public"; "label_Public" = "Public";
"label_Private" = "Private"; "label_Private" = "Private";
"label_Confidential" = "Confidential"; "label_Confidential" = "Confidential";
"label_Viewer" = "View All";
"label_DAndTViewer" = "View the Date & Time";
"label_Modifier" = "Modify";
"label_Responder" = "Respond To";
"label_None" = "None";
"View All" = "View All"; "View All" = "View All";
"View the Date & Time" = "View the Date & Time"; "View the Date & Time" = "View the Date & Time";
"Modify" = "Modify"; "Modify" = "Modify";
"Respond To" = "Respond To"; "Respond To" = "Respond To";
"None" = "None"; "None" = "None";
"This person can create objects in my calendar." "This person can create objects in my calendar."
= "This person can create objects in my calendar."; = "This person can create objects in my calendar.";
"This person can erase objects from my calendar." "This person can erase objects from my calendar."

View File

@ -111,16 +111,26 @@
"Forbidden" = "Accès non autorisée"; "Forbidden" = "Accès non autorisée";
/* acls */ /* acls */
"Default Roles" = "Rôles par défaut"; "Default Roles" = "Rôles par défaut";
"User rights for:" = "Autorisations pour :"; "User rights for:" = "Autorisations pour :";
"label_Public" = "Public";
"label_Public" = "Voir tout";
"label_Private" = "Privé"; "label_Private" = "Privé";
"label_Confidential" = "Confidentiel"; "label_Confidential" = "Confidentiel";
"label_Viewer" = "Voir tout";
"label_DAndTViewer" = "Voir la date & l'heure";
"label_Modifier" = "Modifier";
"label_Responder" = "Répondre";
"label_None" = "Aucun";
"View All" = "Voir tout"; "View All" = "Voir tout";
"View the Date & Time" = "Voir la date & l'heure"; "View the Date & Time" = "Voir la date & l'heure";
"Modify" = "Modifier"; "Modify" = "Modifier";
"Respond To" = "Répondre"; "Respond To" = "Répondre";
"None" = "Aucun"; "None" = "Aucun";
"This person can create objects in my calendar." "This person can create objects in my calendar."
= "Cette personne peut ajouter des objets à mon agenda."; = "Cette personne peut ajouter des objets à mon agenda.";
"This person can erase objects from my calendar." "This person can erase objects from my calendar."

View File

@ -110,16 +110,26 @@
"Forbidden" = "Zugriff verboten"; "Forbidden" = "Zugriff verboten";
/* acls */ /* acls */
"Default Roles" = "Standard-Rollen"; "Default Roles" = "Standard-Rollen";
"User rights for:" = "Benutzerrechte für:"; "User rights for:" = "Benutzerrechte für:";
"label_Public" = "Öffentlich"; "label_Public" = "Öffentlich";
"label_Private" = "Privat"; "label_Private" = "Privat";
"label_Confidential" = "Vertraulich"; "label_Confidential" = "Vertraulich";
"label_Viewer" = "Alles sehen";
"label_DAndTViewer" = "Datum & Uhrzeit sehen";
"label_Modifier" = "Ändern";
"label_Responder" = "Antworten";
"label_None" = "Keine";
"View All" = "Alles sehen"; "View All" = "Alles sehen";
"View the Date & Time" = "Datum & Uhrzeit sehen"; "View the Date & Time" = "Datum & Uhrzeit sehen";
"Modify" = "Ändern"; "Modify" = "Ändern";
"Respond To" = "Antworten"; "Respond To" = "Antworten";
"None" = "Keine"; "None" = "Keine";
"This person can create objects in my calendar." "This person can create objects in my calendar."
= "Diese Person kann Termine in meinem Kalender hinzufügen."; = "Diese Person kann Termine in meinem Kalender hinzufügen.";
"This person can erase objects from my calendar." "This person can erase objects from my calendar."

View File

@ -110,16 +110,26 @@
"Forbidden" = "Vietato"; "Forbidden" = "Vietato";
/* acls */ /* acls */
"Default Roles" = "Permessi predefiniti"; "Default Roles" = "Permessi predefiniti";
"User rights for:" = "Permessi per:"; "User rights for:" = "Permessi per:";
"label_Public" = "Pubblico"; "label_Public" = "Pubblico";
"label_Private" = "Privato"; "label_Private" = "Privato";
"label_Confidential" = "Confidenziale"; "label_Confidential" = "Confidenziale";
"label_Viewer" = "Tutto";
"label_DAndTViewer" = "Data e ora";
"label_Modifier" = "Modifica";
"label_Responder" = "Rispondi a";
"label_None" = "Nessuno";
"View All" = "Tutto"; "View All" = "Tutto";
"View the Date & Time" = "Data e ora"; "View the Date & Time" = "Data e ora";
"Modify" = "Modifica"; "Modify" = "Modifica";
"Respond To" = "Rispondi a"; "Respond To" = "Rispondi a";
"None" = "Nessuno"; "None" = "Nessuno";
"This person can create objects in my calendar." = "Questa persona può inserire elementi nel mio calendario."; "This person can create objects in my calendar." = "Questa persona può inserire elementi nel mio calendario.";
"This person can erase objects from my calendar." = "Questa persona può rimuovere elementi dal mio calendario."; "This person can erase objects from my calendar." = "Questa persona può rimuovere elementi dal mio calendario.";

View File

@ -114,16 +114,26 @@
"Forbidden" = "Prohibido"; "Forbidden" = "Prohibido";
/* acls */ /* acls */
"Default Roles" = "Roles por defecto"; "Default Roles" = "Roles por defecto";
"User rights for:" = "Permisos para:"; "User rights for:" = "Permisos para:";
"label_Public" = "Público"; "label_Public" = "Público";
"label_Private" = "Privado"; "label_Private" = "Privado";
"label_Confidential" = "Confidencial"; "label_Confidential" = "Confidencial";
"label_Viewer" = "Ver todo";
"label_DAndTViewer" = "Ver fecha y hora";
"label_Modifier" = "Modificar";
"label_Responder" = "Responder a";
"label_None" = "Ninguno";
"View All" = "Ver todo"; "View All" = "Ver todo";
"View the Date & Time" = "Ver fecha y hora"; "View the Date & Time" = "Ver fecha y hora";
"Modify" = "Modificar"; "Modify" = "Modificar";
"Respond To" = "Responder a"; "Respond To" = "Responder a";
"None" = "Ninguno"; "None" = "Ninguno";
"This person can create objects in my calendar." "This person can create objects in my calendar."
= "Esta persona puede crear elementos en mi calendario."; = "Esta persona puede crear elementos en mi calendario.";
"This person can erase objects from my calendar." "This person can erase objects from my calendar."

View File

@ -167,6 +167,12 @@
return currentRightType; return currentRightType;
} }
- (NSString *) currentRightLabel
{
return [self labelForKey:
[NSString stringWithFormat: @"label_%@", currentRight]];
}
- (NSString *) currentRightTypeLabel - (NSString *) currentRightTypeLabel
{ {
return [self labelForKey: return [self labelForKey:

View File

@ -22,27 +22,15 @@
/></span></label></var:if> /></span></label></var:if>
</div> </div>
<div class="calendarUserRights"> <div class="calendarUserRights">
<table> <var:foreach list="rightTypes" item="currentRightType">
<tr class="permissions"> <span><var:string value="currentRightTypeLabel"/></span>
<th class="eventType"><!-- space --></th> <var:popup list="objectRights" item="currentRight"
<th><var:string label:value="View All"/></th> var:name="currentRightTypeName"
<th><var:string label:value="View the Date &amp; Time"/></th> var:value="currentRight"
<th><var:string label:value="Modify"/></th> string="currentRightLabel"
<th><var:string label:value="Respond To"/></th> selection="currentRightSelection"
<th><var:string label:value="None"/></th> />
</tr </var:foreach>
><var:foreach list="rightTypes" item="currentRightType">
<tr>
<td class="eventType"><var:string
value="currentRightTypeLabel"/></td
><var:foreach list="objectRights" item="currentRight">
<td><input type="radio"
var:name="currentRightTypeName"
var:value="currentRight"
var:selection="currentRightSelection"/></td
></var:foreach>
</tr></var:foreach>
</table>
</div> </div>
<div class="basicUserRights"> <div class="basicUserRights">
<label><input type="checkbox" class="checkBox" <label><input type="checkbox" class="checkBox"
@ -56,10 +44,10 @@
label:value="This person can erase objects from my calendar."/></label> label:value="This person can erase objects from my calendar."/></label>
</div> </div>
<div class="buttons"> <div class="buttons">
<input const:name="updateButton" id="updateButton"
class="button" type="submit" label:value="Update"/>
<input const:name="cancelButton" id="cancelButton" <input const:name="cancelButton" id="cancelButton"
class="button" type="button" label:value="Cancel"/> class="button" type="button" label:value="Cancel"/>
<input const:name="updateButton" id="updateButton"
class="button" type="submit" label:value="Update"/>
</div> </div>
</form> </form>
</var:component> </var:component>

View File

@ -19,7 +19,7 @@ var contactSelectorAction = 'calendars-contacts';
var eventsToDelete = []; var eventsToDelete = [];
var calendarsOfEventsToDelete = []; var calendarsOfEventsToDelete = [];
var usersRightsWindowHeight = 250; var usersRightsWindowHeight = 215;
var usersRightsWindowWidth = 502; var usersRightsWindowWidth = 502;
var calendarEvents = null; var calendarEvents = null;
@ -282,8 +282,10 @@ function deleteEventCallback(http) {
document.deleteEventAjaxRequest = null; document.deleteEventAjaxRequest = null;
} }
} }
else else if (parseInt(http.status) == 403)
log ("deleteEventCallback Ajax error"); window.alert(clabels["You don't have the required privileges to perform the operation."]);
else
log ("deleteEventCallback Ajax error (" + http.status + ")");
} }
} }

View File

@ -13,30 +13,15 @@ DIV.title SPAN.value
font-weight: bold; } font-weight: bold; }
DIV.calendarUserRights DIV.calendarUserRights
{ margin: 1em;} { margin: 1em; }
DIV.calendarUserRights > TABLE DIV.calendarUserRights SPAN
{ background-color: #fff; { float: left;
width: 480px; clear: right;
color: #999; line-height: 2em;
border-collapse: collapse; margin-right: 1em;
border: 1px solid #222; } text-align: right;
width: 200px; }
DIV.calendarUserRights > TABLE TR.permissions TH
{ color: #00f;
/* background-color: #ddd;
*/ border-bottom: 1px solid #999; }
DIV.calendarUserRights > TABLE TH
{ width: 70px; }
DIV.calendarUserRights > TABLE TD.eventType
{ text-align: right;
border-right: 1px solid #999; }
DIV.calendarUserRights > TABLE TD
{ text-align: center;
border-top: 1px solid #cecbff; }
DIV.buttons DIV.buttons
{ text-align: right; { text-align: right;