Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model ContactManagementApp.Models.ContactList
- @{
- ViewBag.Title = "Create";
- }
- <h2>Create</h2>
- @using (Html.BeginForm())
- {
- @Html.AntiForgeryToken()
- <div class="form-horizontal">
- <h4>ContactList</h4>
- <hr />
- @Html.ValidationSummary(true, "", new { @class = "text-danger" })
- <div class="form-group">
- @Html.LabelFor(model => model.Student_ID, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Student_ID, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Student_ID, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Full_Name, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Full_Name, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Full_Name, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Phone, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Phone, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Phone, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Age, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.EditorFor(model => model.Age, new { htmlAttributes = new { @class = "form-control" } })
- @Html.ValidationMessageFor(model => model.Age, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.Gender, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- <label class="radio-inline">
- @Html.RadioButtonFor(model => model.Gender, "Male", new { @name = "gender" })
- Male
- </label>
- <label class="radio-inline">
- @Html.RadioButtonFor(model => model.Gender, "Female", new { @name = "gender" })
- Female
- </label>
- @Html.ValidationMessageFor(model => model.Gender, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.COVID_symptoms, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- <label class="checkbox-inline">
- @Html.CheckBox("Cough", false)
- Cough
- </label>
- <label class="checkbox-inline">
- @Html.CheckBox("Fever", false)
- Fever
- </label>
- <label class="checkbox-inline">
- @Html.CheckBox("Tiredness", false)
- Tiredness
- </label>
- <label class="checkbox-inline">
- @Html.CheckBox("Breath_Problem", false)
- Breath Problem
- </label>
- @Html.ValidationMessageFor(model => model.COVID_symptoms, "", new { @class = "text-danger" })
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="button" value="Vaccinated" class="btn btn-default" />
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <a href="https://Facebook.com">HyperLink Of Facebook</a>
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Create" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
- <div>
- @Html.ActionLink("Back to List", "Index")
- </div>
- @section Scripts {
- @Scripts.Render("~/bundles/jqueryval")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement