maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
10 deletions
-
docs/en/Tutorials/Todo/Index.md
|
|
|
@ -591,17 +591,16 @@ Open the `Index.razor` file in the `Pages` folder of the *TodoApp.Blazor* projec |
|
|
|
</CardHeader> |
|
|
|
<CardBody> |
|
|
|
<!-- FORM FOR NEW TODO ITEMS --> |
|
|
|
<form id="NewItemForm" |
|
|
|
@onsubmit:preventDefault |
|
|
|
@onsubmit="() => Create()" |
|
|
|
class="form-inline"> |
|
|
|
<input type="text" |
|
|
|
@bind-value="@NewTodoText" |
|
|
|
class="form-control me-2" |
|
|
|
placeholder="enter text..."> |
|
|
|
<button type="submit" class="btn btn-primary">Submit</button> |
|
|
|
<form id="NewItemForm" @onsubmit:preventDefault @onsubmit="() => Create()" class="row row-cols-lg-auto g-3 align-items-center"> |
|
|
|
<div class="col-12"> |
|
|
|
<div class="input-group"> |
|
|
|
<input name="NewTodoText" type="text" @bind-value="@NewTodoText" class="form-control" placeholder="enter text..." /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-12"> |
|
|
|
<button type="submit" class="btn btn-primary">Submit</button> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
|
|
|
|
<!-- TODO ITEMS LIST --> |
|
|
|
<ul id="TodoList"> |
|
|
|
@foreach (var todoItem in TodoItems) |
|
|
|
|