Skip to content

Commit

Permalink
portfolio: Change Shared status after submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Sep 28, 2023
1 parent 20fc4ce commit 0f6cfab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Modules/Portfolio/classes/class.ilPortfolioRepositoryGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,20 @@ protected function getPortfolioList(): string
// ... handed in
// exercise portfolio?
$exercises = ilPortfolioExerciseGUI::checkExercise($this->user_id, $port["id"], false, true);
$visible_to_tutor = false;
foreach ($exercises as $exinfo) {
if ($exinfo["submitted"]) {
$visible_to_tutor = true;
$props[$exinfo["ass_title"]] =
str_replace("$1", $exinfo["submitted_date"], $lng->txt("prtf_submission_on"));
} else {
$props[$exinfo["ass_title"]] = $lng->txt("prtf_no_submission");
//$props[$exinfo["ass_title"]] = "<span class='il_ItemAlertProperty'>" . $lng->txt("prtf_no_submission") . "</span>";
}
}
if ($visible_to_tutor) {
$props[$lng->txt("prtf_visible_for_tutor")] = $lng->txt("yes");
}


$items[] = $f->item()->standard($f->button()->shy($port["title"], $preview_action))
Expand Down
1 change: 1 addition & 0 deletions lang/ilias_de.lang
Original file line number Diff line number Diff line change
Expand Up @@ -12993,6 +12993,7 @@ prtf#:#prtf_template_title#:#Portfoliovorlage
prtf#:#prtf_unset_as_default#:#Nicht als Mein Profil verwenden
prtf#:#prtf_unset_default_share_info#:#Die Änderungen wurden gespeichert. Bitte überprüfen Sie die aktuellen Freigaben für das Portfolio.
prtf#:#prtf_use_page_layout#:#Seitenlayout benutzen
prtf#:#prtf_visible_for_tutor#:#Einsehbar für Tutor
prtf#:#prtt_title_info#:#Bitte beachten Sie, dass dieser Titel auch für die aus der Vorlage erstellten Porfolios verwendet wird.
prtt#:#prtt_activation_limited_visibility_info#:#Falls aktiv, ist die Portfoliovorlage auch außerhalb der Zugriffszeiten sichtbar.
prtt#:#prtt_activation_online_info#:#Wählen Sie diese Einstellung, um die Portfoliovorlage für Benutzer verfügbar zu machen.
Expand Down
1 change: 1 addition & 0 deletions lang/ilias_en.lang
Original file line number Diff line number Diff line change
Expand Up @@ -12993,6 +12993,7 @@ prtf#:#prtf_template_title#:#Portfolio Template
prtf#:#prtf_unset_as_default#:#Unset As My Profile
prtf#:#prtf_unset_default_share_info#:#Your changes have been saved. Please check the current ‘share’ settings for your portfolio.
prtf#:#prtf_use_page_layout#:#Use Page Layout
prtf#:#prtf_visible_for_tutor#:#Visible For Tutor
prtf#:#prtt_title_info#:#Please note that this will be also the default title for all portfolios being created form this template.
prtt#:#prtt_activation_limited_visibility_info#:#If chosen, the portfolio template is visible even outside of the given availability.
prtt#:#prtt_activation_online_info#:#Activate this setting to make the portfolio template accessible to users.
Expand Down

0 comments on commit 0f6cfab

Please sign in to comment.