diff --git a/notes/Views/Notebook/Create.cshtml b/notes/Views/Notebook/Create.cshtml index 3a639d9..4a505f8 100644 --- a/notes/Views/Notebook/Create.cshtml +++ b/notes/Views/Notebook/Create.cshtml @@ -15,7 +15,7 @@
@Html.LabelFor(model => model.Title, htmlAttributes: new{@class = "control-label col-md-2"})
- @Html.EditorFor(model => model.Title, new {htmlAttributes = new { @class ="form-control"}}) + @Html.EditorFor(model => model.Title, new {htmlAttributes = new { @class ="form-control bg-info"}}) @Html.ValidationMessageFor(model => model.Title, "Write Title", new {@class = "text-danger"}) diff --git a/notes/Views/Notebook/Edit.cshtml b/notes/Views/Notebook/Edit.cshtml index 4aeef57..4d1f3fb 100644 --- a/notes/Views/Notebook/Edit.cshtml +++ b/notes/Views/Notebook/Edit.cshtml @@ -11,13 +11,18 @@ { @Html.AntiForgeryToken() + + + + + +
+
@Html.ValidationSummary(true, "", new {@class = "text-danger"})
@Html.LabelFor(model => model.Title, htmlAttributes: new{@class = "control-label col-md-2"})
- @Html.EditorFor(model => model.Title, new {htmlAttributes = new { @class ="form-control"}}) - + @Html.EditorFor(model => model.Title, new {htmlAttributes = new { @class ="form-control w-auto bg-light"} }) + @Html.ValidationMessageFor(model => model.Title, "", new {@class = "text-danger"}) @Html.ValidationMessageFor(model => model.Title, "", new {@class = "text-danger"})
@@ -28,7 +33,7 @@
@Html.LabelFor(model => model.Description, htmlAttributes: new{@class = "control-label col-md-2"})
- @Html.TextAreaFor(model => model.Description, new {htmlAttributes = new { @class ="form-control"}}) + @Html.TextAreaFor(model => model.Description, new {htmlAttributes = new { @class ="form-control bg-light"}}) @Html.ValidationMessageFor(model => model.Description, "", new {@class = "text-danger"}) @@ -43,8 +48,11 @@
+
} -@Html.ActionLink("Back to list", "Index") \ No newline at end of file +@Html.ActionLink("Back to list", "Index", null,null, new { @class = "btn btn-success btn-large" }) \ No newline at end of file diff --git a/notes/Views/Notebook/Index.cshtml b/notes/Views/Notebook/Index.cshtml index fb45ccc..3561ff0 100644 --- a/notes/Views/Notebook/Index.cshtml +++ b/notes/Views/Notebook/Index.cshtml @@ -8,31 +8,41 @@
There are @Model.Count() notes on our page
- + +
@foreach (var item in Model) { - + + }
-

Notes

+

Notes

+

@Html.DisplayFor(modelItem => item.Title)

-
- Created:
+
+ Date of creation:   @Html.DisplayFor(modelItem => item.Created)
- Edited:
+ Date of edition:   @Html.DisplayFor(modelItem => item.DateOfEdition) + +
+ @Html.ActionLink("Edit", "Edit", new { id = item.Id}, new { @class = "btn btn-primary" }) @Html.ActionLink("Details", "Details", new {id = item.Id}, new { @class = "btn btn-info" }) @Html.ActionLink("Delete", "Delete", new {id = item.Id}, new { @class = "btn btn-danger" }) + + +
-@Html.ActionLink("Create New", "Create",null,null, new { @class = "btn btn-success btn-large" }) \ No newline at end of file + +@Html.ActionLink("Create New", "Create",null,null, new { @class = "btn btn-success btn-large" }) diff --git a/notes/appsettings.json b/notes/appsettings.json index fb9b2cf..daf37ad 100644 --- a/notes/appsettings.json +++ b/notes/appsettings.json @@ -7,6 +7,6 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - "NotesContext": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=NotebookDb;Integrated Security=True;Connect Timeout=30;Encrypt=False" + "NotesContext": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=Notebook;Integrated Security=True;Connect Timeout=30;Encrypt=False" } } diff --git a/notes/wwwroot/FOTO/Liscie-paproci-pioro-i-puste-spiralne-notatnik-na-turkus-tlo-teksturowane_23-2147916354.jpg b/notes/wwwroot/FOTO/Liscie-paproci-pioro-i-puste-spiralne-notatnik-na-turkus-tlo-teksturowane_23-2147916354.jpg new file mode 100644 index 0000000..30d0f04 Binary files /dev/null and b/notes/wwwroot/FOTO/Liscie-paproci-pioro-i-puste-spiralne-notatnik-na-turkus-tlo-teksturowane_23-2147916354.jpg differ diff --git a/notes/wwwroot/FOTO/liscie-paproci-pioro-i-puste-spiralne-notatnik-na-turkus-tlo-teksturowane_23-2147916354.avif b/notes/wwwroot/FOTO/liscie-paproci-pioro-i-puste-spiralne-notatnik-na-turkus-tlo-teksturowane_23-2147916354.avif new file mode 100644 index 0000000..b3ef2f6 Binary files /dev/null and b/notes/wwwroot/FOTO/liscie-paproci-pioro-i-puste-spiralne-notatnik-na-turkus-tlo-teksturowane_23-2147916354.avif differ diff --git a/notes/wwwroot/css/site.css b/notes/wwwroot/css/site.css index 2742cd2..914d4d1 100644 --- a/notes/wwwroot/css/site.css +++ b/notes/wwwroot/css/site.css @@ -1,5 +1,5 @@ html { - font-size: 14px; + font-size: 14px; } @media (min-width: 768px) { @@ -24,6 +24,7 @@ body { .background-image { background-color: rgba(0, 0, 0, 0.5); + } .note { @@ -72,4 +73,5 @@ h2 { font-family: Arial; font-size: 20px; color: black; + } \ No newline at end of file