I think we have 4 people now working on this. Let's move this discussion to
web2py-developers. Please copy your email there.
On Monday, 7 May 2012 00:18:35 UTC-5, Annet wrote:
>
> I started working with bootstrap 4 weeks ago and didn't make use of the
> version in trunk. I just integrated the bootstrap skeleton into web2py's
> layout.html and web2py_ajax.html (just renamed them scaffold.html and
> scaffold_ajax.html). In the scaffold.html view:
>
> <script src="{{=URL('static','js/modernizr.custom.js')}}"></script>
>
> <!-- include stylesheets -->
> {{
> response.files.append(URL('static','bootstrap/css/bootstrap.css'))
> }}
> <style type="text/css">
> body {padding-top: 20px; padding-bottom: 40px;}
> </style>
> {{
>
> response.files.append(URL('static','bootstrap/css/bootstrap-responsive.css'))
> }}
>
> {{include 'scaffold_ajax.html'}}
>
> <!-- uncomment here to load jquery-ui ...
>
>
> and in scaffold_ajax.html:
>
> response.files.insert(0,URL('static','js/jquery.js'))
> if calendar_function:
> response.files.insert(1,URL('static','css/calendar.css'))
> response.files.insert(2,URL('static','js/calendar.js'))
> pass
> response.files.insert(4,URL('static','bootstrap/js/bootstrap.min.js'))
>
>
> Kind regards,
>
> Annet
>