Skip to content
Snippets Groups Projects
Commit 17772873 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

added additional profiles notes config value and paragraph in profile/_add_edit_form

parent 2f40385c
No related branches found
No related tags found
No related merge requests found
<?php
/**
* This file is part of the TandemPlugin for Stud.IP
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* @author Moritz Strohm <strohm@data-quest.de>
* @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2
* @category Plugin
*/
class AddAdditionalNotesConfig extends Migration
{
public function up()
{
Config::get()->create(
'TANDEMPLUGIN_ADDITIONAL_PROFILE_NOTES',
[
'type' => 'string',
'value' => '',
'section' => 'tandemplugin',
'description' => 'Zusätzliche wichtige Hinweise, die beim Anlegen oder Bearbeiten eines Tandem-Profiles angezeigt werden sollen.'
]
);
}
public function down()
{
Config::get()->delete('TANDEMPLUGIN_ADDITIONAL_PROFILE_NOTES');
}
}
pluginname=TandemPlugin
pluginclassname=TandemPlugin
origin=data-quest
version=0.9.0
version=0.9.1
description=Dieses Plugin ermöglicht es, Sprachtandems innerhalb der Stud.IP Platform zu bilden.
studipMinVersion=4.0
......@@ -56,10 +56,18 @@
</fieldset>
<fieldset>
<legend><?= dgettext('TandemPlugin', 'Wichtiger Hinweis') ?></legend>
<p><?= sprintf(
<p>
<?= sprintf(
dgettext('TandemPlugin', 'Ein Gesuch wird nach %s Monaten automatisch gelöscht, sofern in der Zwischenzeit kein Tandem gebildet wurde! Wurde ein Gesuch automatisch gelöscht, kann es einfach über die Funktion "Gesuch hinzufügen" neu erstellt werden!'),
(int)(Config::get()->TANDEMPLUGIN_DELETE_OLD_PERIOD)
) ?></p>
) ?>
</p>
<? $additional_notes = trim(Config::get()->TANDEMPLUGIN_ADDITIONAL_PROFILE_NOTES); ?>
<? if ($additional_notes): ?>
<p>
<?= $additional_notes ?>
</p>
<? endif ?>
</fieldset>
<div data-dialog-button>
<?= \Studip\Button::create(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment