You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.3 KiB

11 years ago
  1. @model Sevomin.Models.SignupViewModel
  2. <div class="row">
  3. @if (!ViewData.ModelState.IsValid) {
  4. <div class="col-md-12 rtl">
  5. @Html.ValidationSummary(true)
  6. </div>
  7. }
  8. <div class="col-md-6 rtl">
  9. @using (Html.BeginForm("Signup", "Account", FormMethod.Post, new { role = "form" }))
  10. {
  11. @Html.AntiForgeryToken()
  12. <div class="form-group">
  13. @Html.LabelFor(m => m.Email)
  14. @Html.TextBoxFor(m => m.Email, new { @class = "form-control ltr" })
  15. @Html.ValidationMessageFor(m => m.Email)
  16. </div>
  17. <div class="form-group">
  18. @Html.Label("نام شرکت")
  19. @Html.TextBoxFor(m => m.DisplayName, new { @class = "form-control" })
  20. @Html.ValidationMessageFor(m => m.DisplayName)
  21. </div>
  22. <div class="form-group">
  23. @Html.LabelFor(m => m.Password)
  24. @Html.PasswordFor(m => m.Password, new { @class = "form-control ltr" })
  25. @Html.ValidationMessageFor(m => m.Password)
  26. </div>
  27. @Html.Hidden("IsAvalin", "true")
  28. <button type="submit" class="btn btn-default">ثبت نام</button>
  29. }
  30. </div>
  31. <div class="col-md-6 rtl">
  32. @using (Html.BeginForm("Signup", "Account", FormMethod.Post, new { role = "form" }))
  33. {
  34. @Html.AntiForgeryToken()
  35. <div class="form-group">
  36. @Html.LabelFor(m => m.Email)
  37. @Html.TextBoxFor(m => m.Email, new { @class = "form-control ltr" })
  38. @Html.ValidationMessageFor(m => m.Email)
  39. </div>
  40. <div class="form-group">
  41. @Html.Label("نام و نام خانوادگی")
  42. @Html.TextBoxFor(m => m.DisplayName, new { @class = "form-control" })
  43. @Html.ValidationMessageFor(m => m.DisplayName)
  44. </div>
  45. <div class="form-group">
  46. @Html.LabelFor(m => m.Password)
  47. @Html.PasswordFor(m => m.Password, new { @class = "form-control ltr" })
  48. @Html.ValidationMessageFor(m => m.Password)
  49. </div>
  50. @Html.Hidden("IsAvalin", "false")
  51. <button type="submit" class="btn btn-default">ثبت نام</button>
  52. }
  53. </div>
  54. </div>