blob: ff3af838504e4ef3ea625c7c974534e9330bb34d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<?php
/**
* @var AuthenticatedController $controller
* @var LtiResourceLink $resource_link
* @var LtiToolPrivacySettings $privacy_settings
*/
?>
<? if ($resource_link) : ?>
<form class="default" method="post" <?= $privacy_settings->isNew() ? 'data-dialog="reload-on-close"' : 'data-dialog' ?>
action="<?= $controller->link_for('course/lti/consent/' . $resource_link->id) ?>">
<?= CSRFProtection::tokenTag() ?>
<?
$data_protection_warning = CourseConfig::get(Context::getId())->LTI_DATA_PROTECTION_COURSE_WARNING;
if (empty($data_protection_warning)) {
$data_protection_warning = Config::get()->LTI_DATA_PROTECTION_DEFAULT_WARNING;
}
?>
<fieldset>
<legend><?= _('Datenschutzhinweise') ?></legend>
<section>
<p><?= htmlReady($data_protection_warning) ?></p>
<? if ($resource_link->deployment->tool->data_protection_notes) : ?>
<p><?= formatReady($resource_link->deployment->tool->data_protection_notes) ?></p>
<? endif ?>
</section>
</fieldset>
<fieldset>
<?
$optional_field_list = explode(',', $privacy_settings->allowed_optional_fields ?? '');
?>
<legend><?= _('Die folgenden Daten werden übertragen') ?></legend>
<?= _('Beim Wechsel in das LTI-Tool werden die folgenden personenbezogenen Daten übertragen:') ?>
<label>
<input type="checkbox" checked disabled>
<?= _('Die ID ihres Stud.IP-Kontos') ?>
</label>
<label>
<input type="checkbox" checked disabled>
<?= _('Ihr Vor- und Nachname, sowie gegebenenfalls vorhandene Titel') ?>
</label>
<label>
<input type="checkbox" checked disabled>
<?= _('Ihre E-Mail Adresse') ?>
</label>
<label>
<input type="checkbox" name="submit_optional_field[lang]" value="1"
<?= in_array('lang', $optional_field_list) ? 'checked' : '' ?>>
<?= _('Ihre in Stud.IP eingestellte Sprache') ?>
</label>
<label>
<input type="checkbox" name="submit_optional_field[avatar_url]" value="1"
<?= in_array('avatar_url', $optional_field_list) ? 'checked' : '' ?>>
<?= _('Ihr Profilbild') ?>
</label>
</fieldset>
<?= $this->render_partial('lti/_link_user_info', ['link' => $resource_link]) ?>
<fieldset>
<legend><?= _('Bestätigung') ?></legend>
<label>
<input type="checkbox" name="confirmed" value="1" required>
<?= _(
'Ich habe die Datenschutzhinweise zur Benutzung des LTI-Tools zur Kenntnis genommen und stimme der Weitergabe meiner personenbezogenen Daten zu. '
. 'Mir ist bewusst, dass ich ohne die Zustimmung das LTI-Tool nicht nutzen kann.'
) ?>
</label>
<div data-dialog-button>
<?= \Studip\Button::createAccept(_('Speichern'), 'save') ?>
<?= \Studip\Button::createCancel(_('Abbrechen')) ?>
</div>
</fieldset>
</form>
<? endif ?>
|