Skip to content

Commit 34fcac0

Browse files
committed
feat : Make Internal Onboarding page modifiable in layout - MEED-9711 - Meeds-io/MIPs#203
This commit update Internal Onboarding page to transform the existing handler and application into a portlet which can be added on a page, and configured with the layout editor.
1 parent 025640c commit 34fcac0

File tree

5 files changed

+125
-137
lines changed

5 files changed

+125
-137
lines changed

webapps/plf-sites-extension/src/main/resources/locale/navigation/portal/global_en.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ portal.global.myteam=My Team
6464
portal.global.external-registration=Guest registration
6565
portal.global.login=Login
6666
portal.global.forgot-password=Forgot Password
67+
portal.global.on-boarding=Create a password

webapps/plf-sites-extension/src/main/resources/locale/navigation/portal/global_fr.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ portal.global.myteam=Mon équipe
6464
portal.global.external-registration=Inscription d'un utilisateur externe
6565
portal.global.login=Connexion
6666
portal.global.forgot-password=Mot de passe oubli\u00E9
67+
portal.global.on-boarding=Cr\u00E9er un mot de passe

webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/navigation.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,5 +355,11 @@
355355
<visibility>SYSTEM</visibility>
356356
<page-reference>portal::global::forgot-password</page-reference>
357357
</node>
358+
<node>
359+
<name>on-boarding</name>
360+
<label>#{portal.global.on-boarding}</label>
361+
<visibility>SYSTEM</visibility>
362+
<page-reference>portal::global::on-boarding</page-reference>
363+
</node>
358364
</page-nodes>
359365
</node-navigation>

webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/pages.xml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,4 +1344,121 @@
13441344
</section-columns>
13451345
</container>
13461346
</page>
1347+
<page>
1348+
<name>on-boarding</name>
1349+
<title>Internal Registration</title>
1350+
<access-permissions>Everyone</access-permissions>
1351+
<edit-permission>manager:/platform/administrators</edit-permission>
1352+
<show-max-window>true</show-max-window>
1353+
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl" width="100%">
1354+
<css-style>
1355+
<margin-top>0</margin-top>
1356+
<margin-bottom>0</margin-bottom>
1357+
<margin-right>0</margin-right>
1358+
<margin-left>0</margin-left>
1359+
<background-color>#FFFFFF</background-color>
1360+
</css-style>
1361+
<section-columns cssClass="layout-sticky-application">
1362+
<column col-span="5">
1363+
<portlet-application>
1364+
<portlet>
1365+
<application-ref>social</application-ref>
1366+
<portlet-ref>SidebarLogin</portlet-ref>
1367+
</portlet>
1368+
<title>Sidebar Login</title>
1369+
<css-style>
1370+
<radius-top-right>0</radius-top-right>
1371+
<radius-top-left>0</radius-top-left>
1372+
<radius-bottom-right>0</radius-bottom-right>
1373+
<radius-bottom-left>0</radius-bottom-left>
1374+
<mobile-hidden>true</mobile-hidden>
1375+
<text-title-color>#FFFFFF</text-title-color>
1376+
<text-title-font-size>36px</text-title-font-size>
1377+
<text-title-font-weight>bold</text-title-font-weight>
1378+
<text-title-font-style>normal</text-title-font-style>
1379+
<text-header-color>#707070</text-header-color>
1380+
<text-header-font-size>18px</text-header-font-size>
1381+
<text-header-font-weight>normal</text-header-font-weight>
1382+
<text-header-font-style>normal</text-header-font-style>
1383+
<text-color>#FFFFFF</text-color>
1384+
<text-font-size>20px</text-font-size>
1385+
<text-font-weight>normal</text-font-weight>
1386+
<text-font-style>normal</text-font-style>
1387+
<text-subtitle-color>#707070</text-subtitle-color>
1388+
<text-subtitle-font-size>12px</text-subtitle-font-size>
1389+
<text-subtitle-font-weight>normal</text-subtitle-font-weight>
1390+
<text-subtitle-font-style>normal</text-subtitle-font-style>
1391+
</css-style>
1392+
</portlet-application>
1393+
</column>
1394+
<column col-span="7" cssClass="justify-space-between">
1395+
<portlet-application>
1396+
<portlet>
1397+
<application-ref>social</application-ref>
1398+
<portlet-ref>PlatformName</portlet-ref>
1399+
</portlet>
1400+
<title>Platform Name</title>
1401+
<height>150</height>
1402+
<css-style>
1403+
<margin-top>60</margin-top>
1404+
<margin-bottom>0</margin-bottom>
1405+
<margin-right>20</margin-right>
1406+
<margin-left>20</margin-left>
1407+
<text-title-color>#20282C</text-title-color>
1408+
<text-title-font-size>34px</text-title-font-size>
1409+
<text-title-font-weight>bold</text-title-font-weight>
1410+
<text-title-font-style>normal</text-title-font-style>
1411+
<text-header-color>#707070</text-header-color>
1412+
<text-header-font-size>18px</text-header-font-size>
1413+
<text-header-font-weight>normal</text-header-font-weight>
1414+
<text-header-font-style>normal</text-header-font-style>
1415+
<text-color>#20282C</text-color>
1416+
<text-font-size>16px</text-font-size>
1417+
<text-font-weight>normal</text-font-weight>
1418+
<text-font-style>normal</text-font-style>
1419+
<text-subtitle-color>#707070</text-subtitle-color>
1420+
<text-subtitle-font-size>12px</text-subtitle-font-size>
1421+
<text-subtitle-font-weight>normal</text-subtitle-font-weight>
1422+
<text-subtitle-font-style>normal</text-subtitle-font-style>
1423+
1424+
</css-style>
1425+
</portlet-application>
1426+
<portlet-application>
1427+
<portlet>
1428+
<application-ref>social</application-ref>
1429+
<portlet-ref>InternalOnboarding</portlet-ref>
1430+
</portlet>
1431+
<title>Internal Registration</title>
1432+
<css-style>
1433+
<margin-top>0</margin-top>
1434+
<margin-bottom>20</margin-bottom>
1435+
<margin-right>20</margin-right>
1436+
<margin-left>20</margin-left>
1437+
</css-style>
1438+
</portlet-application>
1439+
<portlet-application>
1440+
<portlet>
1441+
<application-ref>social</application-ref>
1442+
<portlet-ref>PlatformLogo</portlet-ref>
1443+
<preferences>
1444+
<preference>
1445+
<name>hAlign</name>
1446+
<value>END</value>
1447+
<read-only>false</read-only>
1448+
</preference>
1449+
</preferences>
1450+
</portlet>
1451+
<title>Platform Logo</title>
1452+
<height>100</height>
1453+
<css-style>
1454+
<margin-top>20</margin-top>
1455+
<margin-bottom>40</margin-bottom>
1456+
<margin-right>20</margin-right>
1457+
<margin-left>0</margin-left>
1458+
</css-style>
1459+
</portlet-application>
1460+
</column>
1461+
</section-columns>
1462+
</container>
1463+
</page>
13471464
</page-set>

webapps/plf-sites-extension/src/main/webapp/WEB-INF/jsp/onboarding/reset_password.jsp

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)