Skip to content

Commit 0505eed

Browse files
committed
Fixes
1 parent 7437563 commit 0505eed

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

BookCollection/DAL/BookInitializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ private IEnumerable<Author> GetAuthors()
347347
{
348348
if (!name.Equals("e.a."))
349349
{
350-
list.Add(new Author() { OrigKey = field, Lastname = name, Firstname = firstName });
350+
list.Add(new Author() { OrigKey = field, Lastname = name.Replace("e.a.", string.Empty), Firstname = firstName.Replace("e.a.", string.Empty) });
351351
}
352352
}
353353
}
@@ -375,7 +375,7 @@ private void SeedCategories()
375375
}
376376
}
377377

378-
list.Add(new Category() { Title = "?" });
378+
//list.Add(new Category() { Title = "?" });
379379

380380
list.ForEach(c => c.Title = c.Title.FirstCharacterUppercaseRestLowercase());
381381
_c.Categories.AddRange(list);
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
$('.booktool').tooltip(options);
1+
alert('tst');
2+
$('.booktool').tooltip(options);

BookCollection/Views/Categories/Details.cshtml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<div>
1111
<p>
12-
@BC.IconButton("Category", "Edit", "pencil", "Edit", new { id = Model.CategoryID })
13-
@BC.IconButton("Category", "Index", "th-list", "Back to List")
12+
@BC.IconButton("Categories", "Edit", "pencil", "Edit", new { id = Model.CategoryID })
13+
@BC.IconButton("Categories", "Index", "th-list", "Back to List")
1414
</p>
1515
<hr />
1616
<dl class="dl-horizontal">
@@ -24,11 +24,6 @@
2424

2525
</dl>
2626
</div>
27-
<p>
28-
@Html.ActionLink("Edit", "Edit", new { id = Model.CategoryID }) |
29-
@Html.ActionLink("Back to List", "Index")
30-
</p>
31-
3227

3328
@Html.Partial("_RelatedBooks", Model.Books)
3429

BookCollection/Views/Publishers/Details.cshtml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
@model BookCollection.Models.Publisher
22

33
@{
4-
ViewBag.Title = "Details";
5-
Layout = "~/Views/Shared/_Layout.cshtml";
4+
ViewBag.Title = "Publisher details";
65
}
76

87
<h2>Publisher</h2>
98

109
<div>
1110
<p>
12-
@BC.IconButton("Publisher", "Edit", "pencil", "Edit", new { id = Model.PublisherID })
13-
@BC.IconButton("Publisher", "Index", "th-list", "Back to List")
11+
@BC.IconButton("Publishers", "Edit", "pencil", "Edit", new { id = Model.PublisherID })
12+
@BC.IconButton("Publishers", "Index", "th-list", "Back to List")
1413
</p>
1514
<hr />
1615
<dl class="dl-horizontal">

BookCollection/Views/Publishers/Index.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@model IEnumerable<BookCollection.Models.Publisher>
1+
@model PagedList.IPagedList<BookCollection.Models.Publisher>
2+
@using PagedList.Mvc;
23

34
@{
45
ViewBag.Title = "Publishers";

0 commit comments

Comments
 (0)