formulário de alteração de alunos desorganizado. ASP.NET MVC
Ola pessoal sou novo por aqui:) Preciso de uma ajudinha de vocês, estou tentando inserir o Bootstrap em um programinha MVC segue imagem do problema + código fonte /applications/core/interface/imageproxy/imageproxy.php?img=https://social.msdn.microsoft.com/Forums/getfile/1476665&key=4f189cb4c748610ab9b4c246321d46f89178de9e2f5d1feef389394f1f9284e3" data-imageproxy-source="https://social.msdn.microsoft.com/Forums/getfile/1476665" /> @model alunos.Models.pessoa @{
ViewBag.Title = "Alterando os dados de um aluno". } <br/><br/> @using (Html.BeginForm())
{ @Html.AntiForgeryToken()
<div class="panel panel-primary"> <div class="panel-heading">Alteração dos dados de um Aluno</div> <div class="panel-body form-inline"> @Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.codigo) <div class="form-group"> @Html.LabelFor(model => model.nome, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.nome, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.nome, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Endereco, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.Endereco, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Endereco, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.numero, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.numero, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.numero, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Bairro, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.Bairro, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Bairro, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.cidade, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.cidade, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.cidade, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.telefone, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.telefone, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.telefone, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Cpf, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.Cpf, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Cpf, "", new { @class = "text-danger" }) </div> </div> <div class="form-group"> @Html.LabelFor(model => model.Rg, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.Rg, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Rg, "", 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.exame, htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.EditorFor(model => model.exame, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.exame, "", new { @class = "text-danger" }) </div> </div> <div class="panel-footer panel-info"> <div class="col-md-offset-2 col-md-10"> <input type="submit" value="Gravar alterações" class="btn btn-info" /> @Html.ActionLink("Retornar para a listagem de Alunos", "Index", null, new { @class = "btn btn-warning" }) </div> <br /> <br /> </div> </div> </div> } @section Scripts { @Scripts.Render("~/bundles/jqueryval")}
Discussão (0)
Carregando comentários...