mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-23 23:19:28 +00:00
Adapted lector overview to slide in/out info when recommending
Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
@@ -69,7 +69,7 @@ $this->load->view(
|
||||
),
|
||||
'customJSs' => array(
|
||||
'public/js/bootstrapper.js',
|
||||
'public/js/lehre/anrechnung/approveAnrechnung.js'
|
||||
'public/js/lehre/anrechnung/approveAnrechnungUebersicht.js'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@@ -68,7 +68,7 @@ $this->load->view(
|
||||
),
|
||||
'customJSs' => array(
|
||||
'public/js/bootstrapper.js',
|
||||
'public/js/lehre/anrechnung/reviewAnrechnung.js'
|
||||
'public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js'
|
||||
)
|
||||
)
|
||||
);
|
||||
@@ -116,31 +116,31 @@ $this->load->view(
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Begruendung Panel -->
|
||||
<!-- Empfehlung / Nicht Empfehlung Panel -->
|
||||
<div class="row">
|
||||
<div class="panel panel-default panel-body" style="display: none"
|
||||
id="reviewAnrechnungUebersicht-begruendung-panel">
|
||||
<div>
|
||||
<div class="alert alert-danger"><b><?php echo $this->p->t('anrechnung', 'empfehlungenNegativ'); ?></b></div>
|
||||
<h4><?php echo $this->p->t('anrechnung', 'bitteBegruendungAngeben'); ?></h4><br>
|
||||
<label><?php echo $this->p->t('anrechnung', 'moeglicheBegruendungen'); ?></label><br>
|
||||
<ol>
|
||||
<li><?php echo $this->p->t('anrechnung', 'empfehlungNegativPruefungNichtMoeglich'); ?>
|
||||
<button class="btn btn-sm btn-copyIntoTextarea" data-toggle="tooltip" data-placement="left"
|
||||
<a class="btn-copyIntoTextarea" data-toggle="tooltip" data-placement="left"
|
||||
title="<?php echo $this->p->t('ui', 'textUebernehmen'); ?>">
|
||||
<i class="fa fa-clipboard" aria-hidden="true"></i>
|
||||
</button>
|
||||
</a>
|
||||
</li>
|
||||
<li><?php echo $this->p->t('anrechnung', 'empfehlungNegativKenntnisseNichtGleichwertig'); ?>
|
||||
<button class="btn btn-sm btn-copyIntoTextarea" data-toggle="tooltip" data-placement="left"
|
||||
<a class="btn-copyIntoTextarea" data-toggle="tooltip" data-placement="left"
|
||||
title="<?php echo $this->p->t('ui', 'textUebernehmen'); ?>">
|
||||
<i class="fa fa-clipboard" aria-hidden="true"></i>
|
||||
</button>
|
||||
</a>
|
||||
</li>
|
||||
<li><?php echo $this->p->t('anrechnung', 'andereBegruendung'); ?></li>
|
||||
</ol>
|
||||
<br>
|
||||
<span class="text-danger">
|
||||
<b><?php echo $this->p->t('anrechnung', 'begruendungWirdFuerAlleUebernommen'); ?></b>
|
||||
<?php echo $this->p->t('anrechnung', 'begruendungWirdFuerAlleUebernommen'); ?>
|
||||
</span><br><br>
|
||||
<textarea class="form-control" name="begruendung" id="reviewAnrechnungUebersicht-begruendung"
|
||||
rows="2" required></textarea>
|
||||
@@ -153,6 +153,19 @@ $this->load->view(
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default panel-body" style="display: none"
|
||||
id="reviewAnrechnungUebersicht-empfehlung-panel">
|
||||
<div>
|
||||
<div class="alert alert-success"><b><?php echo $this->p->t('anrechnung', 'empfehlungenPositiv'); ?></b></div>
|
||||
</div>
|
||||
<br>
|
||||
<!-- Action Button 'Abbrechen'-->
|
||||
<div class="pull-right">
|
||||
<button id="reviewAnrechnungUebersicht-empfehlung-abbrechen" class="btn btn-default btn-w200">
|
||||
<?php echo ucfirst($this->p->t('ui', 'abbrechen')); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
+20
@@ -179,6 +179,18 @@ $(function(){
|
||||
|
||||
// Recommend Anrechnungen
|
||||
$("#recommend-anrechnungen").click(function(){
|
||||
let empfehlung_panel = $('#reviewAnrechnungUebersicht-empfehlung-panel');
|
||||
let begruendung_panel = $('#reviewAnrechnungUebersicht-begruendung-panel');
|
||||
|
||||
begruendung_panel.css('display', 'none');
|
||||
|
||||
if (empfehlung_panel.is(":hidden"))
|
||||
{
|
||||
// Show begruendung panel if is hidden
|
||||
empfehlung_panel.slideDown('slow');
|
||||
return;
|
||||
}
|
||||
|
||||
// Get selected rows data
|
||||
let selected_data = $('#tableWidgetTabulator').tabulator('getSelectedData')
|
||||
.map(function(data){
|
||||
@@ -235,7 +247,9 @@ $(function(){
|
||||
|
||||
let begruendung_panel = $('#reviewAnrechnungUebersicht-begruendung-panel');
|
||||
let begruendung = $('#reviewAnrechnungUebersicht-begruendung').val();
|
||||
let empfehlung_panel = $('#reviewAnrechnungUebersicht-empfehlung-panel');
|
||||
|
||||
empfehlung_panel.css('display', 'none');
|
||||
|
||||
if (begruendung_panel.is(":hidden"))
|
||||
{
|
||||
@@ -313,6 +327,12 @@ $(function(){
|
||||
);
|
||||
});
|
||||
|
||||
// Break Empfehlung abgeben
|
||||
$('#reviewAnrechnungUebersicht-empfehlung-abbrechen').click(function(){
|
||||
$('#reviewAnrechnungUebersicht-empfehlung-panel').slideUp('slow');
|
||||
|
||||
})
|
||||
|
||||
// Break Begruendung abgeben
|
||||
$('#reviewAnrechnungUebersicht-begruendung-abbrechen').click(function(){
|
||||
$('#reviewAnrechnungUebersicht-begruendung').val('');
|
||||
Reference in New Issue
Block a user