blob: 78e901832d1d8340e2c5cccc5e684176cc0fc84c (
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
|
<div id="file_suggest_oer">
<form action="<?= $controller->link_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"><?= _('Schlagen Sie es zum Teilen im OER Campus vor.') ?></p>
<p><?= _('Schreiben Sie der Autorin/dem Autoren:') ?></p>
<label for="additional_text">
<textarea class = "wysiwyg"
name = "additional_text"
id = "additional_text"
rows = "3"
placeholder = "<?= _('Warum gefällt Ihnen das Material?') ?>"
></textarea>
</label>
<p id="note">
<?= _('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 ?>"
class="text-bottom">
</studip-icon>
<div id="oer_title">
<?= htmlReady(strlen($file->getFilename()) > 45 ? substr($file->getFilename(), 0, 45) . '...' : $file->getFilename()) ?>
</div>
</h1>
</header>
<div id="oer_preview_image">
<?= Icon::create($icon_shape)->asImg(160) ?>
</div>
</article>
</label>
</div>
</div>
<aside id="oer_aside">
<table class="default nohover">
<caption><?= _('Informationen') ?></caption>
<tbody>
<tr>
<td><?= _('Größe') ?></td>
<? $size = $file->getSize() ?>
<td><?= $size !== null ? relSize($file->getSize(), false) : '-' ?></td>
</tr>
<tr>
<td><?= _('Downloads') ?></td>
<td><?= $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>
|