Skip to content
Snippets Groups Projects
Commit 9fac9c31 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #7721 starter contact group front

parent f9e5e70a
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
<mat-icon class="maarchLogo" [svgIcon]="mobileQuery.matches ? 'maarchLogoOnly' : 'maarchLogo'"></mat-icon> <mat-icon class="maarchLogo" [svgIcon]="mobileQuery.matches ? 'maarchLogoOnly' : 'maarchLogo'"></mat-icon>
</button> </button>
<h1 class="admin-toolbar-title" *ngIf="!creationMode">{{lang.contactsGroupModification}} <h1 class="admin-toolbar-title" *ngIf="!creationMode">{{lang.contactsGroupModification}}
<small [class.hide-for-mobile]="mobileQuery.matches">{{action.label_action}}</small> <small [class.hide-for-mobile]="mobileQuery.matches">{{contactsGroup.label}}</small>
</h1> </h1>
<h1 class="admin-toolbar-title" *ngIf="creationMode">{{lang.contactGroupCreation}} <h1 class="admin-toolbar-title" *ngIf="creationMode">{{lang.contactGroupCreation}}
<small [class.hide-for-mobile]="mobileQuery.matches">{{action.label_action}}</small> <small [class.hide-for-mobile]="mobileQuery.matches">{{contactsGroup.label}}</small>
</h1> </h1>
<span style="flex: 1 1 auto;"></span> <span style="flex: 1 1 auto;"></span>
<menu-top></menu-top> <menu-top></menu-top>
...@@ -23,32 +23,32 @@ ...@@ -23,32 +23,32 @@
<mat-spinner style="margin:auto;"></mat-spinner> <mat-spinner style="margin:auto;"></mat-spinner>
</div> </div>
<mat-card *ngIf="!loading" class="card-app-content"> <mat-card *ngIf="!loading" class="card-app-content">
<form class="form-horizontal" (ngSubmit)="onSubmit()" #actionsFormUp="ngForm"> <form class="form-horizontal" (ngSubmit)="onSubmit()" #contactsGroupFormUp="ngForm">
<div class="form-group"> <div class="form-group">
<div class="col-sm-12"> <div class="col-sm-12">
<mat-form-field> <mat-form-field>
<input matInput [(ngModel)]="action.label_action" required name="action_name" id="action_name" title="{{lang.label}}" <input matInput [(ngModel)]="contactsGroup.label" required name="label" id="label" title="{{lang.label}}"
type="text" placeholder="{{lang.label}}" maxlength="255"> type="text" placeholder="{{lang.label}}" maxlength="32">
</mat-form-field> </mat-form-field>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-sm-12"> <div class="col-sm-12">
<mat-form-field> <mat-form-field>
<input matInput [(ngModel)]="action.label_action" required name="description" id="description" title="{{lang.description}}" <input matInput [(ngModel)]="contactsGroup.description" required name="description" id="description" title="{{lang.description}}"
type="text" placeholder="{{lang.description}}" maxlength="255"> type="text" placeholder="{{lang.description}}" maxlength="255">
</mat-form-field> </mat-form-field>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-sm-6" style="text-align:center;"> <div class="col-sm-6" style="text-align:center;">
<mat-slide-toggle name="history" title="{{lang.contactsGroupDesc}}" id="history" color="primary" [(ngModel)]="action.history" <mat-slide-toggle name="public" title="{{lang.contactsGroupDesc}}" id="public" color="primary" [(ngModel)]="contactsGroup.public"
[checked]="action.history == 'Y'">{{lang.public}}</mat-slide-toggle> [checked]="contactsGroup.public">{{lang.public}}</mat-slide-toggle>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="col-sm-12" style="text-align:center;"> <div class="col-sm-12" style="text-align:center;">
<button mat-raised-button color="primary" type="submit" [disabled]="!actionsFormUp.form.valid">{{lang.save}}</button> <button mat-raised-button color="primary" type="submit" [disabled]="!contactsGroupFormUp.form.valid">{{lang.save}}</button>
</div> </div>
</div> </div>
</form> </form>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<mat-sidenav #snav2 [mode]="mobileQuery.matches ? 'over' : 'side'" [fixedInViewport]="mobileQuery.matches" fixedTopGap="56" <mat-sidenav #snav2 [mode]="mobileQuery.matches ? 'over' : 'side'" [fixedInViewport]="mobileQuery.matches" fixedTopGap="56"
position='end' [opened]="mobileQuery.matches ? false : false" style="overflow-x:hidden;"> position='end' [opened]="mobileQuery.matches ? false : false" style="overflow-x:hidden;">
<mat-list> <mat-list>
<h3 mat-subheader>Action(s)</h3> <h3 mat-subheader>{{lang.contactsGroups}}</h3>
</mat-list> </mat-list>
</mat-sidenav> </mat-sidenav>
</mat-sidenav-container> </mat-sidenav-container>
......
...@@ -50,6 +50,8 @@ export class ContactsGroupAdministrationComponent implements OnInit { ...@@ -50,6 +50,8 @@ export class ContactsGroupAdministrationComponent implements OnInit {
this.loading = false; this.loading = false;
}); });
} else {
this.loading = false;
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment