Merge pull request #5828 from christianbeeznest/matra-22055
Session: Add student boss notification on user inscription and new session checkbox field - refs BT#22055pull/5846/head
commit
28a07b5416
@ -0,0 +1,34 @@ |
||||
<?php |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
namespace Chamilo\CoreBundle\Migrations\Schema\V200; |
||||
|
||||
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo; |
||||
use Doctrine\DBAL\Schema\Schema; |
||||
|
||||
final class Version20240927141000 extends AbstractMigrationChamilo |
||||
{ |
||||
public function getDescription(): string |
||||
{ |
||||
return 'Add notify_boss field to session table'; |
||||
} |
||||
|
||||
public function up(Schema $schema): void |
||||
{ |
||||
$this->addSql(" |
||||
ALTER TABLE session |
||||
ADD notify_boss TINYINT(1) DEFAULT 0 NOT NULL |
||||
"); |
||||
} |
||||
|
||||
public function down(Schema $schema): void |
||||
{ |
||||
$this->addSql(" |
||||
ALTER TABLE session |
||||
DROP COLUMN notify_boss |
||||
"); |
||||
} |
||||
} |
@ -0,0 +1,5 @@ |
||||
<p>{{ 'Dear'|trans({}, 'messages', locale) }} {{ boss_name }},</p> |
||||
<p>{{ 'We would like to inform you that your student, '|trans({}, 'messages', locale) }} {{ student_name }}, {{ 'has been registered to the session'|trans({}, 'messages', locale) }} {{ session_name }}.</p> |
||||
<p>{{ 'You can check the session details in the platform.'|trans({}, 'messages', locale) }}</p> |
||||
<p>{{ 'Best regards,'|trans({}, 'messages', locale) }}</p> |
||||
{% include '@ChamiloCore/Mailer/Legacy/_admin_signature_footer.html.twig' %} |
@ -0,0 +1 @@ |
||||
[ {{ 'platform.site_name' | api_get_setting }} ] {{ 'New student registration'|trans({}, 'messages', locale) }} |
Loading…
Reference in new issue