Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. [Required]
  2. [DataType(DataType.Date)]
  3. [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
  4. [DisplayName(Constants.DisplayName.HolidayYear)]
  5. public virtual DateTime HolidayYear { get; set; }
  6.  
  7. <div class="row">
  8. <div class="col-md-3">
  9. <label for="" class="control-label">
  10. Year
  11. </label>
  12. <br />
  13. @Html.EditorFor(model => model.HolidayYear, new { @class = "form-control"
  14. }).DisableIf(() => Model.IsReadOnly == true)
  15. </div>
  16. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement