Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Formulário Padrão "
Bootstrap 3.3.0 Snippet by
olavoneto
3.3.0
Preview
HTML
View Full Screen
Fork
Fork this
1.6K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> @model Peter.Models.AtivacaoViewModel @{ ViewBag.Title = "AtivacaoForm"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Formulário de Ativação</h2> <form action="@Url.Action("SaveAtivacao")"> @Html.AntiForgeryToken() <div class="form-horizontal"> <h4>Ativação de Claro Fixo</h4> <hr /> @Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.Item.Id) @Html.HiddenFor(model => model.Item.IdContrato) @Html.HiddenFor(model => model.Item.DatRegistro) <div class="form-group"> <label class="control-label col-md-4" for="Item.IdOperador">Operador</label> <div class="col-md-8"> <input type="hidden" name="Item.IdOperador" id="Item_IdOperador" rel="typeahead" data-source="Backoffice" /> </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Item.DatAtivacao">Data</label> <div class="col-md-8"> @Html.EditorFor(model => model.Item.DatAtivacao, new { htmlAttributes = new { @class = "form-control required" } }) </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Item.OrdemServico">OS</label> <div class="col-md-8"> @Html.EditorFor(model => model.Item.OrdemServico, new { htmlAttributes = new { @class = "form-control required" } }) </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Item.IdProdutoEstoque">MEID</label> <div class="col-md-8"> <input type="hidden" name="Item.IdProdutoEstoque" id="Item_IdProdutoEstoque" rel="typeahead" data-source="ProdutosEstoqueAtivacao" class="required" /> </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Cliente.Nome">Nome do Cliente</label> <div class="col-md-8"> @Html.EditorFor(q=> q.Cliente.Nome, new { htmlAttributes = new { @class = "form-control required" }}) </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Cliente.Nome">CPF</label> <div class="col-md-8"> @Html.EditorFor(q => q.Cliente.Cpf, new { htmlAttributes = new { @class = "form-control required" } }) </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Cliente.Nome">Tel Contato</label> <div class="col-md-8"> @Html.EditorFor(q => q.Cliente.TelContato, new { htmlAttributes = new { @class = "form-control required" } }) </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Item.NumLinha">Número da Linha</label> <div class="col-md-8"> @Html.EditorFor(model => model.Item.NumLinha, new { htmlAttributes = new { @class = "form-control required" } }) </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Item.IdVendedor">Vendedor</label> <div class="col-md-8"> <input type="hidden" name="Item.IdVendedor" id="Item_IdVendedor" rel="typeahead" data-source="Vendedores" class="required" /> </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Item.IdSupervisor">Supervisor</label> <div class="col-md-8"> <input type="hidden" name="Item.IdSupervisor" id="Item_IdSupervisor" rel="typeahead" data-source="Supervisores" /> </div> </div> <div class="form-group"> <label class="control-label col-md-4" for="Item.IsPortabilidade">Portabilidade</label> <div class="col-md-8 text-left" > <div class="col-lg-offset-0"> @Html.EditorFor(model => model.Item.IsPortabilidade) </div> </div> </div> <div class="form-group" data-bind="visible: $data.Model.Item.IsPortabilidade() == true"> <label class="control-label col-md-4" for="Item.NumPortabilidade">Número (Portabilidade)</label> <div class="col-md-8 > @Html.EditorFor(model => model.Item.NumPortabilidade, new { htmlAttributes = new { @class = "form-control" } }) </div> </div> <div class="form-group"> <div class="col-md-offset-2 col-md-8"> <input type="submit" value="Cadastrar" class="btn btn-default" /> </div> </div> </div> </form> @section Scripts { @Scripts.Render("~/bundles/jqueryval") <script> function FormAtivacaoController($scope, $form) { $scope.Render = function () { $scope.Model.Item.DatAtivacao(Date.now().toString('dd/MM/yyyy')); } $scope.ModelSubmit = function () { if ($scope.Model.Item.IdProdutoEstoque() == "") { $("#Item_IdProdutoEstoque").parents('.form-group').addClass('has-error'); $scope.CancelSubmit = true; } } } </script> }
Related:
See More
Template
Now UI Kit PRO Angular
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76