aboutsummaryrefslogtreecommitdiff
path: root/app/views/lti/tool/edit.php
blob: 74f40c3ca4a38b982c0c522929c56c06c38e9321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?
/**
 * @var AuthenticatedController $controller
 * @var string $range_id
 * @var LtiTool $tool
 * @var ?\LtiResourceLink $link
 */
?>
<? if ($tool) : ?>
    <form class="default" method="post" data-dialog="reload-on-close"
          action="<?= $controller->link_for('lti/tool/edit/' . $range_id . '/' . $tool->id, ['link_id' => $link->id ?? '']) ?>">
        <?= CSRFProtection::tokenTag() ?>
        <?= $this->render_partial('lti/_tool_form_fields', [
            'tool'       => $tool,
            'deployment' => $link ?? null,
        ]) ?>
    </form>
<? endif ?>