Rename "completed" to "compl", trying to fix binding problem again
seems to have worked.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace LeafWeb.WebCms.Models
|
||||
public string phips2 { get; set; }
|
||||
|
||||
[Display(Name = "Show Only Successfully Completed")]
|
||||
public bool completed { get; set; }
|
||||
public bool compl { get; set; }
|
||||
|
||||
public bool HasExtendedParameters =>
|
||||
!(
|
||||
@@ -71,7 +71,7 @@ namespace LeafWeb.WebCms.Models
|
||||
&& string.IsNullOrEmpty(pari)
|
||||
&& string.IsNullOrEmpty(tleaf)
|
||||
&& string.IsNullOrEmpty(phips2)
|
||||
&& !completed
|
||||
&& !compl
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -143,12 +143,14 @@ namespace LeafWeb.WebCms.Utility
|
||||
select li;
|
||||
}
|
||||
|
||||
if (query.completed)
|
||||
if (query.compl)
|
||||
{
|
||||
resultItems =
|
||||
from li in resultItems
|
||||
where
|
||||
li.CurrentStatus == LeafInputStatusType.Complete
|
||||
// didn't have an error message
|
||||
&& ! li.OutputFiles.Any(f => f.Filename.Contains(LeafOutputFile.Filename_ErrorMessage))
|
||||
select li;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
else
|
||||
{
|
||||
<div class="col-md-auto">
|
||||
<a href="/membership/login" class="nav-link"><span class="fa fa-user"></span> Login</a>
|
||||
<a href="/membership/login" class="nav-link">Login <span class="fa fa-user pl-1"></span></a>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
@Html.EditorFor(m => m.completed)
|
||||
@Html.EditorFor(m => m.compl)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user