open20 / amos-invitations
System to invite persons to platform
Installs: 59
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:component
Requires
- php: >=5.4.0
- open20/amos-admin: ^2.3.2
- open20/amos-core: ^1.23.0
- open20/amos-dashboard: ^1.9.0
- open20/amos-notify: ^1.4.24
- phpoffice/phpexcel: ^1.8
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-23 15:22:36 UTC
README
#Amos Invitations
System to invite external people to platform
Installation
1. The preferred way to install this extension is through composer.
Either run
composer require open20/amos-invitations
or add this row
"open20/amos-invitations": "dev-master"
to the require section of your composer.json
file.
2. Add module to your main config in backend:
'modules' => [ 'invitations' => [ 'class' => 'open20\amos\invitations\Module', ], ],
3. Apply migrations
php yii migrate/up --migrationPath=@vendor/open20/amos-invitations/src/migrations
or add this row to your migrations config in console:
return [ '@vendor/open20/amos-invitations/src/migrations', ];
Widgets
#Invite user Widget InviteUserWidget draws a button that open a modal cointaining the user invitation form. The widget can be used also in another model form, splitting the button and the modal form parts (to avoid form cointaining another form).
example in a view :
<?= InviteUserWidget::widget([]) ?>
example in a form:
<?php ActiveForm::begin() ?>
<?= InviteUserWidget::widget(['layout' => '{invitationBtn}' ]) ?>
<?php ActiveForm::end(); ?>
<?= InviteUserWidget::widget(['layout' => '{invitationModalForm}' ]) ?>
Module configuration params
-
subjectPlaceholder - string, default = '#subject-invite' String used for placeholder which translates mail subject.
-
subjectCategory - string, default = 'amosinvitations' String used for linking a translation category to the mail subject.