[Operator] Kelengkapan Halaman Dosen
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($result->rows as $n => $row)
|
||||
<tr>
|
||||
<tr @class(['report-print__total' => in_array($n, $result->totals, true)])>
|
||||
<td class="num">{{ $n + 1 }}</td>
|
||||
@foreach ($result->columns as $c)
|
||||
@php $cell = $row[$c['key']] ?? null; @endphp
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
@endforeach
|
||||
|
||||
<div class="satu-form__actions">
|
||||
<x-ui.button variant="secondary" icon="arrow-down-tray" href="#" x-bind:href="downloadHref" x-bind:aria-disabled="! ready" x-on:click="if (! ready) $event.preventDefault()">{{ $downloadLabel }}</x-ui.button>
|
||||
<x-ui.button :variant="$downloadVariant" icon="arrow-down-tray" href="#" x-bind:href="downloadHref" x-bind:aria-disabled="! ready" x-on:click="if (! ready) $event.preventDefault()">{{ $downloadLabel }}</x-ui.button>
|
||||
<x-ui.button variant="secondary" icon="arrow-top-right-on-square" href="#" target="_blank" rel="noopener" x-bind:href="printHref" x-bind:aria-disabled="! ready" x-on:click="if (! ready) $event.preventDefault()">Lihat di Tab Baru</x-ui.button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -69,7 +69,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<template x-for="(row, i) in result.rows" :key="i">
|
||||
<tr>
|
||||
<tr x-bind:class="{ 'table__row--total': row._total }">
|
||||
<td class="num" x-text="(result.from + i).toLocaleString('id-ID')"></td>
|
||||
<template x-for="c in result.columns" :key="c.key">
|
||||
<td x-bind:class="c.num ? 'num' : ''" x-text="cell(row[c.key])"></td>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
$editable ??= true;
|
||||
$ownRowsOnly ??= false;
|
||||
$viewable ??= true;
|
||||
// $barLinks (opsional): tautan tambahan di kanan bilah cari, [['label', 'href', 'icon']].
|
||||
// $barLinks (opsional): tautan tambahan di kanan bilah cari, [['label', 'href', 'icon', 'variant' => 'secondary'|'teal']].
|
||||
$barLinks ??= [];
|
||||
// $detailColumns (opsional): kolom modal Lihat bila berbeda dari kolom tabel; kolom ber-'detail' => 'kunci' menampilkan
|
||||
// row.{kunci} (larik teks) sebagai daftar bernomor selebar modal, mis. anggota grup mata kuliah.
|
||||
@@ -130,9 +130,9 @@
|
||||
@foreach ($barLinks as $link)
|
||||
@if ($link['withFilters'] ?? false)
|
||||
{{-- Tautan yang membawa filter dan kata cari yang sedang dipakai (mis. Unduh CSV) --}}
|
||||
<a class="btn btn--secondary btn--sm" x-bind:href="linkWith(@js($link['href']))"><x-dynamic-component :component="'heroicon-o-'.($link['icon'] ?? 'link')" /><span>{{ $link['label'] }}</span></a>
|
||||
<a class="btn btn--{{ ($link['variant'] ?? null) === 'teal' ? 'teal' : 'secondary' }} btn--sm" x-bind:href="linkWith(@js($link['href']))"><x-dynamic-component :component="'heroicon-o-'.($link['icon'] ?? 'link')" /><span>{{ $link['label'] }}</span></a>
|
||||
@else
|
||||
<x-ui.button variant="secondary" :icon="$link['icon'] ?? null" size="sm" :href="$link['href']">{{ $link['label'] }}</x-ui.button>
|
||||
<x-ui.button :variant="$link['variant'] ?? 'secondary'" :icon="$link['icon'] ?? null" size="sm" :href="$link['href']">{{ $link['label'] }}</x-ui.button>
|
||||
@endif
|
||||
@endforeach
|
||||
@foreach ($active as [$label, $icon, $variant, $click])
|
||||
@@ -163,7 +163,8 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<template x-for="row in view" x-bind:key="row.id">
|
||||
<tr>
|
||||
{{-- row._total: baris penjumlahan laporan (mis. "Jumlah"), diberi arsir --}}
|
||||
<tr x-bind:class="{ 'table__row--total': row._total }">
|
||||
@if ($dynamicColumns)
|
||||
<template x-for="(col, ci) in columns" x-bind:key="col.key">
|
||||
<td x-bind:class="{ num: col.num, table__title: ci === 0 }">
|
||||
|
||||
Reference in New Issue
Block a user