mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
add Infomodal Beratungsgespraech in case of Abmeldung and configEntry
This commit is contained in:
@@ -168,3 +168,13 @@ $config['stgkz_blacklist_wiederholung'] = [];
|
||||
* @var array An array of noten ids
|
||||
*/
|
||||
$config['note_blacklist_wiederholung'] = [];
|
||||
|
||||
|
||||
/**
|
||||
* Modal with Infotext of TLC
|
||||
* if true, there will be shown an info modal in the studentsView after the first button ABMELDUNG
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
$config['showInfoModalAbmeldung'] = true;
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ class Studierendenantrag extends FHC_Controller
|
||||
|
||||
// Load language phrases
|
||||
$this->loadPhrases([
|
||||
'studierendenantrag'
|
||||
'studierendenantrag',
|
||||
'ui'
|
||||
]);
|
||||
|
||||
if (strtolower($this->router->method) === 'leitung')
|
||||
|
||||
@@ -30,6 +30,12 @@ if(defined('CIS4')){
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
$config = $this->load->config('studierendenantrag');
|
||||
$showInfoModalAbmeldung = $this->config->item('showInfoModalAbmeldung');
|
||||
?>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div class="fhc-header">
|
||||
@@ -43,17 +49,86 @@ if(defined('CIS4')){
|
||||
<h4><?= $array['bezeichnungStg']; ?> (<?= $array['bezeichnungOrgform']; ?>)</h4>
|
||||
|
||||
<?php foreach ($array['allowedNewTypes'] as $type) { ?>
|
||||
|
||||
<!-- TODO (REMOVE Not needed code) -->
|
||||
<!-- <div class="alert alert-secondary">
|
||||
<p><?php /*= $this->p->t('studierendenantrag', 'calltoaction_' . $type); */?></p>
|
||||
<hr>
|
||||
<a
|
||||
href="<?php /*= site_url('lehre/Studierendenantrag/' . strtolower($type) . '/' . $prestudent_id); */?>"
|
||||
class="btn btn-outline-secondary"
|
||||
>
|
||||
<i class="fa fa-plus"></i> <?php /*= $this->p->t('studierendenantrag', 'antrag_typ_' . $type); */?>
|
||||
</a>
|
||||
</div>-->
|
||||
|
||||
<div class="alert alert-secondary">
|
||||
<p><?= $this->p->t('studierendenantrag', 'calltoaction_' . $type); ?></p>
|
||||
<hr>
|
||||
<a
|
||||
href="<?= site_url('lehre/Studierendenantrag/' . strtolower($type) . '/' . $prestudent_id); ?>"
|
||||
class="btn btn-outline-secondary"
|
||||
>
|
||||
<i class="fa fa-plus"></i> <?= $this->p->t('studierendenantrag', 'antrag_typ_' . $type); ?>
|
||||
</a>
|
||||
<p><?= $this->p->t('studierendenantrag', 'calltoaction_' . $type); ?></p>
|
||||
<hr>
|
||||
<?php
|
||||
if($type == 'Abmeldung' && $showInfoModalAbmeldung){
|
||||
$href = "#modalinfo" . $prestudent_id;
|
||||
}
|
||||
else
|
||||
$href = site_url('lehre/Studierendenantrag/' . strtolower($type) . '/' . $prestudent_id);
|
||||
?>
|
||||
|
||||
<a
|
||||
href="<?= $href ?>"
|
||||
class="btn btn-outline-secondary"
|
||||
<?php if($type == 'Abmeldung' && $showInfoModalAbmeldung): ?>
|
||||
data-bs-toggle="modal"
|
||||
<?php endif; ?>
|
||||
>
|
||||
<i class="fa fa-plus"></i> <?= $this->p->t('studierendenantrag', 'antrag_typ_' . $type); ?>
|
||||
</a>
|
||||
|
||||
<!-- Modal -->
|
||||
<div
|
||||
class="modal fade"
|
||||
id="modalinfo<?= $prestudent_id; ?>"
|
||||
tabindex="-1"
|
||||
aria-labelledby="modalinfoLabel<?= $prestudent_id; ?>"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div class="modal-dialog modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5
|
||||
class="modal-title"
|
||||
id="modalinfoLabel<?= $prestudent_id; ?>"
|
||||
> Hinweis Beratungsgespräch <?= $this->p->t('studierendenantrag', 'title_Abmeldung'); ?>
|
||||
</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- TODO (ADD TEXT) -->
|
||||
<textarea
|
||||
class="form-control"
|
||||
style="width: 100%; height: 250px;"
|
||||
readonly
|
||||
>Ich nehme zur Kenntnis, dass es die Möglichkeit für ein Beratungsgespräch gibt. (.... Text folgt noch ....)
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-outline-primary" data-bs-dismiss="modal"><?= $this->p->t('ui', 'abbrechen'); ?></button>
|
||||
<a
|
||||
href="<?= site_url('lehre/Studierendenantrag/abmeldung/' . $prestudent_id); ?>"
|
||||
class="btn btn-outline-primary"
|
||||
> <?= $this->p->t('studierendenantrag', 'link_Abmeldung'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
||||
@@ -58177,6 +58177,26 @@ I have been informed that I am under no obligation to consent to the transmissio
|
||||
)
|
||||
),
|
||||
// ### Phrases Dashboard Admin END
|
||||
array(
|
||||
'app' => 'core',
|
||||
'category' => 'studierendenantrag',
|
||||
'phrase' => 'link_Abmeldung',
|
||||
'insertvon' => 'system',
|
||||
'phrases' => array(
|
||||
array(
|
||||
'sprache' => 'German',
|
||||
'text' => 'Weiter zur Abmeldung',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
),
|
||||
array(
|
||||
'sprache' => 'English',
|
||||
'text' => 'Continue to De-registration',
|
||||
'description' => '',
|
||||
'insertvon' => 'system'
|
||||
)
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user