Skip to content

feat(arc-saas): To enhance the user management capabilities of the application. #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
<nb-card class="card-row">
<nb-card-body class="m-0">
<div class="main-wrapper add-lead-wrapper">
<div>
<div class="sign-in-title">
<h2>Add User</h2>
</div>
<form [formGroup]="addUserForm" (ngSubmit)="onSubmit()">
<!-- input fields -->
<div class="input-wrapper">
<div class="input-box">
<div class="input-title">
<span>First Name <span class="required">*</span></span>
</div>
<div class="inputTags">
<div class="input-container">
<input
type="text"
placeholder="Enter First Name"
status="“info”"
formControlName="firstName"
nbInput
/>
<nb-icon
icon="info-outline"
class="info-icon"
nbTooltip="Please enter your first name. This field is required."
></nb-icon>
</div>
<div
class="error-msg"
*ngIf="
addUserForm.get('firstName').hasError('pattern') &&
addUserForm.get('firstName').touched
"
>
First Name must contain only characters.
</div>
</div>
</div>

<div class="input-box">
<div class="input-title">
<span>Last Name <span class="required">*</span></span>
</div>
<div class="inputTags">
<div class="input-container">
<input
type="text"
placeholder="Enter Last Name"
status="“info”"
formControlName="lastName"
nbInput
/>
<nb-icon
icon="info-outline"
class="info-icon"
nbTooltip="Please enter your Last name. This field is required."
></nb-icon>
</div>
<div
class="error-msg"
*ngIf="
addUserForm.get('lastName').hasError('pattern') &&
addUserForm.get('lastName').touched
"
>
Last Name must contain only characters.
</div>
</div>
</div>

<!-- email -->
<div class="input-box">
<div class="input-title">
<span>Email <span class="required">*</span></span>
</div>
<div class="inputTags">
<div class="input-container">
<input
type="Email"
placeholder="Email"
status="“info”"
fieldSize="medium"
formControlName="email"
nbInput
/>
<nb-icon
icon="info-outline"
class="info-icon"
nbTooltip="Please enter your Mail id. This field is required."
></nb-icon>
</div>
</div>

<div
class="error-msg"
*ngIf="
addUserForm.get('email').hasError('required') &&
addUserForm.get('email').touched
"
>
Email is required.
</div>
<div
class="error-msg"
*ngIf="
addUserForm.get('email').hasError('email') &&
addUserForm.get('email').touched
"
>
Invalid email format.
</div>
</div>
<!-- Validated or not -->

<!-- Role Drop down -->
<div class="input-box">
<div class="input-title">
<span>Role <span class="required">*</span></span>
</div>
<div class="select">
<nb-select
class="dropdown-wrapper"
placeholder="Select Your Role"
size="large"
formControlName="role"
>
<nb-option
*ngFor="let option of roleOptions"
[value]="option.value"
>
{{ option.label }}
</nb-option>
</nb-select>
</div>
</div>

<!-- Role Drop down -->
<div class="input-box">
<div class="input-title">
<span>IDP <span class="required">*</span></span>
</div>
<div class="select">
<nb-select
class="dropdown-wrapper"
placeholder="Select Your IDP"
size="large"
formControlName="idp"
>
<nb-option
*ngFor="let option of idpOptions"
[value]="option.value"
>
{{ option.label }}
</nb-option>
</nb-select>
</div>
</div>
</div>

<!-- signup button -->
<div class="btn">
<button
nbButton
size="medium"
class="btn-danger"
(click)="onCancel()"
>
Cancel
</button>
<button
nbButton
size="medium"
class="btn-danger"
[disabled]="!addUserForm.valid"
type="submit"
>
Submit
</button>
</div>
</form>
</div>
</div>
</nb-card-body>
</nb-card>
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
@use '../../../on-boarding/styles/forms.style.scss' as *;


:host {
.logo {
padding-top: 10%;
}

.description {
padding-top: 10%;
}

.login-btn {
padding-top: 7%;
}

.footer {
padding-top: 7%;
}
}
.btn{
.btn-danger{
background-color: #f00a18 !important;
color: white !important;
}
}

.error-msg {
color: red;
font-size: 14px;
margin-top: 3px;
}

.required {
color: red;
}

.input-container {
position: relative;
}

.info-icon {
margin-left: 8px;
cursor: pointer;
color: #007bff;
}

.input-box {
position: relative;

.input-title {
margin-bottom: 10px;
font-weight: bold;
font-size: 14px;
}
.input-box{
.input{
.payment-comment-box{
min-width: 100%;
border: 1px solid #dcdcdc;
}
}
}




nb-select{
.select-button{
height: 46px !important;
margin-top: 5px !important;
}
}


.input-container {
position: relative;
display: flex;
align-items: center;
}

input[nbInput] {
padding-right: 2.5rem;
}

.info-icon {
position: absolute;
right: 0.5rem;
font-size: 1.2rem;
color: #007bff;
}

.inputTags {
position: relative;

.input-container {
display: flex;
align-items: center;
position: relative;

input {
width: 100%;
padding: 10px;
padding-right: 30px;
border: 1px solid #dcdcdc;
border-radius: 4px;
box-sizing: border-box;
}

.info-icon {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
color: #007bff;
font-size: 18px;
z-index: 1;
}
}
}
}

.input-wrapper{
.input-box{
.select{
.dropdown-wrapper{
min-width: 100%;
margin-top: 5px;
border: 1px solid #dcdcdc;
border-radius: 3px;
}
}
}
}

.input-box {
.inputTags {
input {
margin: 5px 0;
width: 100% !important;
max-width: 100%;
border-radius: 0;
background: #fff;
}
}
}

.card-row{
border-radius: 16px;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
max-width: 100%;
margin: auto;
.sign-in-title h2 {
font-size: 34px;
}
.sign-in-title h3 {
font-size: 20px;
color: #525252;
margin-top: 0px;
margin-bottom: 10px;
}

}


.add-lead-wrapper {
.btn {
margin-top: 30px;
justify-content: space-between;
display: flex

}
}

.address-input-box {
width: 100%;
}

.main-wrapper {
padding-top: 10px;
}

.green-icon {
color: green;
}

.invisible-icon {
display: none;
}

.add-lead-wrapper {
h2 {
margin-top: 0 !important;
}
}
Loading