Rename "completed" to "compl", trying to fix binding problem again

seems to have worked.
This commit is contained in:
2020-07-13 21:25:13 -04:00
parent 620af9657d
commit c7c42af198
4 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -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
);
}
}
+3 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -72,7 +72,7 @@
<hr/>
<div class="row">
<div class="col">
@Html.EditorFor(m => m.completed)
@Html.EditorFor(m => m.compl)
</div>
</div>
</div>