Skip to content

Commit 933870f

Browse files
committed
Use Bootstrap 5 notation
1 parent 99562cd commit 933870f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

LinkDotNet.Blog.Web/Shared/Admin/CreateNewBlogPost.razor

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
<EditForm Model="@_model" OnValidSubmit="OnValidBlogPostCreatedAsync">
99
<DataAnnotationsValidator />
1010
<ValidationSummary />
11-
<div class="form-group">
11+
<div class="mb-3">
1212
<label for="title">Title</label>
1313
<InputText class="form-control" id="title" @bind-Value="_model.Title" />
1414
</div>
15-
<div class="form-group">
15+
<div class="mb-3">
1616
<label for="short">Short Description</label>
1717
<InputTextArea class="form-control" id="short" @bind-Value="_model.ShortDescription" rows="4"/>
1818
</div>
19-
<div class="form-group">
19+
<div class="mb-3">
2020
<label for="content">Content</label>
2121
<InputTextArea class="form-control" id="content" @bind-Value="_model.Content" rows="10" />
2222
@* <small id="content" class="form-text text-muted">Drag and drop images to upload and insert picture.</small> *@
2323
</div>
24-
<div class="form-group">
24+
<div class="mb-3">
2525
<label for="preview">Preview-Url</label>
2626
<InputText class="form-control" id="preview" @bind-Value="_model.PreviewImageUrl"/>
2727
</div>
@@ -30,13 +30,11 @@
3030
<label class="form-check-label" for="published">Publish</label><br/>
3131
<small id="published" class="form-text text-muted">If this blog post is only draft uncheck the box</small>
3232
</div>
33-
<div class="form-group">
33+
<div class="mb-3">
3434
<label for="tags">Tags</label>
3535
<InputText class="form-control" id="tags" @bind-Value="_model.Tags"/>
3636
</div>
37-
3837
<button class="btn btn-primary" type="submit">Submit</button>
39-
4038
</EditForm>
4139
</div>
4240
<div class="preview">

0 commit comments

Comments
 (0)