Add purpose editing
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
@Html.ActionLink("Add New Log", "Create", null, new { @class = "btn" })
|
||||
@Html.ActionLink("Export", "Export", new { Year = Model.SelectedYear, Month = Model.SelectedMonth, LogType = Model.SelectedLogType }, new { @class = "btn" })
|
||||
@Html.ActionLink("Purposes", "Index", "Purpose", null, new { @class = "btn" })
|
||||
|
||||
<div class="btn-group">
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Report <span class="caret"></span></a>
|
||||
@@ -60,7 +61,7 @@
|
||||
{
|
||||
if (item.Notes != null)
|
||||
{
|
||||
return Html.Raw("<span title='" + item.Notes + "'>" + item.PurposePurpose + "</span>");
|
||||
return Html.Raw("<span title='" + Html.Encode(item.Notes) + "'>" + Html.Encode(item.PurposePurpose) + "</span>");
|
||||
}
|
||||
return item.PurposePurpose;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user