Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @if (ShowAddRequestPopup)
- {
- <div class="modal" tabindex="-2" style="display:block" role="dialog">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <h3 class="modal-title">Add order for @objUser.UserName</h3>
- <!-- Button to close the popup -->
- <button type="button" class="close" @onclick="ClosePopup">
- <span aria-hidden="true">X</span>
- </button>
- </div>
- <div class="modal-body">
- <label>Description</label>
- <input class="form-control" type="text"
- placeholder="Description"
- @bind="newOrder.Description" />
- <label>Estimated Hours</label>
- <input class="form-control" type="number"
- placeholder="Estimated Hours"
- @bind="newOrder.EstimatedHours" />
- <label>Worked Hours</label>
- <input class="form-control" type="number"
- placeholder="Worked Hours"
- @bind="newOrder.WorkedHours" />
- <label>Estimated Price</label>
- <input class="form-control" type="number"
- placeholder="Estimated Price"
- @bind="newOrder.EstimatedPrice" />
- <label>Actual Price</label>
- <input class="form-control" type="number"
- placeholder="Actual Price"
- @bind="newOrder.ActualPrice" />
- <select class="form-control">
- @foreach (var status in Enum.GetValues(typeof(OrderStatus)))
- {
- <option value="@status">
- @status
- </option>
- }
- </select>
- <br /><br />
- <!-- Button to save the user -->
- <button class="btn btn-primary"
- @onclick="SaveUser">
- Save
- </button>
- <!-- Only show delete button if not a new record -->
- @if (objUser.Id != "")
- {
- <!-- Button to delete the forecast -->
- <button class="btn btn-danger"
- @onclick="DeleteUser">
- Delete
- </button>
- }
- <br />
- <span style="color:red">@strError</span>
- </div>
- </div>
- </div>
- </div>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement