Starting to add log user

This commit is contained in:
2013-01-04 19:47:48 -05:00
parent 5ae38a80ee
commit 09a21d2b2d
8 changed files with 73 additions and 6 deletions
+4 -1
View File
@@ -4,7 +4,6 @@ using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using MileageTraker.Web.Attributes;
using MileageTraker.Web.DAL;
using MileageTraker.Web.Utility;
namespace MileageTraker.Web.Models
{
@@ -45,6 +44,10 @@ namespace MileageTraker.Web.Models
[InputSize("medium")]
public string EmployeeName { get; set; }
[Display(Name = "Employee / Driver")]
[HiddenInput(DisplayValue = false)]
public virtual User User { get; set; }
[Range(0, 50)]
[DisplayFormat(DataFormatString = "{0:0.000}", ApplyFormatInEditMode = true)]
[Units("Gallons")]