mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +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]) ?>
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
<script src="<?= staticFileUrl('/js/tinymce_defaults.js') ?>"></script>
|
||||
|
||||
<script src="<?= staticFileUrl('/js/pretty_content.js') ?>"></script>
|
||||
<?php if (!empty($portal_document_contents)) { ?>
|
||||
<!-- A long document's or article's Contents beside it (documentReadHtml()) -->
|
||||
<script src="<?= staticFileUrl('/js/document_contents.js') ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
<script src="<?= staticFileUrl('/libs/sweetalert2/js/sweetalert2.min.js') ?>"></script>
|
||||
<script src="<?= staticFileUrl('/js/confirm_modal.js') ?>"></script>
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
/*
|
||||
* Client Portal
|
||||
* A Help article - what it says, as written (its tables and colours too),
|
||||
* with a way to ask about it and the others in its category. Printable.
|
||||
* A Help article - 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()), a way to ask about it and the others in its
|
||||
* category. Printable.
|
||||
*
|
||||
* SCOPING: any contact who can sign in; the article must be one kbClientSql()
|
||||
* lets $session_client_id read - published, not archived, and shared with
|
||||
@@ -79,9 +81,8 @@ if ($category_id) {
|
||||
</div>
|
||||
|
||||
<?php if (trim(strip_tags($content, '<img><table>')) !== '') { ?>
|
||||
<article class="itflow-portal-panel itflow-portal-panel-body itflow-portal-document prettyContent mb-4">
|
||||
<?= $content ?>
|
||||
</article>
|
||||
<?= documentReadHtml($content) ?>
|
||||
<?php $portal_document_contents = true; ?>
|
||||
<?php } else { ?>
|
||||
<section class="itflow-portal-panel mb-4">
|
||||
<?= emptyStateHtml(['title' => 'This article is empty', 'text' => '', 'icon' => 'fa-book', 'filtered' => false]) ?>
|
||||
|
||||
Reference in New Issue
Block a user