Add date picker
This commit is contained in:
@@ -117,7 +117,11 @@ namespace InventoryTraker.Web.Helpers
|
||||
input.Attr("type", "email");
|
||||
|
||||
if (metadata.ModelType == typeof(DateTime))
|
||||
input.Attr("type", "date");
|
||||
{
|
||||
//input.Attr("type", "date");
|
||||
input.Attr("bs-datepicker");
|
||||
input.Attr("data-date-format", "dd/MM/yyyy");
|
||||
}
|
||||
|
||||
if (metadata.DataTypeName == "PhoneNumber")
|
||||
input.Attr("pattern", @"[\ 0-9()-]+");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
window.app = angular.module('InventoryTraker', ['ngAnimate', 'ui.bootstrap', 'ui.grid']);
|
||||
window.app = angular.module('InventoryTraker', ['ngAnimate', 'ui.bootstrap', 'ui.grid', 'mgcrea.ngStrap']);
|
||||
})();
|
||||
Reference in New Issue
Block a user