Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.21 KB | None | 0 0
  1. @model Plataforma.ViewModels.SubscriptionViewModel
  2.  
  3. @{
  4. ViewBag.Title = "Create";
  5. Layout = "~/Views/Shared/PreSubscriptionLayout.cshtml";
  6. }
  7. <link rel="stylesheet" href="~/Content/myStyle.css">
  8. @*<div class="error-messages">
  9. <h2 class="isa_error" style="color: #D8000C; background-color: #FFBABA; padding: 20px;">
  10. <i class="fa fa-times-circle"></i>
  11. Ocorreu um Erro!
  12. </h2>
  13. <h2 class="isa_warning" style="color: #9F6000; background-color: #FEEFB3; padding: 10px; font-size: 11pt">
  14. <i class="fa fa-warning"></i> ATENÇÃO: A operação não foi efetuada com sucesso!
  15. <br />
  16. <br />
  17. &nbsp;&nbsp;&nbsp;&nbsp;Por favor, tente novamente!
  18. </h2>
  19. <br />
  20. <br />
  21. </div>*@
  22. <div class="container">
  23. <div class="">
  24. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  25. <span class="icon-bar"></span>
  26. <span class="icon-bar"></span>
  27. <span class="icon-bar"></span>
  28. </button>
  29. @*@Html.ActionLink("Academy Platform", "Index", "Home", new { area = "" }, new { @class = "navbar-brand", @style = "" })*@
  30. </div>
  31. <div class="navbar-collapse collapse">
  32. <div class=""></div>
  33. <ul class="nav navbar-nav">
  34. <li class="navbar">@Html.ActionLink("Academy Platform", "Index", "Home", new { area = "" }, new { @class = "navbar navbar-brand" })</li>
  35. <li>@Html.ActionLink("Pré-Inscrição", "Create", "PreSubscription")</li>
  36. <li>@Html.ActionLink("Sobre", "About", "Home")</li>
  37. <li>@Html.ActionLink("Contactos", "Contact", "Home")</li>
  38. </ul>
  39. @Html.Partial("_LoginPartial")
  40.  
  41. </div>
  42.  
  43. </div>
  44. <div style="padding-bottom: 50px;"></div>
  45.  
  46. @using (Html.BeginForm("Create", "PreSubscription", FormMethod.Post))
  47. {
  48. <div id="this-form">
  49. <div class="form-horizontal">
  50. <h4 style="padding-left: 30px;">Informação do Aluno</h4>
  51. <hr />
  52. @Html.ValidationSummary(true, "", new { @class = "text-danger" })
  53. <div class="form-group">
  54. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Nome</label>
  55. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  56. @Html.EditorFor(model => model.Entity.Name, new { htmlAttributes = new { @class = "form-control" } })
  57. @Html.ValidationMessageFor(model => model.Entity.Name, "", new { @class = "text-danger" })
  58. </div>
  59. </div>
  60.  
  61. <div class="form-group">
  62. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Email</label>
  63. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  64. @Html.EditorFor(model => model.Entity.Email, new { htmlAttributes = new { @class = "form-control" } })
  65. @Html.ValidationMessageFor(model => model.Entity.Email, "", new { @class = "text-danger" })
  66. </div>
  67. </div>
  68.  
  69. <div class="form-group">
  70. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Data Nascimento</label>
  71. <div class="col-lg-4 col-md-4 col-sm-4 col-xs-10">
  72. <div class='input-group date datetimepicker1'>
  73. @Html.EditorFor(model => model.Entity.BirthDate, new { htmlAttributes = new { @class = "form-control" } })
  74. @Html.ValidationMessageFor(model => model.Entity.BirthDate, "", new { @class = "text-danger" })
  75. <span class="input-group-addon">
  76. <span class="glyphicon glyphicon-calendar"></span>
  77. </span>
  78. </div>
  79. </div>
  80. <label class="control-label col-md-1 col-sm-2 col-xs-10">Telemóvel</label>
  81. <div class="col-lg-4 col-md-4 col-xs-10 col-sm-3">
  82. @Html.EditorFor(model => model.Entity.PhoneNumber, new { htmlAttributes = new { @class = "form-control" } })
  83. @Html.ValidationMessageFor(model => model.Entity.PhoneNumber, "", new { @class = "text-danger" })
  84. </div>
  85. </div>
  86.  
  87. <div class="form-group">
  88. <label class="control-label col-md-2 col-sm-2 col-xs-10">Escola/colégio</label>
  89. <div class="col-lg-4 col-md-4 col-xs-10 col-sm-4">
  90. @Html.EditorFor(model => model.Student.School, new { htmlAttributes = new { @class = "form-control" } })
  91. @Html.ValidationMessageFor(model => model.Student.School, "", new { @class = "text-danger" })
  92. </div>
  93. <label class="control-label col-md-1 col-sm-2 col-sm-10">Ano escolar</label>
  94. <div class="col-md-4 col-lg-4 col-sm-3 col-xs-10">
  95. @Html.EditorFor(model => model.Student.SchoolYear, new { htmlAttributes = new { @class = "form-control" } })
  96. @Html.ValidationMessageFor(model => model.Student.SchoolYear, "", new { @class = "text-danger" })
  97. </div>
  98.  
  99. </div>
  100.  
  101.  
  102. <div class="form-group">
  103. <label class="control-label col-md-2 col-sm-2 col-xs-10">Distrito</label>
  104. <div class="col-md-4 col-xs-10 col-sm-4">
  105. @Html.DropDownListFor(model => model.SelectedDistrict.DistrictCode, new SelectList(Model.District, "DistrictCode", "DistrictName"), new { @class = "select2-results__group x_content span.section form-group form-control", @id = "ddldistrict", @name = "ddldistrict", @onchange = "javascript:GetCity(this.value);" })
  106. </div>
  107.  
  108. <label class="control-label col-md-1 col-sm-2 col-xs-10">Concelho</label>
  109. <div class="col-md-4 col-xs-10 col-sm-3">
  110. @Html.DropDownListFor(model => model.SelectedCounty.CountyCode, new SelectList(Model.County, "CountyCode", "CountyName"), new { @class = "select2-results__group x_content span.section form-group form-control", @id = "ddlcity", @name = "ddlcity", @onchange = "javascript:GetLocality(this.value);" })
  111. </div>
  112. </div>
  113.  
  114. <div class="form-group">
  115. <label class="control-label col-md-2 col-sm-2 col-xs-10">Localidade</label>
  116. <div class="col-md-4 col-xs-10 col-sm-4">
  117. @Html.DropDownListFor(model => model.SelectedLocality, new SelectList(Model.Locality, "LocalityCode", "LocalityName"), new { @class = "select2-results__group x_content span.section form-group form-control", @id = "ddlLocality", @name = "ddlLocality", @onchange = "javascript:GetPostalCode(this.value);" })
  118. </div>
  119. <label class="control-label col-md-1 col-sm-2 col-xs-10">Cód. Postal</label>
  120. <div class="col-md-4 col-xs-10 col-sm-3">
  121. @Html.DropDownListFor(model => model.SelectedPostalCode.PostalCodeId, new SelectList(Model.PostalCode, "PostalCodeId", "Code"), new { @class = "select2-results__group x_content span.section form-group form-control", @id = "ddlPostal", @name = "ddlPostal" })
  122. </div>
  123. </div>
  124.  
  125. <div class="form-group">
  126. <label class="control-label col-md-2 col-sm-2 col-xs-10">Morada</label>
  127. <div class="col-md-9 col-xs-10 col-sm-9">
  128. @Html.EditorFor(model => model.Entity.Adress.StreetName, new { htmlAttributes = new { @class = "form-control" } })
  129. @Html.ValidationMessageFor(model => model.Entity.Adress.StreetName, "", new { @class = "text-danger" })
  130. </div>
  131. </div>
  132. <div style="padding-bottom: 30px;"></div>
  133. <h4 style="padding-left: 30px;">Informação dos Pais</h4>
  134. <hr />
  135. <div class="form-group">
  136. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Nome da Mãe</label>
  137. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  138. @Html.EditorFor(model => model.EntityMother.Name, new { htmlAttributes = new { @class = "form-control" } })
  139. @Html.ValidationMessageFor(model => model.EntityMother.Name, "", new { @class = "text-danger" })
  140. </div>
  141. </div>
  142.  
  143. <div class="form-group">
  144. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Email</label>
  145. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  146. @Html.EditorFor(model => model.EntityMother.Email, new { htmlAttributes = new { @class = "form-control" } })
  147. @Html.ValidationMessageFor(model => model.EntityMother.Email, "", new { @class = "text-danger" })
  148. </div>
  149. </div>
  150.  
  151. <div class="form-group">
  152. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Data Nascimento</label>
  153. <div class="col-lg-4 col-md-4 col-sm-4 col-xs-10">
  154. <div class='input-group date datetimepicker1'>
  155. @Html.EditorFor(model => model.EntityMother.BirthDate, new { htmlAttributes = new { @class = "form-control" } })
  156. @Html.ValidationMessageFor(model => model.EntityMother.BirthDate, "", new { @class = "text-danger" })
  157. <span class="input-group-addon">
  158. <span class="glyphicon glyphicon-calendar"></span>
  159. </span>
  160. </div>
  161. </div>
  162. <label class="control-label col-md-1 col-sm-2 col-xs-10">Telemóvel</label>
  163. <div class="col-lg-4 col-md-4 col-xs-10 col-sm-3">
  164. @Html.EditorFor(model => model.EntityMother.PhoneNumber, new { htmlAttributes = new { @class = "form-control" } })
  165. @Html.ValidationMessageFor(model => model.EntityMother.PhoneNumber, "", new { @class = "text-danger" })
  166. </div>
  167. </div>
  168.  
  169. <div class="form-group">
  170. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Profissão</label>
  171. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  172. @Html.EditorFor(model => model.Mother.Employment, new { htmlAttributes = new { @class = "form-control" } })
  173. @Html.ValidationMessageFor(model => model.Mother.Employment, "", new { @class = "text-danger" })
  174. </div>
  175. </div>
  176.  
  177. <div class="form-group">
  178. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Habilitações</label>
  179. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  180. @Html.EditorFor(model => model.EntityMother.Qualification, new { htmlAttributes = new { @class = "form-control" } })
  181. @Html.ValidationMessageFor(model => model.EntityMother.Qualification, "", new { @class = "text-danger" })
  182. </div>
  183. </div>
  184.  
  185.  
  186.  
  187.  
  188.  
  189. <div style="padding-bottom: 50px;"></div>
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. <div class="form-group">
  197. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10" style="text-wrap: none">Nome do Pai</label>
  198. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  199. @Html.EditorFor(model => model.EntityFather.Name, new { htmlAttributes = new { @class = "form-control" } })
  200. @Html.ValidationMessageFor(model => model.EntityFather.Name, "", new { @class = "text-danger" })
  201. </div>
  202. </div>
  203.  
  204. <div class="form-group">
  205. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10" style="text-wrap: none">Email</label>
  206. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  207. @Html.EditorFor(model => model.EntityFather.Email, new { htmlAttributes = new { @class = "form-control" } })
  208. @Html.ValidationMessageFor(model => model.EntityFather.Email, "", new { @class = "text-danger" })
  209. </div>
  210. </div>
  211.  
  212. <div class="form-group">
  213. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Data Nascimento</label>
  214. <div class="col-lg-4 col-md-4 col-sm-4 col-xs-10">
  215. <div class='input-group date datetimepicker1'>
  216. @Html.EditorFor(model => model.EntityFather.BirthDate, new { htmlAttributes = new { @class = "form-control" } })
  217. @Html.ValidationMessageFor(model => model.EntityFather.BirthDate, "", new { @class = "text-danger" })
  218. <span class="input-group-addon">
  219. <span class="glyphicon glyphicon-calendar"></span>
  220. </span>
  221. </div>
  222. </div>
  223. <label class="control-label col-md-1 col-sm-2 col-xs-10">Telemóvel</label>
  224. <div class="col-lg-4 col-md-4 col-xs-10 col-sm-3">
  225. @Html.EditorFor(model => model.EntityFather.PhoneNumber, new { htmlAttributes = new { @class = "form-control" } })
  226. @Html.ValidationMessageFor(model => model.EntityFather.PhoneNumber, "", new { @class = "text-danger" })
  227. </div>
  228. </div>
  229.  
  230. <div class="form-group">
  231. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Profissão</label>
  232. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  233. @Html.EditorFor(model => model.Father.Employment, new { htmlAttributes = new { @class = "form-control" } })
  234. @Html.ValidationMessageFor(model => model.Father.Employment, "", new { @class = "text-danger" })
  235. </div>
  236. </div>
  237.  
  238. <div class="form-group">
  239. <label class="control-label col-lg-2 col-md-2 col-sm-2 col-xs-10">Habilitações</label>
  240. <div class="col-lg-9 col-md-9 col-xs-10 col-sm-9">
  241. @Html.EditorFor(model => model.EntityFather.Qualification, new { htmlAttributes = new { @class = "form-control" } })
  242. @Html.ValidationMessageFor(model => model.EntityFather.Qualification, "", new { @class = "text-danger" })
  243. </div>
  244. </div>
  245.  
  246.  
  247. <div style="padding-bottom: 30px;"></div>
  248. <h4 style="padding-left: 30px;">Disponibilidade</h4>
  249. <hr />
  250. <div>
  251. <table class="centerSchedule">
  252. <div id="head_nav">
  253. <tr class="trr">
  254. <th class="thh col-md-2 col-lg-2 col-xs-2">Horas</th>
  255. <th class="thh">Segunda</th>
  256. <th class="thh">Terça</th>
  257. <th class="thh">Quarta</th>
  258. <th class="thh">Quinta</th>
  259. <th class="thh">Sexta</th>
  260. <th class="thh">Sábado</th>
  261. </tr>
  262. </div>
  263.  
  264. @for (var i = 0; i < Model.Times.Count(); i += 6)
  265. {
  266. <tr class="trr">
  267. <th class="thh">@Html.DisplayFor(model => Model.Times[i].Times.BeginHour) - @Html.DisplayFor(model => Model.Times[i].Times.FinishHour)</th>
  268.  
  269. <td class="tdd"><input name="gender" type="checkbox" id="@Model.Times[i].ScheduleTime.ScheduleTimeId" class="chkclass" value="@Model.Times[i].ScheduleTime.ScheduleTimeId" /></td>
  270. <td class="tdd"><input name="gender" type="checkbox" id="@Model.Times[i+1].ScheduleTime.ScheduleTimeId" class="chkclass" value="@Model.Times[i+1].ScheduleTime.ScheduleTimeId" /></td>
  271. <td class="tdd"><input name="gender" type="checkbox" id="@Model.Times[i+2].ScheduleTime.ScheduleTimeId" class="chkclass" value="@Model.Times[i+2].ScheduleTime.ScheduleTimeId" /></td>
  272. <td class="tdd"><input name="gender" type="checkbox" id="@Model.Times[i+3].ScheduleTime.ScheduleTimeId" class="chkclass" value="@Model.Times[i+3].ScheduleTime.ScheduleTimeId" /></td>
  273. <td class="tdd"><input name="gender" type="checkbox" id="@Model.Times[i+4].ScheduleTime.ScheduleTimeId" class="chkclass" value="@Model.Times[i+4].ScheduleTime.ScheduleTimeId" /></td>
  274. <td class="tdd"><input name="gender" type="checkbox" id="@Model.Times[i+5].ScheduleTime.ScheduleTimeId" class="chkclass" value="@Model.Times[i+5].ScheduleTime.ScheduleTimeId" /></td>
  275. </tr>
  276. }
  277. </table>
  278. </div>
  279.  
  280. <br />
  281. <br />
  282. <div class="form-group">
  283. <div class="col-md-offset-6 col-sm-offset-6 col-xs-offset-4 col-md-4 col-sm-4 col-xs-7">
  284. <div class="form-group">
  285. <input type="reset" value="Limpar" onclick='form.reset();' class="btn btn-primary" />
  286. <input type="submit" value="Submeter" class="btn btn-success" />
  287. @*@Html.ActionLink(" Submeter", "SuccessfullPreSubscription", new { id = Model.PreSubscription.PreSubscriptionId })*@
  288. @*@Html.ActionLink(" ", "SuccessfullPreSubscription", new { id = Model.PreSubscription.PreSubscriptionId }, new { @class = "fa fa-pencil" })*@
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. <p style="font-weight: bold; padding-top: 30px;">
  294. <div>
  295. <div style="font-weight: bold; font-family: sans-serif; float:left">
  296. <div style="float: left; display: inline-block;">@Html.ActionLink(" ", "Index", "Home", null, new { @class = "fa fa-chevron-left" })&nbsp;</div>
  297. <div style="float: left; display: inline-block;">@Html.ActionLink("Voltar à Página Inicial", "Index", "Home", null, new { @class = "font-sans-serif" })&nbsp;</div>
  298. </div>
  299. </div>
  300. </p>
  301. </div>
  302. <div style="padding-bottom: 120px"></div>
  303. }
  304. @section Scripts {
  305. @Scripts.Render("~/bundles/jqueryval")
  306. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement