Initiate InventoyTypes from a xlxs
Arrival mostly working
This commit is contained in:
@@ -35,9 +35,12 @@ namespace InventoryTraker.Web.Helpers
|
||||
/// Converts a lambda expression into a camel-cased AngularJS binding expression, ie:
|
||||
/// {{vm.model.parentProperty.childProperty}}
|
||||
/// </summary>
|
||||
public IHtmlString BindingFor<TProp>(Expression<Func<TModel, TProp>> property)
|
||||
public IHtmlString BindingFor<TProp>(Expression<Func<TModel, TProp>> property, string filter = "")
|
||||
{
|
||||
return MvcHtmlString.Create("{{" + ExpressionForInternal(property) + "}}");
|
||||
return MvcHtmlString.Create("{{"
|
||||
+ ExpressionForInternal(property)
|
||||
+ (!string.IsNullOrEmpty(filter) ? " | " + filter : string.Empty)
|
||||
+ "}}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -120,7 +123,7 @@ namespace InventoryTraker.Web.Helpers
|
||||
{
|
||||
//input.Attr("type", "date");
|
||||
input.Attr("bs-datepicker");
|
||||
input.Attr("data-date-format", "dd/MM/yyyy");
|
||||
input.Attr("data-date-format", "d/M/yyyy");
|
||||
}
|
||||
|
||||
if (metadata.DataTypeName == "PhoneNumber")
|
||||
|
||||
Reference in New Issue
Block a user