From 82859a5a667fd6de5c6143d1d50666e841323991 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 24 Apr 2007 22:34:04 +0000 Subject: [PATCH] Monotone-Parent: 2d4d28c2707f8354d18f72b73ca8f02e475d3cfb Monotone-Revision: a4c9cd2589743e62f753935bba32b3bcc889f831 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-24T22:34:04 Monotone-Branch: ca.inverse.sogo --- .../English.lproj/Localizable.strings | 16 ++++- UI/Scheduler/French.lproj/Localizable.strings | 17 +++++- .../SchedulerUI/UIxCalUserRightsEditor.wox | 60 +++++++++++++++++++ UI/WebServerResources/UIxAclEditor.js | 11 +++- .../UIxCalUserRightsEditor.css | 49 +++++++++++++++ .../UIxCalUserRightsEditor.js | 9 +++ 6 files changed, 156 insertions(+), 6 deletions(-) create mode 100644 UI/Templates/SchedulerUI/UIxCalUserRightsEditor.wox create mode 100644 UI/WebServerResources/UIxCalUserRightsEditor.css create mode 100644 UI/WebServerResources/UIxCalUserRightsEditor.js diff --git a/UI/Scheduler/English.lproj/Localizable.strings b/UI/Scheduler/English.lproj/Localizable.strings index bf4f1a7f6..7a5b33193 100644 --- a/UI/Scheduler/English.lproj/Localizable.strings +++ b/UI/Scheduler/English.lproj/Localizable.strings @@ -62,7 +62,6 @@ "this year" = "this year"; - /* Menu */ "Calendars" = "Calendars"; @@ -82,6 +81,20 @@ "OpenGroupware.org" = "OpenGroupware.org"; "Forbidden" = "Forbidden"; +/* acls */ +"User rights for:" = "User rights for:"; +"label_Public" = "Public"; +"label_Private" = "Private"; +"label_Confidential" = "Confidential"; +"View All" = "View All"; +"View the Date & Time" = "View the Date & Time"; +"Modify" = "Modify"; +"Respond To" = "Respond To"; +"None" = "None"; +"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." /* Button Titles */ @@ -97,6 +110,7 @@ "Close" = "Close"; "Invite Attendees" = "Invite Attendees"; "Documents" = "Documents"; +"Update" = "Update"; "Cancel" = "Cancel"; "show_rejected_apts" = "Show rejected appointments"; "hide_rejected_apts" = "Hide rejected appointments"; diff --git a/UI/Scheduler/French.lproj/Localizable.strings b/UI/Scheduler/French.lproj/Localizable.strings index c8b343ac0..8f1545f7a 100644 --- a/UI/Scheduler/French.lproj/Localizable.strings +++ b/UI/Scheduler/French.lproj/Localizable.strings @@ -82,6 +82,20 @@ "OpenGroupware.org" = "OpenGroupware.org"; "Forbidden" = "Accès non autorisée"; +/* acls */ +"User rights for:" = "Autorisations pour :"; +"label_Public" = "Public"; +"label_Private" = "Privé"; +"label_Confidential" = "Confidentiel"; +"View All" = "Voir tout"; +"View the Date & Time" = "Voir la date & l'heure"; +"Modify" = "Modifier"; +"Respond To" = "Répondre"; +"None" = "Aucun"; +"This person can create objects in my calendar." += "Cette personne peut ajouter des objets à mon agenda."; +"This person can erase objects from my calendar." += "Cette personne peut effacer des objets de mon agenda."; /* Button Titles */ @@ -97,12 +111,12 @@ "Close" = "Fermer"; "Invite Attendees" = "Participants"; "Documents" = "Documents"; +"Update" = "Mettre à jour"; "Cancel" = "Annuler"; "show_rejected_apts" = "Afficher les rendez-vous refusés"; "hide_rejected_apts" = "Cacher les rendez-vous refusés"; /* Schedule */ - "Schedule" = "Suivi de rendez-vous"; "No appointments found" = "Aucun rendez-vous"; "Meetings proposed by you" = "Rendez-vous que vous proposez"; @@ -115,7 +129,6 @@ "Hide already accepted and rejected appointments" = "Cacher les invitations refusées"; "Show already accepted and rejected appointments" = "Montrer aussi les invitations refusées"; - /* Appointments */ "Appointment viewer" = "Visualisation de rendez-vous"; diff --git a/UI/Templates/SchedulerUI/UIxCalUserRightsEditor.wox b/UI/Templates/SchedulerUI/UIxCalUserRightsEditor.wox new file mode 100644 index 000000000..14ba7d5bd --- /dev/null +++ b/UI/Templates/SchedulerUI/UIxCalUserRightsEditor.wox @@ -0,0 +1,60 @@ + + + +
+ +
+ +
+
+ + + + + + + + + + + + + +
+
+
+ +
+ +
+
+ + +
+
+
diff --git a/UI/WebServerResources/UIxAclEditor.js b/UI/WebServerResources/UIxAclEditor.js index 74f2d0e0a..777e4a75d 100644 --- a/UI/WebServerResources/UIxAclEditor.js +++ b/UI/WebServerResources/UIxAclEditor.js @@ -70,15 +70,20 @@ function openRightsForUser(button) { var elements = url.split("/"); elements[elements.length-1] = ("userRights?uid=" + nodes[0].getAttribute("id")); - window.open(elements.join("/")); + + + + window.open(elements.join("/"), "", + "width=502,height=250,resizable=0,scrollbars=0,toolbar=0," + + "location=0,directories=0,status=0,menubar=0,copyhistory=0"); } return false; } function onOpenUserRights(event) { - window.alert("user: " + this.getAttribute("id")); - event.preventDefault(); + openRightsForUser(); + event.preventDefault(); } function onAclLoadHandler() { diff --git a/UI/WebServerResources/UIxCalUserRightsEditor.css b/UI/WebServerResources/UIxCalUserRightsEditor.css new file mode 100644 index 000000000..783e47a64 --- /dev/null +++ b/UI/WebServerResources/UIxCalUserRightsEditor.css @@ -0,0 +1,49 @@ +DIV.title +{ color: #000; + vertical-align: bottom; + padding-top: 15px; + padding-left: 1em; + height: 33px; + background-color: #fff; + border-bottom: 1px solid #555; } + +DIV.title SPAN.value +{ margin-left: 1em; + font-size: 18px; + font-weight: bold; } + +DIV.calendarUserRights +{ margin: 1em;} + +DIV.calendarUserRights > TABLE +{ background-color: #fff; + width: 45em; + color: #999; + border-collapse: collapse; + border-bottom: 1px solid #fff; + border-right: 1px solid #fff; + border-top: 2px solid #222; + border-left: 2px solid #222; + -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow transparent; + -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow transparent; } + +DIV.calendarUserRights > TABLE TR.permissions TH +{ color: #00f; +/* background-color: #ddd; + */ border-bottom: 1px solid #999; } + +DIV.calendarUserRights > TABLE TH +{ width: 15em; } + +DIV.calendarUserRights > TABLE TD.eventType +{ width: 5em; + text-align: right; + border-right: 1px solid #999; } + +DIV.calendarUserRights > TABLE TD +{ text-align: center; + border-top: 1px solid #cecbff; } + +DIV.buttons +{ text-align: right; + margin: 1em; } diff --git a/UI/WebServerResources/UIxCalUserRightsEditor.js b/UI/WebServerResources/UIxCalUserRightsEditor.js new file mode 100644 index 000000000..71fe311f7 --- /dev/null +++ b/UI/WebServerResources/UIxCalUserRightsEditor.js @@ -0,0 +1,9 @@ +function onCancelClick(event) { + window.close(); +} + +function initACLButtons() { + $("cancelButton").addEventListener("click", onCancelClick, false); +} + +window.addEventListener("load", initACLButtons, false);