update: delete column description on materials
This commit is contained in:
parent
99d4160813
commit
4f9636b2a5
|
|
@ -305,7 +305,6 @@
|
|||
<tr>
|
||||
<th>No</th>
|
||||
<th>Judul</th>
|
||||
<th>Deskripsi</th>
|
||||
<th>File</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
|
|
@ -315,7 +314,6 @@
|
|||
<tr>
|
||||
<td>{{ $index + 1 }}</td>
|
||||
<td>{{ $material_student->title }}</td>
|
||||
<td>{{ $material_student->description ?? '-' }}</td>
|
||||
<td>
|
||||
@if ($material_student->file_path)
|
||||
<a href="{{ route('literacy_materials_view', $material_student->id) }}"
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@
|
|||
<tr>
|
||||
<th>No</th>
|
||||
<th>Judul</th>
|
||||
<th>Deskripsi</th>
|
||||
<th>File</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -358,7 +358,16 @@
|
|||
<tr>
|
||||
<td>{{ $index + 1 }}</td>
|
||||
<td>{{ $material->title }}</td>
|
||||
<td>{{ $material->description ?? '-' }}</td>
|
||||
<td>
|
||||
@if ($material->file_path)
|
||||
<a href="{{ route('literacy_materials_show', $material->id) }}"
|
||||
class="btn btn-sm btn-primary" target="_blank">
|
||||
Lihat Materi
|
||||
</a>
|
||||
@else
|
||||
Tidak ada materi
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-info text-white" data-toggle="modal"
|
||||
data-target="#detailMateriModal{{ $material->id }}">Detail</button>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<div class="modal fade" id="detailMateriModal{{ $material->id }}" tabindex="-1" role="dialog" aria-labelledby="detailMateriLabel{{ $material->id }}" aria-hidden="true">
|
||||
<div class="modal fade" id="detailMateriModal{{ $material->id }}" tabindex="-1" role="dialog"
|
||||
aria-labelledby="detailMateriLabel{{ $material->id }}" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
|
@ -8,15 +9,19 @@
|
|||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Judul:</label>
|
||||
<div class="form-control bg-light">{{ $material->title }}</div>
|
||||
<textarea class="form-control bg-light" rows="2" readonly
|
||||
style="resize: none; overflow: auto;">{{ $material->title }}</textarea>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Deskripsi:</label>
|
||||
<div class="form-control bg-light">{{ $material->description ?? '-' }}</div>
|
||||
<textarea class="form-control bg-light" rows="4" readonly
|
||||
style="resize: none; overflow: auto;">{{ $material->description ?? '-' }}</textarea>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">File:</label>
|
||||
<div class="form-control bg-light">{{ $material->file_path ?? '-' }}</div>
|
||||
<div class="form-control bg-light">
|
||||
{{ $material->file_path ? basename($material->file_path) : '-' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
<div class="modal-body">
|
||||
<div class="mb-3">
|
||||
<label for="title" class="form-label">Judul</label>
|
||||
<input type="text" class="form-control" name="title" value="{{ $material->title }}" required>
|
||||
</div>
|
||||
<textarea name="title" class="form-control overflow-auto" rows="2">{{ $material->title }}</textarea>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="description" class="form-label">Deskripsi</label>
|
||||
<textarea name="description" class="form-control">{{ $material->description }}</textarea>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user