generated from jric11/baseProject
a bunch of stuff happened. I'll do better next commit...
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:output method="html" encoding="utf-8" indent="yes"/>
|
||||
<xsl:param name="CSRF_TOKEN"/>
|
||||
<xsl:template match="/">
|
||||
<div class="py-4">
|
||||
<h1 class="h3">Application access</h1>
|
||||
<p class="text-muted">Choose a user, then select the applications they may open.</p>
|
||||
<xsl:choose>
|
||||
<xsl:when test="access/@setup_required = 'true'">
|
||||
<div class="alert alert-info">Set up the application directory to start assigning access.</div>
|
||||
<form action="main.php" method="post">
|
||||
<input type="hidden" name="action" value="Applications.setup"/>
|
||||
<input type="hidden" name="csrf_token" value="{$CSRF_TOKEN}"/>
|
||||
<button type="submit" class="btn btn-primary">Set up application directory</button>
|
||||
</form>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:if test="not(access/account_links)">
|
||||
<div class="alert alert-info">Enable existing account links to prepare users for shared sign-in.</div>
|
||||
<form action="main.php" method="post" class="mb-3">
|
||||
<input type="hidden" name="action" value="Applications.setup"/>
|
||||
<input type="hidden" name="csrf_token" value="{$CSRF_TOKEN}"/>
|
||||
<button type="submit" class="btn btn-outline-primary">Enable account links</button>
|
||||
</form>
|
||||
</xsl:if>
|
||||
<xsl:if test="access/@saved = 'true'"><div class="alert alert-success" role="status">Application access saved.</div></xsl:if>
|
||||
<form action="main.php" method="get" class="mb-4">
|
||||
<input type="hidden" name="Xaction" value="Applications.manageAccess"/>
|
||||
<label for="access_user" class="form-label">User</label>
|
||||
<div class="d-flex gap-2">
|
||||
<select class="form-select" id="access_user" name="user_serial" required="required">
|
||||
<option value="">Choose a user</option>
|
||||
<xsl:for-each select="access/users/record">
|
||||
<option value="{user_serial}">
|
||||
<xsl:if test="user_serial = /access/@selected_user"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
|
||||
<xsl:value-of select="user_name"/><xsl:if test="user_status != 'active'"> (inactive)</xsl:if>
|
||||
</option>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
<button type="submit" class="btn btn-outline-primary">Load</button>
|
||||
</div>
|
||||
</form>
|
||||
<xsl:if test="access/users/record[user_serial = /access/@selected_user]">
|
||||
<form action="main.php" method="post">
|
||||
<input type="hidden" name="action" value="Applications.saveAccess"/>
|
||||
<input type="hidden" name="csrf_token" value="{$CSRF_TOKEN}"/>
|
||||
<input type="hidden" name="user_serial" value="{access/@selected_user}"/>
|
||||
<fieldset class="mb-3"><legend class="h5">Assigned applications</legend>
|
||||
<xsl:for-each select="access/applications/record">
|
||||
<div class="form-check mb-2">
|
||||
<input class="form-check-input" type="checkbox" name="applications[]" id="application_{application_serial}" value="{application_serial}">
|
||||
<xsl:if test="assigned = '1'"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
|
||||
</input>
|
||||
<label class="form-check-label" for="application_{application_serial}">
|
||||
<xsl:value-of select="application_name"/><xsl:if test="application_active != '1'"> (application disabled)</xsl:if>
|
||||
</label>
|
||||
<xsl:if test="/access/account_links">
|
||||
<xsl:variable name="application" select="application_serial"/>
|
||||
<div class="mt-2 mb-3">
|
||||
<label class="form-label" for="local_user_{application_serial}">Existing <xsl:value-of select="application_name"/> user ID</label>
|
||||
<input class="form-control" type="number" min="1" step="1" id="local_user_{application_serial}" name="local_users[{application_serial}]" value="{/access/account_links/record[application_serial = $application]/local_user_serial}"/>
|
||||
<div class="form-text">Use the existing account's user_serial from this application's Users table. Clearing this field removes the account link when you save.</div>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</fieldset>
|
||||
<button type="submit" class="btn btn-primary">Save access</button>
|
||||
</form>
|
||||
</xsl:if>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -6,6 +6,7 @@
|
||||
<!-- Parameters -->
|
||||
|
||||
<xsl:param name="VERSION">1.0</xsl:param>
|
||||
<xsl:param name="CSRF_TOKEN"/>
|
||||
<xsl:param name="PAGE-TITLE">Change Password</xsl:param>
|
||||
<xsl:param name="PAGE-NAME">changePassword</xsl:param>
|
||||
|
||||
@@ -28,6 +29,7 @@
|
||||
|
||||
<input type="hidden" name="action" value="Users.changePassword"/>
|
||||
<input type="hidden" name="step" value="change"/>
|
||||
<input type="hidden" name="csrf_token" value="{$CSRF_TOKEN}"/>
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
+16
-8
@@ -7,6 +7,11 @@
|
||||
|
||||
<xsl:param name="VERSION">1.0</xsl:param>
|
||||
<xsl:param name="APPLICATION_NAME"></xsl:param>
|
||||
<xsl:param name="APPLICATION_MNEMONIC"/>
|
||||
<xsl:param name="COPYRIGHT"/>
|
||||
<xsl:param name="THEME">light</xsl:param>
|
||||
<xsl:param name="USER_FULL_NAME"/>
|
||||
<xsl:param name="USER_ROLE"/>
|
||||
<xsl:param name="NAVIGATION_AREA_WIDTH">xxl</xsl:param>
|
||||
<xsl:param name="CONTENT_AREA_WIDTH">xxl</xsl:param>
|
||||
|
||||
@@ -28,7 +33,7 @@
|
||||
<xsl:value-of select="$APPLICATION_NAME"/>
|
||||
</title>
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="images/baseproject-logo.png"/>
|
||||
<link rel="icon" type="image/x-icon" href="images/dec-international-logo.png"/>
|
||||
|
||||
<link href="css/themes/Sandstone/bootstrap.min.css?version={$VERSION}" rel="stylesheet" media="screen"/>
|
||||
<link href="css/bootstrap-icons.min.css?version={$VERSION}" rel="stylesheet" media="screen"/>
|
||||
@@ -80,12 +85,12 @@
|
||||
|
||||
<ul class="navbar-nav mx-auto">
|
||||
|
||||
<li class="nav-item">
|
||||
<!-- <li class="nav-item">
|
||||
<a class="nav-link user-subscriptions" href="javascript:void(0);">
|
||||
<i class="bi bi-credit-card me-1" aria-hidden="true"/>
|
||||
PAYMENTS
|
||||
</a>
|
||||
</li>
|
||||
</li>-->
|
||||
|
||||
<!-- MANAGE/REPORTS/SETUP is only available to Administrators -->
|
||||
|
||||
@@ -95,7 +100,7 @@
|
||||
<xsl:text> | </xsl:text>
|
||||
</li>-->
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<!-- <li class="nav-item dropdown">
|
||||
|
||||
<a href="javascript:void(0);" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="bi bi-kanban me-1" aria-hidden="true"/>
|
||||
@@ -126,7 +131,7 @@
|
||||
<i class="bi bi-printer me-1" aria-hidden="true"/>
|
||||
REPORTS
|
||||
</a>
|
||||
</li>
|
||||
</li> -->
|
||||
|
||||
<!-- <li class="nav-link disabled">
|
||||
<xsl:text> | </xsl:text>
|
||||
@@ -141,9 +146,9 @@
|
||||
|
||||
</xsl:if>
|
||||
|
||||
<li class="nav-link disabled">
|
||||
<!-- <li class="nav-link disabled">
|
||||
<xsl:text> | </xsl:text>
|
||||
</li>
|
||||
</li>-->
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link start-support-ticket" href="javascript:void(0);">
|
||||
@@ -213,6 +218,9 @@
|
||||
<i class="bi bi-person-circle me-2"/>Users
|
||||
</a>
|
||||
|
||||
<a class="dropdown-item ps-2" href="main.php?Xaction=Applications.manageAccess">
|
||||
<i class="bi bi-grid me-2"/>Application Access
|
||||
</a>
|
||||
<a class="dropdown-item ps-2 view-journal" href="javascript:void(0);">
|
||||
<i class="bi bi-journal me-2"/>Journal
|
||||
</a>
|
||||
@@ -343,7 +351,7 @@
|
||||
|
||||
<!-- Common Submit Form -->
|
||||
|
||||
<form action="./" method="post" id="formSubmit"/>
|
||||
<form action="main.php" method="post" id="formSubmit"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<p class="text">Username: <xsl:value-of select="//user/record/user_name"/></p>
|
||||
<p class="text">Password: <xsl:value-of select="$USER-TEMP-PASSWORD"/></p>
|
||||
|
||||
<p class="text">You login in at the following web address: <a href="https://ahr.realestatedatainc.com" target="_blank">Atlanta Housing Report</a></p>
|
||||
<p class="text">Sign in to the DEC Authentication Service with these credentials. You will then be asked to choose a new password.</p>
|
||||
|
||||
<p class="text">Thank you,</p>
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
<p class="text">Password: <xsl:value-of select="$USER-TEMP-PASSWORD"/></p>
|
||||
|
||||
<p class="text">Click <a href="https://apps.realestatedatainc.com/atlhousingreport/main.php" target="_blank">here</a> to Login.</p>
|
||||
<p class="text">Return to the DEC Authentication Service sign-in page and use this temporary password. You will then be asked to choose a new password.</p>
|
||||
|
||||
<p class="text">Thank you,</p>
|
||||
|
||||
|
||||
+21
-18
@@ -1,21 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:output method="html" indent="yes"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
|
||||
<div class="home pt-5">
|
||||
|
||||
<div class="col text-center">
|
||||
<span class="text-primary fw-bold" style="font-size: 2rem;">
|
||||
<!--<i class="bi bi-cloud me-2"></i>-->
|
||||
Base Project Template
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:output method="html" encoding="utf-8" indent="yes"/>
|
||||
<xsl:param name="USER_FULL_NAME"/>
|
||||
<xsl:template match="/">
|
||||
<div class="home py-4">
|
||||
<h1 class="h3">Your applications</h1>
|
||||
<p class="text-muted">Welcome, <xsl:value-of select="$USER_FULL_NAME"/>. Choose an application to continue.</p>
|
||||
<xsl:choose>
|
||||
<xsl:when test="applications/@setup_required = 'true'"><div class="alert alert-info">Your application dashboard is being configured. Please contact your administrator.</div></xsl:when>
|
||||
<xsl:when test="applications/record">
|
||||
<div class="row g-3"><xsl:for-each select="applications/record">
|
||||
<div class="col-md-6"><div class="card h-100 shadow-sm"><div class="card-body d-flex flex-column">
|
||||
<h2 class="h5"><xsl:value-of select="application_name"/></h2>
|
||||
<p class="text-muted"><xsl:value-of select="application_description"/></p>
|
||||
<a class="btn btn-primary mt-auto align-self-start" href="main.php?Xaction=Applications.launch&application_serial={application_serial}">Open <xsl:value-of select="application_name"/></a>
|
||||
</div></div></div>
|
||||
</xsl:for-each></div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise><div class="alert alert-info">No applications are assigned to your account yet. Please contact your administrator to request access.</div></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
+8
-5
@@ -12,6 +12,7 @@
|
||||
<xsl:param name="INVALID_SIGNIN"/>
|
||||
<xsl:param name="RESET_PASSWORD_SUCCESSFUL"/>
|
||||
<xsl:param name="VERSION"/>
|
||||
<xsl:param name="CSRF_TOKEN"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:text disable-output-escaping="yes"><!DOCTYPE html></xsl:text>
|
||||
@@ -46,8 +47,8 @@
|
||||
<div class="card-body p-4">
|
||||
|
||||
<div class="text-center mb-2">
|
||||
<img src="images/baseproject-logo.png"
|
||||
alt="Base Project Logo"
|
||||
<img src="images/dec-international-logo.png"
|
||||
alt="DEC International Logo"
|
||||
class="mb-1"
|
||||
style="max-width: 200px;"/>
|
||||
|
||||
@@ -71,15 +72,16 @@
|
||||
<div class="alert alert-info d-flex align-items-start py-2" role="alert">
|
||||
<i class="bi bi-info-circle-fill me-2 mt-1"></i>
|
||||
<div>
|
||||
If an account exists for the email address provided, you will receive an email containing a temporary password and a link to reset your password.
|
||||
If an account exists for the username provided, you will receive an email containing a temporary password. Return here to sign in and choose a new password.
|
||||
</div>
|
||||
</div>
|
||||
</xsl:if>
|
||||
|
||||
<form action="{$BTN_SUBMIT}" name="{$FORM_NAME}" method="post" id="{$FORM_NAME}">
|
||||
|
||||
<input type="hidden" name="action" value="Users.login"/>
|
||||
<input type="hidden" name="action" value="SignIn.login"/>
|
||||
<input type="hidden" name="step" value="authenticate"/>
|
||||
<input type="hidden" name="csrf_token" value="{$CSRF_TOKEN}"/>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="user_name" class="form-label small fw-semibold">Username</label>
|
||||
@@ -129,6 +131,7 @@
|
||||
|
||||
<form action="{$BTN_RESET_PASSWORD}" name="reset-password" method="post" id="reset-password">
|
||||
<input type="hidden" id="reset_user_name" name="user_name"/>
|
||||
<input type="hidden" name="csrf_token" value="{$CSRF_TOKEN}"/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -148,4 +151,4 @@
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user