mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Documents and articles outside the agent app read like the document page: the portal document and Help article pages, shared links and the public help center lay out what they say as on the agent document page, with a long one's Contents beside it in view as you scroll and marking the section being read, or above it on a phone; pictures open full size when clicked; a section picked from Contents stays marked, on the agent page too; 26.12.3 changelog entries
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/*
|
||||
* Client Portal
|
||||
* A document - what it says, as written (its tables and colours too), and
|
||||
* the files that came with it: a PDF or picture shown on the page, any file
|
||||
* to open or download. Printable.
|
||||
* A document - what it says, as written (its tables and colours too) and laid
|
||||
* out as on the agent's document page, with the Contents of a long one beside
|
||||
* it (documentReadHtml()), and the files that came with it: a PDF or picture
|
||||
* shown on the page, any file to open or download. Printable.
|
||||
*
|
||||
* SCOPING: primary and technical contacts (portalItGate()); the document must
|
||||
* be the session's client's, visible to the client and not archived, and its
|
||||
@@ -106,9 +107,8 @@ foreach ($files as $file) {
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!$stub && trim(strip_tags($content, '<img><table>')) !== '') { ?>
|
||||
<article class="itflow-portal-panel itflow-portal-panel-body itflow-portal-document prettyContent">
|
||||
<?= $content ?>
|
||||
</article>
|
||||
<?= documentReadHtml($content) ?>
|
||||
<?php $portal_document_contents = true; ?>
|
||||
<?php } elseif (!$files) { ?>
|
||||
<section class="itflow-portal-panel">
|
||||
<?= emptyStateHtml(['title' => 'This document is empty', 'text' => '', 'icon' => 'fa-file-alt', 'filtered' => false]) ?>
|
||||
|
||||
Reference in New Issue
Block a user