-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathindex.blade.php
More file actions
56 lines (54 loc) · 2 KB
/
index.blade.php
File metadata and controls
56 lines (54 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@extends('layouts.app')
@section('pageTitle', 'Content blocks')
@section('content')
<div class="container">
<p>
From here a limited set of page content chunks can be edited without needing to PR changes to HMS.<br>
There are two types, <strong>Page</strong> & <strong>Email</strong>, related to where the chunk is used and whether it should be written as pure HTML for display on a site page, or as markdown for email where it will be rendered to both text and HTML.
</p>
<div class="table-responsive no-more-tables">
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Type</th>
<th>View</th>
<th>Block</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@foreach ($contentBlocks as $contentBlock)
<tr>
<td data-title="Type">{{ $contentBlock->getTypeString() }}</td>
<td data-title="View">{{ $contentBlock->getView() }}</td>
<td data-title="Block">{{ $contentBlock->getBlock() }}</td>
<td data-title="Actions" class="actions">
<a class="btn btn-primary btn-sm" href="{{ route('content-blocks.show', $contentBlock->getId()) }}"><i class="fas fa-eye" aria-hidden="true"></i> View</a>
@can('contentBlock.edit')
<a class="btn btn-primary btn-sm" href="{{ route('content-blocks.edit', $contentBlock->getId()) }}"><i class="fas fa-pencil" aria-hidden="true"></i> Edit</a>
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div classs="pagination">
{{ $contentBlocks->links() }}
</div>
<hr>
<dl>
<dt>Type</dt>
<dd>
<ul>
<li><strong>Page</strong>: pure HTML for display on site</li>
<li><strong>Email</strong>: markdown for rendering to both text and HTML</li>
</ul>
</dd>
<dt>View</dt>
<dd>This is the blade file this chunk is use in</dd>
<dt>Block</dt>
<dd>Name for the block of content within the page</dd>
</dl>
</div>
@endsection