Project

General

Profile

Feature #7498

Add possibility to send mail to parents

Added by Yannick Warnier over 4 years ago. Updated about 4 years ago.

Status:
Feature implemented
Priority:
High
Assignee:
Category:
Announcements
Target version:
Start date:
31/01/2015
Due date:
% Done:

100%

Estimated time:
1.00 h
Complexity:
Normal
SCRUM pts - complexity:
?

Description

The Human Resources Director is sometimes used as a role of parent in schools.

However, there are a series of missing features for them.

For example, it should be possible for teachers, when sending an announcement to students, to see the list of HRDs that are attached to the students and decide to send them an e-mail to.

For example, let's say we send a new announcement in a course with students A, B and C.
Let's say that each student has a parent in the system. Let's call these parents PA, PB, PC, respectively.

Currently, the list of students appears like this (in the left box):

  • A
  • B
  • C

It should be possible for the teacher to see the list of students like this:

  • A
  • B
  • C
  • PA (A)
  • PB (B)
  • PC (C)

The message (e-mail) should be updated so the name in ((username)), ((user_firstname)) and ((user_lastname)) is actually the name of the student, NOT the name of the HRD. The first line of the message should say:
$CopyOfOriginalMessage = "The following message is a copy of the original message sent to %s";
(where %s is the e-mail of the student, not the HRD).

Second, in the tasks/assignments tool, when giving a score to a work, and only if the student has a DRH assigned, there should be a checkbox saying:
$SendToHR = "Send e-mail notification to parent/HR";

The mail should be similar to the one sent to the student with the same $CopyOfOriginalMessage on top.

Associated revisions

Revision 24b02e6d (diff)
Added by Julio Montoya about 4 years ago

Send copy of email to drh users see #7498

Revision 888f6242 (diff)
Added by Julio Montoya about 4 years ago

Add option to send an email with a copy to all drh users related to the recipient. See #7498

Revision c4efdc5c (diff)
Added by Yannick Warnier about 4 years ago

Improve language terms - refs #7498

History

#1

Updated by Julio Montoya over 4 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier

We could use the spaces to separate the name like this:

Fiona and Aimee are students.

Fiona Apple 
    Alan Garcia (HR)
    Sandra Vargas (HR)
Aimee Mann
    Alan Garcia (HR)
    Sandra Vargas (HR)

So the order of the list will depend of the students...

The problem will be what we should put "HR" "Parent"? what's the difference between those?

#2

Updated by Yannick Warnier over 4 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Yannick Warnier to Julio Montoya

The only difference between parents and HR is the context: in an academical portal for students under 18 years old, it's "parents", and it's HR in all other cases. The "Parent" term is given through a change in a sublanguage, so as long as there is a language term for that, we should be alright.

This is a particular case, and we should find a way to express a language term that is a "modifier", that we can then translate in the sublanguage tool.
For example: $HRTag = "% (HR manager)"; where "%s" is the name of the student.

#3

Updated by Julio Montoya over 4 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier

I did some tests and the list I proposed and the one you proposed are hard to maintain, because this users are not related to the course.

What about just adding a checkbox saying "(x) Warn parents of selected users ".

#4

Updated by Yannick Warnier over 4 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Yannick Warnier to Julio Montoya

Good idea (the checkbox). Define a new language term using "HR manager" for "Parents", as this is the default term (it has to be updated to "parents" on each portal through sublanguages).

#5

Updated by Yannick Warnier about 4 years ago

  • % Done changed from 0 to 10

I have defined the language variable: $SendAnnouncementCopyToDRH in translate.chamilo.org.

#6

Updated by Yannick Warnier about 4 years ago

  • Priority changed from Normal to High
  • % Done changed from 10 to 30
#7

Updated by Julio Montoya about 4 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

I just added both options. For the "works" tool I have to add a new option "SendEmail" because by default no email were sent when grading a user.

https://github.com/chamilo/chamilo-lms/commit/888f6242f10454442e5e28b2b6d08baac2d84afd

#8

Updated by Yannick Warnier about 4 years ago

  • Status changed from Assigned to Feature implemented
  • Assignee changed from Yannick Warnier to Julio Montoya
  • % Done changed from 30 to 100

I haven't tested the e-mail sending itself, but this can be tested in the beta. Great job on adding these features!

Also available in: Atom PDF