mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Move Publisher Path into Tooltip for better layout
This commit is contained in:
parent
b6343e8ab2
commit
6e28513077
@ -193,7 +193,10 @@ class StateBalancesController extends AppController
|
|||||||
//echo "gdtSum: $gdtSum<br>";
|
//echo "gdtSum: $gdtSum<br>";
|
||||||
$this->set('gdtSum', $gdtSum);
|
$this->set('gdtSum', $gdtSum);
|
||||||
$this->set('ownEntries', $ownEntries);
|
$this->set('ownEntries', $ownEntries);
|
||||||
|
$this->set('gdtSumPerEmail', $requestResult['data']['gdtSumPerEmail']);
|
||||||
|
$this->set('moreEntrysAsShown', $requestResult['data']['moreEntrysAsShown']);
|
||||||
|
$this->set('user', $user);
|
||||||
|
|
||||||
if(isset($requestResult['data']['publishers'])) {
|
if(isset($requestResult['data']['publishers'])) {
|
||||||
$publishers = $requestResult['data']['publishers'];
|
$publishers = $requestResult['data']['publishers'];
|
||||||
$this->set('publishers', $publishers);
|
$this->set('publishers', $publishers);
|
||||||
|
|||||||
@ -24,6 +24,10 @@ function publisherLink($publisher, $the) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->assign('title', __('GDT Kontoübersicht'));
|
$this->assign('title', __('GDT Kontoübersicht'));
|
||||||
|
$gdtSumFromEmails = 0;
|
||||||
|
foreach($gdtSumPerEmail as $email => $gdt) {
|
||||||
|
$gdtSumFromEmails += $gdt;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-8 equel-grid">
|
<div class="col-md-8 equel-grid">
|
||||||
@ -31,7 +35,10 @@ $this->assign('title', __('GDT Kontoübersicht'));
|
|||||||
<div class="grid-body py-3">
|
<div class="grid-body py-3">
|
||||||
<h3><?= __('Zur Verfügung: ') ?></h3>
|
<h3><?= __('Zur Verfügung: ') ?></h3>
|
||||||
<?php if($gdtSum > 0) : ?>
|
<?php if($gdtSum > 0) : ?>
|
||||||
<h2><?= $this->element('printGDT', ['number' => $gdtSum]) ?></h2>
|
<h2><?= $this->element('printGDT', ['number' => $gdtSumFromEmails]) ?></h2>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if($moreEntrysAsShown) : ?>
|
||||||
|
<span><?= __('Nur die letzten 100 Einträge werden angezeigt!'); ?></span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -48,20 +55,17 @@ $this->assign('title', __('GDT Kontoübersicht'));
|
|||||||
<table class="table table-hover table-sm">
|
<table class="table table-hover table-sm">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="solid-header">
|
<tr class="solid-header">
|
||||||
<th class="pl-4"><?= __('E-Mail') ?></th>
|
<th class="pl-4"><?= __('Euro') ?></th>
|
||||||
<th><?= __('Datum') ?></th>
|
|
||||||
<th><?= __('Kommentar') ?></th>
|
|
||||||
<th><?= __('Euro') ?></th>
|
|
||||||
<th><?= __('Factor')?></th>
|
<th><?= __('Factor')?></th>
|
||||||
<th><?= __('GDT') ?></th>
|
<th><?= __('GDT') ?></th>
|
||||||
|
<th><?= __('Datum') ?></th>
|
||||||
|
<th><?= __('Kommentar') ?></th>
|
||||||
|
<th><?= __('E-Mail') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach($ownEntries as $entry) : ?>
|
<?php foreach($ownEntries as $entry) : ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $entry['email'] ?></td>
|
|
||||||
<td><?= new FrozenTime($entry['date']) ?></td>
|
|
||||||
<td><?= h($entry['comment']) ?></td>
|
|
||||||
<td>
|
<td>
|
||||||
<?= $this->element('printEuro', ['number' => $entry['amount']]); ?>
|
<?= $this->element('printEuro', ['number' => $entry['amount']]); ?>
|
||||||
<?php if($entry['amount2']) echo ' + ' . $this->element('printEuro', ['number' => $entry['amount2']]) ?>
|
<?php if($entry['amount2']) echo ' + ' . $this->element('printEuro', ['number' => $entry['amount2']]) ?>
|
||||||
@ -73,6 +77,9 @@ $this->assign('title', __('GDT Kontoübersicht'));
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?= $this->element('printGDT', ['number' => $entry['gdt']]) ?></td>
|
<td><?= $this->element('printGDT', ['number' => $entry['gdt']]) ?></td>
|
||||||
|
<td><?= new FrozenTime($entry['date']) ?></td>
|
||||||
|
<td><?= h($entry['comment']) ?></td>
|
||||||
|
<td><?= $entry['email'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -94,10 +101,11 @@ $this->assign('title', __('GDT Kontoübersicht'));
|
|||||||
<thead>
|
<thead>
|
||||||
<tr class="solid-header">
|
<tr class="solid-header">
|
||||||
<!--<th class="pl-4"><?= __('Einzahlender') ?></th>-->
|
<!--<th class="pl-4"><?= __('Einzahlender') ?></th>-->
|
||||||
<th class="pl-4"><?= __('Datum') ?></th>
|
<th class="pl-4"><?= __('Euro') ?></th>
|
||||||
<th><?= __('Euro') ?></th>
|
<th><?= __('Factor') ?></th>
|
||||||
<th><?= __('Factor')?></th>
|
<th><?= __('GDT')?></th>
|
||||||
<th><?= __('GDT') ?></th>
|
<th><?= __('Datum') ?></th>
|
||||||
|
<th><?= __('E-Mail') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -105,14 +113,16 @@ $this->assign('title', __('GDT Kontoübersicht'));
|
|||||||
$elopageTransaction = $entry['connect']['elopage_transaction'];
|
$elopageTransaction = $entry['connect']['elopage_transaction'];
|
||||||
$gdtEntry = $entry['connect']['gdt_entry'];
|
$gdtEntry = $entry['connect']['gdt_entry'];
|
||||||
?>
|
?>
|
||||||
<tr><td colspan="5">
|
<!-- <tr><td colspan="5">
|
||||||
<?= $elopageTransaction['email'] ?>
|
<?= $elopageTransaction['email'] ?>
|
||||||
<?php foreach($entry['publishersPath'] as $c => $publisher) : ?>
|
<?php foreach($entry['publishersPath'] as $c => $publisher) : ?>
|
||||||
->
|
->
|
||||||
<?= publisherLink($publisher, $this) ?>
|
<?= publisherLink($publisher, $this) ?>
|
||||||
|
|
||||||
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>-->
|
||||||
<tr>
|
<tr>
|
||||||
<!--<td><?= h($elopageTransaction['email']) ?></td>-->
|
<!--<td><?= h($elopageTransaction['email']) ?></td>-->
|
||||||
<td><?= new FrozenTime($gdtEntry['date']) ?></td>
|
<td><?= new FrozenTime($gdtEntry['date']) ?></td>
|
||||||
@ -127,6 +137,12 @@ $this->assign('title', __('GDT Kontoübersicht'));
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?= $this->element('printGDT', ['number' => $gdtEntry['gdt']]) ?></td>
|
<td><?= $this->element('printGDT', ['number' => $gdtEntry['gdt']]) ?></td>
|
||||||
|
<td data-tippy-content="<?= $elopageTransaction['email'] ?>
|
||||||
|
<?php foreach($entry['publishersPath'] as $c => $publisher) : ?>
|
||||||
|
-><br>
|
||||||
|
<?= publisherLink($publisher, $this) ?>
|
||||||
|
<?php if($publisher['email'] == $user['email']) break ?>
|
||||||
|
<?php endforeach; ?>"><?= $elopageTransaction['email'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -136,4 +152,13 @@ $this->assign('title', __('GDT Kontoübersicht'));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?= $this->Html->css(['gdt.css']) ?>
|
<?= $this->Html->css(['gdt.css']) ?>
|
||||||
|
<?= $this->Html->script(['basic', 'popper.min', 'tippy-bundle.umd.min']) ?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
domIsReady(function() {
|
||||||
|
tippy('[data-tippy-content]', {
|
||||||
|
placement: 'top-start',
|
||||||
|
allowHTML: true,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Loading…
x
Reference in New Issue
Block a user