Advertisement
murad45

RakibCreate.cshtml

Sep 24th, 2021
2,224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 4.51 KB | None | 0 0
  1. @model ContactManagementApp.Models.ContactList
  2.  
  3. @{
  4.     ViewBag.Title = "Create";
  5. }
  6.  
  7. <h2>Create</h2>
  8.  
  9.  
  10. @using (Html.BeginForm())
  11. {
  12.     @Html.AntiForgeryToken()
  13.    
  14. <div class="form-horizontal">
  15.     <h4>ContactList</h4>
  16.     <hr />
  17.     @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  18.     <div class="form-group">
  19.         @Html.LabelFor(model => model.Student_ID, htmlAttributes: new { @class = "control-label col-md-2" })
  20.         <div class="col-md-10">
  21.             @Html.EditorFor(model => model.Student_ID, new { htmlAttributes = new { @class = "form-control" } })
  22.             @Html.ValidationMessageFor(model => model.Student_ID, "", new { @class = "text-danger" })
  23.         </div>
  24.     </div>
  25.  
  26.     <div class="form-group">
  27.         @Html.LabelFor(model => model.Full_Name, htmlAttributes: new { @class = "control-label col-md-2" })
  28.         <div class="col-md-10">
  29.             @Html.EditorFor(model => model.Full_Name, new { htmlAttributes = new { @class = "form-control" } })
  30.             @Html.ValidationMessageFor(model => model.Full_Name, "", new { @class = "text-danger" })
  31.         </div>
  32.     </div>
  33.  
  34.     <div class="form-group">
  35.         @Html.LabelFor(model => model.Phone, htmlAttributes: new { @class = "control-label col-md-2" })
  36.         <div class="col-md-10">
  37.             @Html.EditorFor(model => model.Phone, new { htmlAttributes = new { @class = "form-control" } })
  38.             @Html.ValidationMessageFor(model => model.Phone, "", new { @class = "text-danger" })
  39.         </div>
  40.     </div>
  41.  
  42.     <div class="form-group">
  43.         @Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "control-label col-md-2" })
  44.         <div class="col-md-10">
  45.             @Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control" } })
  46.             @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
  47.         </div>
  48.     </div>
  49.  
  50.     <div class="form-group">
  51.         @Html.LabelFor(model => model.Age, htmlAttributes: new { @class = "control-label col-md-2" })
  52.         <div class="col-md-10">
  53.             @Html.EditorFor(model => model.Age, new { htmlAttributes = new { @class = "form-control" } })
  54.             @Html.ValidationMessageFor(model => model.Age, "", new { @class = "text-danger" })
  55.         </div>
  56.     </div>
  57.  
  58.     <div class="form-group">
  59.         @Html.LabelFor(model => model.Gender, htmlAttributes: new { @class = "control-label col-md-2" })
  60.         <div class="col-md-10">
  61.             <label class="radio-inline">
  62.                 @Html.RadioButtonFor(model => model.Gender, "Male", new { @name = "gender" })
  63.                 Male
  64.             </label>
  65.             <label class="radio-inline">
  66.                 @Html.RadioButtonFor(model => model.Gender, "Female", new { @name = "gender" })
  67.                 Female
  68.             </label>
  69.  
  70.             @Html.ValidationMessageFor(model => model.Gender, "", new { @class = "text-danger" })
  71.         </div>
  72.     </div>
  73.     <div class="form-group">
  74.         @Html.LabelFor(model => model.COVID_symptoms, htmlAttributes: new { @class = "control-label col-md-2" })
  75.         <div class="col-md-10">
  76.             <label class="checkbox-inline">
  77.                 @Html.CheckBox("Cough", false)
  78.                 Cough
  79.             </label>
  80.             <label class="checkbox-inline">
  81.                 @Html.CheckBox("Fever", false)
  82.                 Fever
  83.             </label>
  84.             <label class="checkbox-inline">
  85.                 @Html.CheckBox("Tiredness", false)
  86.                 Tiredness
  87.             </label>
  88.             <label class="checkbox-inline">
  89.                 @Html.CheckBox("Breath_Problem", false)
  90.                 Breath Problem
  91.             </label>
  92.  
  93.             @Html.ValidationMessageFor(model => model.COVID_symptoms, "", new { @class = "text-danger" })
  94.         </div>
  95.     </div>
  96.  
  97.     <div class="form-group">
  98.         <div class="col-md-offset-2 col-md-10">
  99.             <input type="button" value="Vaccinated" class="btn btn-default" />
  100.         </div>
  101.     </div>
  102.     <div class="form-group">
  103.         <div class="col-md-offset-2 col-md-10">
  104.             <a href="https://Facebook.com">HyperLink Of Facebook</a>
  105.         </div>
  106.     </div>
  107.  
  108.     <div class="form-group">
  109.         <div class="col-md-offset-2 col-md-10">
  110.             <input type="submit" value="Create" class="btn btn-default" />
  111.         </div>
  112.     </div>
  113. </div>
  114. }
  115.  
  116. <div>
  117.     @Html.ActionLink("Back to List", "Index")
  118. </div>
  119.  
  120. @section Scripts {
  121.     @Scripts.Render("~/bundles/jqueryval")
  122. }
  123.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement