update form id & name

This commit is contained in:
Chneemann 2024-05-31 18:41:36 +02:00
parent 2b162a828d
commit d34c253089
7 changed files with 33 additions and 8 deletions

View file

@ -45,7 +45,14 @@
} @else { } @else {
<div class="channelName"> <div class="channelName">
<img src="./assets/img/hashtag.svg" alt="" /> <img src="./assets/img/hashtag.svg" alt="" />
<input type="text" [(ngModel)]="nameValue" class="inputName" /> <input
type="text"
[(ngModel)]="nameValue"
class="inputName"
id="inputName"
name="inputName"
autocomplete="off"
/>
</div> </div>
} } } }
</div> </div>

View file

@ -22,6 +22,8 @@
type="file" type="file"
#fileInput #fileInput
id="file" id="file"
name="file"
autocomplete="off"
style="display: none" style="display: none"
(change)="onFileChange($event)" (change)="onFileChange($event)"
multiple multiple

View file

@ -1,19 +1,22 @@
<section> <section>
@if (checkCurrentChannel(currentChannel) == 'searchBar') { @if (checkCurrentChannel(currentChannel) == 'searchBar') {
<!-----Searchwindow at the sidebar-----> <!----- Searchwindow ----->
<div class="headerSearchBar"> <div class="headerSearchBar">
<p>{{ "main-chat.message" | translate }}</p> <p>{{ "main-chat.message" | translate }}</p>
<input <input
type="text" type="text"
id="searchInput"
name="searchInput"
autocomplete="off"
placeholder="{{ 'main-chat.placeholder' | translate }}" placeholder="{{ 'main-chat.placeholder' | translate }}"
[(ngModel)]="chatService.inputValue" [(ngModel)]="chatService.inputValue"
(keyup)="filterChannelAndUser(chatService.inputValue)" (keyup)="filterChannelAndUser(chatService.inputValue)"
/> />
@if (toggleBoolean.openSearchWindow) { @if (toggleBoolean.openSearchWindow) {
<!-----search suggestions-----> <!----- Search suggestions ----->
<div class="filteredElementWindow"> <div class="filteredElementWindow">
@if (firstLetter == '#') { @if (firstLetter == '#') {
<!-- render channels --> <!----- Render channels ----->
@for (i of checkIfUserHasAccessToChannel(); track $index) { @for (i of checkIfUserHasAccessToChannel(); track $index) {
<h3 <h3
class="user" class="user"
@ -21,7 +24,7 @@
[innerHTML]="i.name | highlight : chatService.inputValue" [innerHTML]="i.name | highlight : chatService.inputValue"
></h3> ></h3>
} } @else if (firstLetter == '@') { } } @else if (firstLetter == '@') {
<!-- render users --> <!----- Render users ----->
@for (i of userService.allUsers; track $index) { @for (i of userService.allUsers; track $index) {
<div class="user" (click)="chooseElement(i)"> <div class="user" (click)="chooseElement(i)">
<div class="positionImgs"> <div class="positionImgs">
@ -58,7 +61,7 @@
</app-chat-content> </app-chat-content>
</div> </div>
} @else { @if(checkCurrentChannel(currentChannel) == 'allPrvChannels'){ } @else { @if(checkCurrentChannel(currentChannel) == 'allPrvChannels'){
<!------------shwo prv chat-----------> <!----- privat chat ----->
@for (user of getPrvChat(currentChannel); track user; let i = $index) { @for (user of getPrvChat(currentChannel); track user; let i = $index) {
<div class="headerPrvChat"> <div class="headerPrvChat">
<div class="headlinePrvChat" (click)="openUserProfil()"> <div class="headlinePrvChat" (click)="openUserProfil()">
@ -105,7 +108,7 @@
> >
</app-chat-content> </app-chat-content>
} } @else if (checkCurrentChannel(currentChannel) == 'allChannels') { } } @else if (checkCurrentChannel(currentChannel) == 'allChannels') {
<!-------show public channel-chat -----------> <!----- channel ----->
@for(channel of getChannelName(currentChannel); track channel) { @for(channel of getChannelName(currentChannel); track channel) {
<div class="header"> <div class="header">
<div class="headline" (click)="showMenu()"> <div class="headline" (click)="showMenu()">
@ -162,7 +165,7 @@
> >
</app-chat-content> </app-chat-content>
} }
<!-- Channel informations dialog --> <!----- Channel informations dialog ----->
@if (openMenu) { @if (openMenu) {
<app-channel-informations <app-channel-informations
[viewWidth]="viewWidth" [viewWidth]="viewWidth"

View file

@ -101,6 +101,9 @@
</div> </div>
<input <input
type="text" type="text"
id="userName"
name="userName"
autocomplete="off"
class="inputfieldStyle" class="inputfieldStyle"
[(ngModel)]="userName" [(ngModel)]="userName"
(keyup)="filterUsers(userName)" (keyup)="filterUsers(userName)"

View file

@ -32,6 +32,8 @@
</div> </div>
<input <input
type="text" type="text"
id="channelName"
name="channelName"
class="textfieldStyle hashtagPadding" class="textfieldStyle hashtagPadding"
placeholder="{{ 'add-new-channel.placeholder' | translate }}" placeholder="{{ 'add-new-channel.placeholder' | translate }}"
maxlength="20" maxlength="20"
@ -47,6 +49,8 @@
id="" id=""
cols="30" cols="30"
rows="10" rows="10"
id="channelDescription"
name="channelDescription"
class="textfieldStyle" class="textfieldStyle"
[(ngModel)]="channelDescription" [(ngModel)]="channelDescription"
placeholder="{{ 'add-new-channel.placeholder2' | translate }}" placeholder="{{ 'add-new-channel.placeholder2' | translate }}"

View file

@ -36,6 +36,7 @@
[(ngModel)]="userService.nameValue" [(ngModel)]="userService.nameValue"
required required
[disabled]="asGuestOnline" [disabled]="asGuestOnline"
id="fullName"
name="fullName" name="fullName"
/> />
} @else { } @else {
@ -48,6 +49,7 @@
required required
minlength="3" minlength="3"
(ngModelChange)="checkIfUserNameIsValid($event)" (ngModelChange)="checkIfUserNameIsValid($event)"
id="fullName"
name="fullName" name="fullName"
/> />
} }
@ -65,6 +67,7 @@
class="inputDisabled" class="inputDisabled"
type="email" type="email"
required required
id="emailValue"
name="emailValue" name="emailValue"
[(ngModel)]="userService.emailValue" [(ngModel)]="userService.emailValue"
[disabled]="asGuestOnline" [disabled]="asGuestOnline"

View file

@ -1,5 +1,8 @@
<div class="inputPosition"> <div class="inputPosition">
<input <input
id="searchField"
name="searchField"
autocomplete="off"
type="text" type="text"
maxlength="24" maxlength="24"
placeholder="{{ 'search-bar.placeholder' | translate }}" placeholder="{{ 'search-bar.placeholder' | translate }}"