<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Copyright (C) 2025 eXo Platform SAS.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
-->
<page-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.exoplatform.org/xml/ns/gatein_objects_1_8 http://www.exoplatform.org/xml/ns/gatein_objects_1_8"
          xmlns="http://www.exoplatform.org/xml/ns/gatein_objects_1_8">
    <page>
        <name>drives</name>
        <title>Drives</title>
        <access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
        <edit-permission>*:/platform/administrators</edit-permission>
        <container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
            <section-columns
                    sticky-beahvior="false"
                    mobile-columns-style="true">
                <column col-span="8">
                    <portlet-application profiles="documents">
                        <portlet>
                            <application-ref>documents-portlet</application-ref>
                            <portlet-ref>DocumentGadget</portlet-ref>
                            <preferences>
                                <preference>
                                    <name>viewOptions</name>
                                    <value>cards</value>
                                </preference>
                                <preference>
                                    <name>customHeader</name>
                                    <value>false</value>
                                </preference>
                                <preference>
                                    <name>displaySeeMore</name>
                                    <value>true</value>
                                </preference>
                                <preference>
                                    <name>maxDocumentsToList</name>
                                    <value>4</value>
                                </preference>
                                <preference>
                                    <name>documentType</name>
                                    <value>recentDocument</value>
                                </preference>
                            </preferences>
                        </portlet>
                    </portlet-application>
                </column>
                <column col-span="4">
                    <portlet-application profiles="documents">
                        <portlet>
                            <application-ref>documents-portlet</application-ref>
                            <portlet-ref>DocumentGadget</portlet-ref>
                            <preferences>
                                <preference>
                                    <name>viewOptions</name>
                                    <value>list</value>
                                </preference>
                                <preference>
                                    <name>customHeader</name>
                                    <value>false</value>
                                </preference>
                                <preference>
                                    <name>displaySeeMore</name>
                                    <value>true</value>
                                </preference>
                                <preference>
                                    <name>maxDocumentsToList</name>
                                    <value>4</value>
                                </preference>
                                <preference>
                                    <name>documentType</name>
                                    <value>sharedWithMe</value>
                                </preference>
                            </preferences>
                        </portlet>
                        <height>300</height>
                    </portlet-application>
                </column>
            </section-columns>
            <section-columns
                    sticky-beahvior="false"
                    mobile-columns-style="true">
                <column col-span="12">
                    <portlet-application>
                        <portlet>
                            <application-ref>documents-portlet</application-ref>
                            <portlet-ref>Documents</portlet-ref>
                        </portlet>
                        <title>Documents Application</title>
                    </portlet-application>
                </column>
            </section-columns>
        </container>
    </page>
    <page>
        <name>documents</name>
        <title>Documents</title>
        <access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
        <edit-permission>*:/platform/administrators</edit-permission>
        <container
                id="top-documents-container"
                template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
            <name>drives-top-container</name>
            <access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
            <factory-id>addonContainer</factory-id>
        </container>
        <container
                id="documents-container"
                template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl"
                cssClass="singlePageApplication">
            <name>drives-mid-container</name>
            <access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
            <factory-id>addonContainer</factory-id>
        </container>
        <container id="bottom-documents-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
            <name>drives-bottom-container</name>
            <access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
            <factory-id>addonContainer</factory-id>
        </container>
    </page>
    <page>
        <name>download-document</name>
        <title>Download Document</title>
        <access-permissions>Everyone</access-permissions>
        <edit-permission>manager:/platform/administrators</edit-permission>
        <show-max-window>true</show-max-window>
        <container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl" width="100%">
          <css-style>
            <margin-top>0</margin-top>
            <margin-bottom>0</margin-bottom>
            <margin-right>0</margin-right>
            <margin-left>0</margin-left>
            <background-color>#FFFFFF</background-color>
          </css-style>
          <section-columns cssClass="layout-sticky-application">
            <column col-span="5">
              <portlet-application>
                <portlet>
                  <application-ref>social</application-ref>
                  <portlet-ref>SidebarLogin</portlet-ref>
                </portlet>
                <title>Sidebar Login</title>
                <css-style>
                  <radius-top-right>0</radius-top-right>
                  <radius-top-left>0</radius-top-left>
                  <radius-bottom-right>0</radius-bottom-right>
                  <radius-bottom-left>0</radius-bottom-left>
                  <mobile-hidden>true</mobile-hidden>
                  <text-title-color>#FFFFFF</text-title-color>
                  <text-title-font-size>36px</text-title-font-size>
                  <text-title-font-weight>bold</text-title-font-weight>
                  <text-title-font-style>normal</text-title-font-style>
                  <text-header-color>#707070</text-header-color>
                  <text-header-font-size>18px</text-header-font-size>
                  <text-header-font-weight>normal</text-header-font-weight>
                  <text-header-font-style>normal</text-header-font-style>
                  <text-color>#FFFFFF</text-color>
                  <text-font-size>20px</text-font-size>
                  <text-font-weight>normal</text-font-weight>
                  <text-font-style>normal</text-font-style>
                  <text-subtitle-color>#707070</text-subtitle-color>
                  <text-subtitle-font-size>12px</text-subtitle-font-size>
                  <text-subtitle-font-weight>normal</text-subtitle-font-weight>
                  <text-subtitle-font-style>normal</text-subtitle-font-style>
                </css-style>
              </portlet-application>
            </column>
            <column col-span="7" cssClass="justify-space-between">
              <portlet-application>
                <portlet>
                  <application-ref>social</application-ref>
                  <portlet-ref>PlatformName</portlet-ref>
                </portlet>
                <title>Platform Name</title>
                <height>150</height>
                <css-style>
                  <margin-top>20</margin-top>
                  <margin-bottom>0</margin-bottom>
                  <margin-right>20</margin-right>
                  <margin-left>20</margin-left>
                  <text-title-color>#20282C</text-title-color>
                  <text-title-font-size>34px</text-title-font-size>
                  <text-title-font-weight>bold</text-title-font-weight>
                  <text-title-font-style>normal</text-title-font-style>
                  <text-header-color>#707070</text-header-color>
                  <text-header-font-size>18px</text-header-font-size>
                  <text-header-font-weight>normal</text-header-font-weight>
                  <text-header-font-style>normal</text-header-font-style>
                  <text-color>#20282C</text-color>
                  <text-font-size>16px</text-font-size>
                  <text-font-weight>normal</text-font-weight>
                  <text-font-style>normal</text-font-style>
                  <text-subtitle-color>#707070</text-subtitle-color>
                  <text-subtitle-font-size>12px</text-subtitle-font-size>
                  <text-subtitle-font-weight>normal</text-subtitle-font-weight>
                  <text-subtitle-font-style>normal</text-subtitle-font-style>

                </css-style>
              </portlet-application>
              <portlet-application>
                <portlet>
                  <application-ref>documents</application-ref>
                  <portlet-ref>DownloadDocumentsPublicAccess</portlet-ref>
                </portlet>
                <title>Download Document</title>
                <css-style>
                  <margin-top>-40</margin-top>
                  <margin-bottom>20</margin-bottom>
                  <margin-right>20</margin-right>
                  <margin-left>20</margin-left>
                </css-style>
              </portlet-application>
              <portlet-application>
                <portlet>
                  <application-ref>social</application-ref>
                  <portlet-ref>PlatformLogo</portlet-ref>
                  <preferences>
                    <preference>
                      <name>hAlign</name>
                      <value>END</value>
                      <read-only>false</read-only>
                    </preference>
                  </preferences>
                </portlet>
                <title>Platform Logo</title>
                <height>50</height>
                <css-style>
                  <margin-top>20</margin-top>
                  <margin-bottom>40</margin-bottom>
                  <margin-right>20</margin-right>
                  <margin-left>0</margin-left>
                </css-style>
              </portlet-application>
            </column>
          </section-columns>
        </container>
      </page>
    <page>
        <name>restricted-drive</name>
        <title>restricted-drive</title>
        <access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
        <edit-permission>manager:/platform/administrators</edit-permission>
        <container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
            <section-columns>
                <column col-span="12">
                    <portlet-application>
                        <portlet>
                            <application-ref>documents-portlet</application-ref>
                            <portlet-ref>RestrictedDrive</portlet-ref>
                        </portlet>
                        <title>Restricted Drive</title>
                    </portlet-application>
                </column>
            </section-columns>
        </container>
    </page>
</page-set>
