Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
9cacd3f4
There was a problem fetching the pipeline stages.
Verified
Commit
9cacd3f4
authored
7 years ago
by
Lukas Maximilian Kimpel
Browse files
Options
Downloads
Patches
Plain Diff
Add name attributes to input fields with [(ngModel)]
parent
24becc89
1 merge request
!100
Resolve "Remove short ID from room creation/room edit"
Pipeline
#13782
passed with stage
in 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/dialogs/room-create/room-create.component.html
+3
-5
3 additions, 5 deletions
...components/dialogs/room-create/room-create.component.html
src/app/components/dialogs/room-edit/room-edit.component.html
+3
-2
3 additions, 2 deletions
...app/components/dialogs/room-edit/room-edit.component.html
with
6 additions
and
7 deletions
src/app/components/dialogs/room-create/room-create.component.html
+
3
−
5
View file @
9cacd3f4
<form
(ngSubmit)=
"addRoom(longRoomName.value, description.value)"
>
<form
(ngSubmit)=
"addRoom(longRoomName.value, description.value)"
>
<div
fxLayout=
"column"
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<div
fxLayout=
"column"
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<mat-form-field>
<mat-form-field>
<input
(keypress)=
"resetEmptyInputs()"
matInput
#longRoomName
class=
"input-block"
type=
"text"
placeholder=
"Name"
<input
(keypress)=
"resetEmptyInputs()"
matInput
#longRoomName
class=
"input-block"
type=
"text"
maxlength=
"50"
placeholder=
"Room name"
maxlength=
"50"
[(ngModel)]=
"longName"
name=
"roomName"
/>
[(ngModel)]=
"longName"
name=
"LongName"
/>
<mat-hint
align=
"start"
*ngIf=
"!emptyInputs"
><strong>
Max. letters / signs:
</strong></mat-hint>
<mat-hint
align=
"start"
*ngIf=
"!emptyInputs"
><strong>
Max. letters / signs:
</strong></mat-hint>
<mat-hint
align=
"end"
*ngIf=
"!emptyInputs"
>
{{longRoomName.value.length}} / 50
</mat-hint>
<mat-hint
align=
"end"
*ngIf=
"!emptyInputs"
>
{{longRoomName.value.length}} / 50
</mat-hint>
<mat-hint
align=
"start"
*ngIf=
"emptyInputs"
><strong>
Input is required
</strong></mat-hint>
<mat-hint
align=
"start"
*ngIf=
"emptyInputs"
><strong>
Input is required
</strong></mat-hint>
...
@@ -13,8 +12,7 @@
...
@@ -13,8 +12,7 @@
</mat-form-field>
</mat-form-field>
<mat-form-field>
<mat-form-field>
<textarea
(keypress)=
"resetEmptyInputs()"
matInput
#description
type=
"text"
<textarea
(keypress)=
"resetEmptyInputs()"
matInput
#description
type=
"text"
placeholder=
"Description"
maxlength=
"255"
placeholder=
"Description"
maxlength=
"255"
name=
"description"
></textarea>
[(ngModel)]=
"shortName"
></textarea>
<mat-hint
align=
"start"
*ngIf=
"!emptyInputs"
><strong>
Max. letters / signs:
</strong></mat-hint>
<mat-hint
align=
"start"
*ngIf=
"!emptyInputs"
><strong>
Max. letters / signs:
</strong></mat-hint>
<mat-hint
align=
"end"
*ngIf=
"!emptyInputs"
>
{{description.value.length}} / 255
</mat-hint>
<mat-hint
align=
"end"
*ngIf=
"!emptyInputs"
>
{{description.value.length}} / 255
</mat-hint>
<mat-hint
align=
"start"
*ngIf=
"emptyInputs"
><strong>
Input is required
</strong></mat-hint>
<mat-hint
align=
"start"
*ngIf=
"emptyInputs"
><strong>
Input is required
</strong></mat-hint>
...
...
This diff is collapsed.
Click to expand it.
src/app/components/dialogs/room-edit/room-edit.component.html
+
3
−
2
View file @
9cacd3f4
<div
*ngIf=
"editRoom"
>
<div
*ngIf=
"editRoom"
>
<mat-form-field
class=
"input-block"
>
<mat-form-field
class=
"input-block"
>
<input
[(ngModel)]=
"editRoom.name"
#roomName
matInput
placeholder=
"Room name"
/>
<input
[(ngModel)]=
"editRoom.name"
#roomName
matInput
placeholder=
"Room name"
name=
"room-name"
/>
</mat-form-field>
</mat-form-field>
<mat-form-field
class=
"input-block"
>
<mat-form-field
class=
"input-block"
>
<textarea
[(ngModel)]=
"editRoom.description"
#roomDescription
matInput
matTextareaAutosize
<textarea
[(ngModel)]=
"editRoom.description"
#roomDescription
matInput
matTextareaAutosize
matAutosizeMinRows=
"2"
matAutosizeMaxRows=
"5"
placeholder=
"Description"
></textarea>
matAutosizeMinRows=
"2"
matAutosizeMaxRows=
"5"
placeholder=
"Description"
name=
"description"
>
</textarea>
</mat-form-field>
</mat-form-field>
<div
fxLayout=
"row"
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<div
fxLayout=
"row"
fxLayoutAlign=
"center"
fxLayoutGap=
"10px"
>
<button
(click)=
"dialogRef.close('abort')"
mat-button
color=
"primary"
>
<button
(click)=
"dialogRef.close('abort')"
mat-button
color=
"primary"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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