Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. @if (ShowAddRequestPopup)
  2. {
  3. <div class="modal" tabindex="-2" style="display:block" role="dialog">
  4. <div class="modal-dialog">
  5. <div class="modal-content">
  6. <div class="modal-header">
  7. <h3 class="modal-title">Add order for @objUser.UserName</h3>
  8. <!-- Button to close the popup -->
  9. <button type="button" class="close" @onclick="ClosePopup">
  10. <span aria-hidden="true">X</span>
  11. </button>
  12. </div>
  13. <div class="modal-body">
  14. <label>Description</label>
  15. <input class="form-control" type="text"
  16. placeholder="Description"
  17. @bind="newOrder.Description" />
  18. <label>Estimated Hours</label>
  19. <input class="form-control" type="number"
  20. placeholder="Estimated Hours"
  21. @bind="newOrder.EstimatedHours" />
  22. <label>Worked Hours</label>
  23. <input class="form-control" type="number"
  24. placeholder="Worked Hours"
  25. @bind="newOrder.WorkedHours" />
  26. <label>Estimated Price</label>
  27. <input class="form-control" type="number"
  28. placeholder="Estimated Price"
  29. @bind="newOrder.EstimatedPrice" />
  30. <label>Actual Price</label>
  31. <input class="form-control" type="number"
  32. placeholder="Actual Price"
  33. @bind="newOrder.ActualPrice" />
  34. <select class="form-control">
  35. @foreach (var status in Enum.GetValues(typeof(OrderStatus)))
  36. {
  37. <option value="@status">
  38. @status
  39. </option>
  40. }
  41. </select>
  42. <br /><br />
  43. <!-- Button to save the user -->
  44. <button class="btn btn-primary"
  45. @onclick="SaveUser">
  46. Save
  47. </button>
  48. <!-- Only show delete button if not a new record -->
  49. @if (objUser.Id != "")
  50. {
  51. <!-- Button to delete the forecast -->
  52. <button class="btn btn-danger"
  53. @onclick="DeleteUser">
  54. Delete
  55. </button>
  56. }
  57. <br />
  58. <span style="color:red">@strError</span>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement