Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Griffiths 826 posts 1269 karma points c-trib
    Nov 08, 2013 @ 16:28
    Martin Griffiths
    0

    Using Contour with Bootstrap 3

    Has anyone managed to get bootstrap working with the razor version of contour?

    I can get most of it going, but I need to wire up errors in some way, in bootstrap the container div expects the class "has-error" on submit

    Martin

  • Comment author was deleted

    Nov 11, 2013 @ 11:30

    You have full control over markup http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Custom-Markup/

    Think for custom classes on validation you'll need to customize the client side validation (just using jquery validate so it should be possible to find an example)

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Nov 11, 2013 @ 11:52
    Martin Griffiths
    0

    Hi TIm

    After quite a bit of fiddling about withe the custom views I managed to get it working. But I had to do it with Jquery to get all I wanted.

    http://blog.ijasoneverett.com/2013/05/asp-net-mvc-validation-with-twitters-bootstrap/

    I also noticed that the MS unobtrusive library fails in more recent versions of Jquery so I had to add it two lines of code to fix it...

    http://connect.microsoft.com/VisualStudio/feedback/details/776965/please-support-jquery-v1-9-0-properly-in-jquery-validate-unobtrusive

     

     

  • Comment author was deleted

    Nov 11, 2013 @ 11:52

    Ok thanks for the details :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies