Bootstrap 

parte 2

Já entendi mas e o backend?!

O objetivo

  • Eliminiar Makups Repetitivos
  • Construir uma UI consistente
  • Melhor a manutenabilidade
  • Manter a flexibilidade

Editor Templates

  • Agilidade
  • Consistência
  • Encapsulção ( avoiding global changes)
 <div class="form-group">
    <label for="" class="col-sm-2 control-label">Description</label>
    <div class="col-sm-10">
        @Html.EditorFor(m => m.Description)
    </div>
</div>
<div class="form-group">
    <label for="" class="col-sm-2 control-label">Name</label>
    <div class="col-sm-10">
        @Html.TextBoxFor(m => m.Name)
     </div>
</div>

E o JS?

Obrigado :D

Referências

Display Templates

http://www.growingwiththeweb.com/2012/12/aspnet-mvc-display-and-editor-templates.html

Editor Templates

http://www.codeproject.com/Articles/672591/Exploring-Display-and-Editor-Templates-in-ASP-NET

Bootstrap JS Events

http://getbootstrap.com/javascript/

Conventional UI

http://lostechies.com/jimmybogard/2013/07/18/conventional-html-in-asp-net-mvc-a-primer/

Bootstrap parte 2

By Fábio Damasceno

Bootstrap parte 2

  • 1,169