added description textarea
This commit is contained in:
parent
a868777678
commit
f6aa08a3a7
2 changed files with 34 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
onsubmit="return false"
|
onsubmit="return false"
|
||||||
>
|
>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title">
|
<div class="title headline">
|
||||||
<p>Title<span class="red-dot">*</span></p>
|
<p>Title<span class="red-dot">*</span></p>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
|
|
@ -17,6 +17,9 @@
|
||||||
name="title"
|
name="title"
|
||||||
#title="ngModel"
|
#title="ngModel"
|
||||||
(input)="saveTaskData()"
|
(input)="saveTaskData()"
|
||||||
|
placeholder="{{
|
||||||
|
taskDataEdit.title ? taskDataEdit.title : 'Enter a description'
|
||||||
|
}}"
|
||||||
[(ngModel)]="taskDataEdit.title"
|
[(ngModel)]="taskDataEdit.title"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
required
|
required
|
||||||
|
|
@ -27,6 +30,30 @@
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="description headline">
|
||||||
|
<p>Description<span class="red-dot">*</span></p>
|
||||||
|
<textarea
|
||||||
|
id="description"
|
||||||
|
rows="5"
|
||||||
|
name="description"
|
||||||
|
#description="ngModel"
|
||||||
|
minlength="10"
|
||||||
|
(input)="saveTaskData()"
|
||||||
|
placeholder="{{
|
||||||
|
taskDataEdit.description
|
||||||
|
? taskDataEdit.description
|
||||||
|
: 'Enter a description'
|
||||||
|
}}"
|
||||||
|
[(ngModel)]="taskDataEdit.description"
|
||||||
|
autocomplete="off"
|
||||||
|
required
|
||||||
|
></textarea>
|
||||||
|
<div class="error-msg">
|
||||||
|
@if (!description.valid && description.touched) {
|
||||||
|
<p>You must enter a description. (min. 10 letters)</p>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,12 @@ select:valid {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.headline {
|
||||||
|
p {
|
||||||
|
color: var(--very-dark-gray);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue