Skip to content

Commit addb1dc

Browse files
committed
feat : Make Register page modifiable in layout - MEED-9361 - Meeds-io/MIPs#203
This commit update Register 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 34fcac0 commit addb1dc

File tree

3 files changed

+238
-247
lines changed

3 files changed

+238
-247
lines changed

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
@@ -361,5 +361,11 @@
361361
<visibility>SYSTEM</visibility>
362362
<page-reference>portal::global::on-boarding</page-reference>
363363
</node>
364+
<node>
365+
<name>register</name>
366+
<label>#{portal.global.register}</label>
367+
<visibility>SYSTEM</visibility>
368+
<page-reference>portal::global::register</page-reference>
369+
</node>
364370
</page-nodes>
365371
</node-navigation>

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

Lines changed: 232 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,120 +1345,237 @@
13451345
</container>
13461346
</page>
13471347
<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>
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>
14231423

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>
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>
1464+
<page>
1465+
<name>register</name>
1466+
<title>Register</title>
1467+
<access-permissions>Everyone</access-permissions>
1468+
<edit-permission>manager:/platform/administrators</edit-permission>
1469+
<show-max-window>true</show-max-window>
1470+
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl" width="100%">
1471+
<css-style>
1472+
<margin-top>0</margin-top>
1473+
<margin-bottom>0</margin-bottom>
1474+
<margin-right>0</margin-right>
1475+
<margin-left>0</margin-left>
1476+
<background-color>#FFFFFF</background-color>
1477+
</css-style>
1478+
<section-columns cssClass="layout-sticky-application">
1479+
<column col-span="5">
1480+
<portlet-application>
1481+
<portlet>
1482+
<application-ref>social</application-ref>
1483+
<portlet-ref>SidebarLogin</portlet-ref>
1484+
</portlet>
1485+
<title>Sidebar Login</title>
1486+
<css-style>
1487+
<radius-top-right>0</radius-top-right>
1488+
<radius-top-left>0</radius-top-left>
1489+
<radius-bottom-right>0</radius-bottom-right>
1490+
<radius-bottom-left>0</radius-bottom-left>
1491+
<mobile-hidden>true</mobile-hidden>
1492+
<text-title-color>#FFFFFF</text-title-color>
1493+
<text-title-font-size>36px</text-title-font-size>
1494+
<text-title-font-weight>bold</text-title-font-weight>
1495+
<text-title-font-style>normal</text-title-font-style>
1496+
<text-header-color>#707070</text-header-color>
1497+
<text-header-font-size>18px</text-header-font-size>
1498+
<text-header-font-weight>normal</text-header-font-weight>
1499+
<text-header-font-style>normal</text-header-font-style>
1500+
<text-color>#FFFFFF</text-color>
1501+
<text-font-size>20px</text-font-size>
1502+
<text-font-weight>normal</text-font-weight>
1503+
<text-font-style>normal</text-font-style>
1504+
<text-subtitle-color>#707070</text-subtitle-color>
1505+
<text-subtitle-font-size>12px</text-subtitle-font-size>
1506+
<text-subtitle-font-weight>normal</text-subtitle-font-weight>
1507+
<text-subtitle-font-style>normal</text-subtitle-font-style>
1508+
</css-style>
1509+
</portlet-application>
1510+
</column>
1511+
<column col-span="7" cssClass="justify-space-between">
1512+
<portlet-application>
1513+
<portlet>
1514+
<application-ref>social</application-ref>
1515+
<portlet-ref>PlatformName</portlet-ref>
1516+
</portlet>
1517+
<title>Platform Name</title>
1518+
<height>150</height>
1519+
<css-style>
1520+
<margin-top>60</margin-top>
1521+
<margin-bottom>0</margin-bottom>
1522+
<margin-right>20</margin-right>
1523+
<margin-left>20</margin-left>
1524+
<text-title-color>#20282C</text-title-color>
1525+
<text-title-font-size>34px</text-title-font-size>
1526+
<text-title-font-weight>bold</text-title-font-weight>
1527+
<text-title-font-style>normal</text-title-font-style>
1528+
<text-header-color>#707070</text-header-color>
1529+
<text-header-font-size>18px</text-header-font-size>
1530+
<text-header-font-weight>normal</text-header-font-weight>
1531+
<text-header-font-style>normal</text-header-font-style>
1532+
<text-color>#20282C</text-color>
1533+
<text-font-size>16px</text-font-size>
1534+
<text-font-weight>normal</text-font-weight>
1535+
<text-font-style>normal</text-font-style>
1536+
<text-subtitle-color>#707070</text-subtitle-color>
1537+
<text-subtitle-font-size>12px</text-subtitle-font-size>
1538+
<text-subtitle-font-weight>normal</text-subtitle-font-weight>
1539+
<text-subtitle-font-style>normal</text-subtitle-font-style>
1540+
1541+
</css-style>
1542+
</portlet-application>
1543+
<portlet-application>
1544+
<portlet>
1545+
<application-ref>social</application-ref>
1546+
<portlet-ref>RegisterForm</portlet-ref>
1547+
</portlet>
1548+
<title>Register Form</title>
1549+
<css-style>
1550+
<margin-top>0</margin-top>
1551+
<margin-bottom>20</margin-bottom>
1552+
<margin-right>20</margin-right>
1553+
<margin-left>20</margin-left>
1554+
</css-style>
1555+
</portlet-application>
1556+
<portlet-application>
1557+
<portlet>
1558+
<application-ref>social</application-ref>
1559+
<portlet-ref>PlatformLogo</portlet-ref>
1560+
<preferences>
1561+
<preference>
1562+
<name>hAlign</name>
1563+
<value>END</value>
1564+
<read-only>false</read-only>
1565+
</preference>
1566+
</preferences>
1567+
</portlet>
1568+
<title>Platform Logo</title>
1569+
<height>100</height>
1570+
<css-style>
1571+
<margin-top>20</margin-top>
1572+
<margin-bottom>40</margin-bottom>
1573+
<margin-right>20</margin-right>
1574+
<margin-left>0</margin-left>
1575+
</css-style>
1576+
</portlet-application>
1577+
</column>
1578+
</section-columns>
1579+
</container>
1580+
</page>
14641581
</page-set>

0 commit comments

Comments
 (0)