Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
4f1610eb
Verified
Commit
4f1610eb
authored
6 years ago
by
Alex ORLUC
Browse files
Options
Downloads
Patches
Plain Diff
FIX #8139 fix ergo admin securities
parent
d4ea8d89
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/maarch_entreprise/Views/securities-administration.component.html
+31
-35
31 additions, 35 deletions
...entreprise/Views/securities-administration.component.html
with
31 additions
and
35 deletions
apps/maarch_entreprise/Views/securities-administration.component.html
+
31
−
35
View file @
4f1610eb
...
...
@@ -10,22 +10,9 @@
</mat-toolbar>
<mat-sidenav-container
class=
"admin-sidenav-container"
[style.marginTop.px]=
"mobileQuery.matches ? 56 : 0"
>
<mat-sidenav
#snav
[mode]=
"mobileQuery.matches ? 'over' : 'side'"
[fixedInViewport]=
"mobileQuery.matches"
fixedTopGap=
"56"
[opened]=
"mobileQuery.matches ? false : true"
style=
"width:400px;"
>
[opened]=
"mobileQuery.matches ? false : true"
>
<menu-nav></menu-nav>
<mat-divider></mat-divider>
<mat-nav-list>
<h3
mat-subheader
>
{{lang.securityConstraints}}
</h3>
<ng-container
*ngFor=
"let rule of passwordRulesList"
>
<a
mat-list-item
disableRipple=
"true"
*ngIf=
"rule.label != 'lockTime'"
>
<mat-icon
color=
"primary"
mat-list-icon
style=
"margin-bottom: 20px;"
>
<mat-slide-toggle
[checked]=
"rule.enabled"
color=
"primary"
(change)=
"toggleRule(rule);"
></mat-slide-toggle>
</mat-icon>
<p
mat-line
[ngStyle]=
"{'opacity': rule.enabled ? '' : '0.5'}"
(click)=
"toggleRule(rule);"
>
{{passwordRules[rule.label].label}}
</p>
</a>
</ng-container>
</mat-nav-list>
</mat-sidenav>
<mat-sidenav-content>
<div
*ngIf=
"loading"
style=
"display:flex;height:100%;"
>
...
...
@@ -33,30 +20,39 @@
</div>
<mat-card
*ngIf=
"!loading"
class=
"card-app-content"
>
<mat-tab-group>
<mat-tab
label=
"
Mot de passe
"
>
<mat-tab
label=
"
{{lang.password}}
"
>
<form
(ngSubmit)=
"onSubmit()"
#passwordForm
="
ngForm
"
>
<ng-container
*ngFor=
"let rule of passwordRulesList"
>
<mat-form-field
style=
"padding:10px;"
*ngIf=
"rule.enabled && (rule.label == 'minLength' || rule.label == 'historyLastUse' || rule.label == 'renewal')"
>
<input
type=
"number"
[name]=
"rule.label"
[(ngModel)]=
"rule.value"
min=
"1"
pattern=
"^[1-9][0-9]*"
matInput
placeholder=
"{{passwordRules[rule.label].label}}"
required
>
<span
matSuffix
*ngIf=
"rule.label == 'minLength'"
>
{{lang.chars}}
</span>
<span
matSuffix
*ngIf=
"rule.label == 'renewal'"
>
{{lang.days}}
</span>
</mat-form-field>
<div
class=
"col-md-6"
*ngIf=
"rule.enabled && rule.label == 'lockAttempts'"
>
<mat-form-field>
<input
type=
"number"
[name]=
"rule.label"
[(ngModel)]=
"rule.value"
min=
"1"
pattern=
"^[1-9][0-9]*"
matInput
placeholder=
"{{passwordRules[rule.label].label}}"
required
>
<span
matSuffix
*ngIf=
"rule.label == 'minLength'"
>
{{lang.chars}}
</span>
<span
matSuffix
*ngIf=
"rule.label == 'renewal'"
>
{{lang.days}}
</span>
</mat-form-field>
</div>
<div
class=
"col-md-6"
*ngIf=
"rule.enabled && rule.label == 'lockTime'"
>
<mat-form-field>
<input
type=
"number"
[name]=
"rule.label"
[(ngModel)]=
"rule.value"
min=
"1"
pattern=
"^[1-9][0-9]*"
matInput
placeholder=
"{{passwordRules[rule.label].label}}"
required
>
<span
matSuffix
>
minute(s)
</span>
</mat-form-field>
<div
class=
"row"
style=
"min-height: 60px;"
>
<div
class=
"col-md-4"
style=
"margin-top: 15px;"
>
<mat-slide-toggle
*ngIf=
"rule.label != 'lockTime'"
[checked]=
"rule.enabled"
color=
"primary"
(change)=
"toggleRule(rule);"
>
{{passwordRules[rule.label].label}}
</mat-slide-toggle>
</div>
<div
class=
"col-md-8"
>
<mat-form-field
style=
"padding:10px;"
*ngIf=
"rule.enabled && (rule.label == 'minLength' || rule.label == 'historyLastUse' || rule.label == 'renewal')"
>
<input
type=
"number"
[name]=
"rule.label"
[(ngModel)]=
"rule.value"
min=
"1"
pattern=
"^[1-9][0-9]*"
matInput
placeholder=
"{{passwordRules[rule.label].label}}"
required
>
<span
matSuffix
*ngIf=
"rule.label == 'minLength'"
>
{{lang.chars}}
</span>
<span
matSuffix
*ngIf=
"rule.label == 'renewal'"
>
{{lang.days}}
</span>
</mat-form-field>
<div
*ngIf=
"rule.enabled && rule.label == 'lockAttempts'"
>
<mat-form-field>
<input
type=
"number"
[name]=
"rule.label"
[(ngModel)]=
"rule.value"
min=
"1"
pattern=
"^[1-9][0-9]*"
matInput
placeholder=
"{{passwordRules[rule.label].label}}"
required
>
<span
matSuffix
*ngIf=
"rule.label == 'minLength'"
>
{{lang.chars}}
</span>
<span
matSuffix
*ngIf=
"rule.label == 'renewal'"
>
{{lang.days}}
</span>
</mat-form-field>
</div>
<div
*ngIf=
"rule.enabled && rule.label == 'lockTime'"
>
<mat-form-field>
<input
type=
"number"
[name]=
"rule.label"
[(ngModel)]=
"rule.value"
min=
"1"
pattern=
"^[1-9][0-9]*"
matInput
placeholder=
"{{passwordRules[rule.label].label}}"
required
>
<span
matSuffix
>
{{lang.minutes}}
</span>
</mat-form-field>
</div>
</div>
</div>
</ng-container>
<div
class=
"col-md-12 text-center"
style=
"padding:10px;"
>
<button
mat-raised-button
type=
"submit"
color=
"primary"
[disabled]=
"!passwordForm.valid || checkModif()"
>
{{lang.validate}}
</button>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment