Skip to content
Snippets Groups Projects
Commit 8457640a authored by Michaela Brückner's avatar Michaela Brückner :unicorn:
Browse files

re #852 re #1204

parent 4a3f9528
No related branches found
No related tags found
No related merge requests found
......@@ -506,8 +506,14 @@ class FileController extends AuthenticatedController
$this->formatted_link = '['. $this->linktext .']' . $this->link_to_share;
$additional_text = htmlReady(Request::get('additional_text'));
// file details and preview, if available
$this->is_downloadable = $this->file->isDownloadable(User::findCurrent()->id);
$this->file_info_template = $this->file->getInfoTemplate($this->is_downloadable);
$folder = $this->file->getFolderType();
$this->fullpath = FileManager::getFullPath($folder);
$oer_suggestion_message = sprintf(_("Ihre hochgeladene Datei wurde zur Veröffentlichung im
OER Campus vorgeschlagen:\n\n"
OER-Campus vorgeschlagen:\n\n"
. "Dateiname: %s \n"
. "Beschreibung: %s \n\n"
. "%s \n\n"
......@@ -532,13 +538,11 @@ class FileController extends AuthenticatedController
Request::option('message_id'),
'',
null,
_('Vorschlag zur Veröffentlichung einer Datei im OER Campus')
_('Vorschlag zur Veröffentlichung einer Datei im OER-Campus')
);
$this->response->add_header('X-Dialog-Close', '1');
$this->render_nothing();
PageLayout::postSuccess(_('Vorschlag wurde eingereicht.'));
PageLayout::postSuccess(_('Vorschlag zur Veröffentlichung im OER-Campus wurde eingereicht.'));
}
}
......
<form action='<?= $controller->url_for('file/suggest_oer/' . $file_ref_id)?>'
class='default' method='POST' data-dialog="reload-on-close">
<?= CSRFProtection::tokenTag() ?>
<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><?= sprintf(_('Das Material gefällt Ihnen? – Schlagen Sie es zur Veröffentlichung im OER-Campus vor.
Schreiben Sie dem/der Autor*in %s, warum er/sie das Material veröffentlichen sollte.'), $author_fullname)?></p>
<label for="additional_text">
<span class="">
<?= _("Ihr Vorschlag wird anonym versendet.") ?>
</span>
<textarea name = "additional_text"
id = "additional_text"
rows = "3"
></textarea>
</label>
<p><?= sprintf(_('Das folgende Material wird %s zur Veröffentlichung im OER Campus vorgeschlagen:'), $author_fullname)?></p>
<p><?= htmlReady($file->getFilename())?></p>
<label for="additional_text">
<span class="">
<?= _("Ihr Vorschlag wird anonym versendet.") ?>
<?= _("Falls gewünscht, können Sie zusätzlich eine Nachricht verfassen:") ?>
</span>
<textarea name = "additional_text"
id = "additional_text"
rows = "3"
></textarea>
</label>
<footer data-dialog-button>
<?= Studip\Button::create(_("Material vorschlagen"))?>
</footer>
</form>
<footer data-dialog-button>
<?= Studip\Button::create(_("Material vorschlagen"))?>
</footer>
</form>
</div>
<?= $this->render_partial('file/file_details.php') ?>
......@@ -243,6 +243,11 @@ div.file_select_possibilities.content_terms_of_use_icons {
align-content: flex-start;
}
#file_suggest_oer {
display: flex;
margin-bottom: 3%;
margin-top: 2%;
}
table.documents tfoot td.sticky {
position: sticky;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment