Skip to content

Commit

Permalink
feat(notificationtargetformanswer): label tags
Browse files Browse the repository at this point in the history
close #1023
  • Loading branch information
btry committed Apr 14, 2023
1 parent 9dd9777 commit f1dc000
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions inc/notificationtargetformanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ public function addDataForTemplate($event, $options = []) {
$this->data['##formcreator.validation_link##'] = $link;
$this->data['##formcreator.request_id##'] = $this->obj->fields['id'];

$this->data['##lang.formcreator.form_id##'] = __('Form ID', 'formcreator');
$this->data['##lang.formcreator.form_name##'] = __('Form name', 'formcreator');
$this->data['##lang.formcreator.form_requester##'] = __('Requester', 'formcreator');
$this->data['##lang.formcreator.form_validator##'] = __('Validator', 'formcreator');
$this->data['##lang.formcreator.form_creation_date##'] = __('Creation date', 'formcreator');
$this->data['##lang.formcreator.form_full_answers##'] = __('Full form answers', 'formcreator');
$this->data['##lang.formcreator.validation_comment##'] = __('Validation comment', 'formcreator');
$this->data['##lang.formcreator.validation_link##'] = __('Validation link', 'formcreator');
$this->data['##lang.formcreator.request_id##'] = __('Request ID', 'formcreator');

$this->getTags();
foreach ($this->tag_descriptions[NotificationTarget::TAG_LANGUAGE] as $tag => $values) {
if (!isset($this->data[$tag])) {
Expand Down

0 comments on commit f1dc000

Please sign in to comment.