aboutsummaryrefslogtreecommitdiff
path: root/app/views/file/suggest_oer.php
blob: d5732a6bb2f6d1e38a410944a4f97163255c3b38 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<div id="file_suggest_oer">
    <form action='<?= $controller->url_for('file/suggest_oer/' . $file_ref_id)?>'
          class='default' method='POST' data-dialog="reload-on-close">
        <?= CSRFProtection::tokenTag() ?>
        <p class="suggestion_text"><?= _('Das Material gefällt Ihnen?') ?></p>
        <p class="suggestion_text"><?= sprintf(_('Schlagen Sie es zum Teilen im %s vor.'), Config::get()->OER_TITLE) ?></p>

        <p><?= _('Schreiben Sie der Autorin/dem Autoren:') ?></p>

        <label for="additional_text">

            <textarea   class = "add_toolbar wysiwyg"
                        name  = "additional_text"
                        id    = "additional_text"
                        rows  = "3"
                        placeholder = "<?= _("Warum gefällt Ihnen das Material?") ?>"
            ></textarea>
        </label>
        <p class="">
                <?= _("Eine Nachricht ist freiwillig. Ihr Vorschlag wird anonym versendet.") ?>
        </p>


        <div id="oer_file_details">

            <div id="preview_container" class="oercampus_editmaterial">
                <div class="hgroup">
                    <label for="oer_logo_uploader">
                        <article class="contentbox" title="">
                            <header>
                                <h1>
                                    <studip-icon shape="<?= $icon_shape ?>"
                                                 role="clickable"
                                                 size="20"
                                                 class="text-bottom">
                                    </studip-icon>
                                    <?= htmlReady($file->getFilename()) ?>
                                </h1>
                            </header>
                            <div id="oer_preview_image">
                                <?= Icon::create($icon_shape, Icon::ROLE_CLICKABLE, ['size' => 160]) ?>
                            </div>
                        </article>
                    </label>

                </div>
            </div>

            <aside id="oer_aside">
                <table class="default nohover">
                    <caption><?= htmlReady($file->getFilename()) ?></caption>
                    <tbody>
                        <tr>
                            <td><?= _('Größe') ?></td>
                            <? $size = $file->getSize() ?>
                            <td><?= $size !== null ? relSize($file->getSize(), false) : "-" ?></td>
                        </tr>
                        <tr>
                            <td><?= _('Downloads') ?></td>
                            <td><?= htmlReady($file->getDownloads()) ?></td>
                        </tr>
                        <tr>
                            <td><?= _('Erstellt') ?></td>
                            <td><?= date('d.m.Y H:i', $file->getMakeDate()) ?></td>
                        </tr>
                        <tr>
                            <td><?= _('Geändert') ?></td>
                            <td><?= date('d.m.Y H:i', $file->getLastChangeDate()) ?></td>
                        </tr>
                        <tr>
                            <td><?= _('Besitzer/-in') ?></td>
                            <td>
                                <? $user_id = $file->getUserId() ?>
                                <? if ($user_id) : ?>
                                    <a href="<?= URLHelper::getLink('dispatch.php/profile', ['username' => get_username($user_id)]) ?>">
                                        <?= htmlReady($file->getUserName()) ?>
                                    </a>
                                <? else : ?>
                                    <?= htmlReady($file->getUserName()) ?>
                                <? endif ?>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </aside>

        </div>
        <footer data-dialog-button>
            <?= Studip\Button::create(_("Teilen vorschlagen"))?>
        </footer>
    </form>
</div>