Git Product home page Git Product logo

twitter-bootstrap-scaffolding's Introduction

Twitter Bootstrap Scaffolding

This is an experimental Grails project using Twitter Bootstrap for scaffolded views.

Demo

Check out the demo on Cloud Foundry.

Installation

You can either use this project as a template or to add to an existing Grails application:

  1. Install the Twitter Bootstrap Resources plugin, i.e. add runtime ":twitter-bootstrap:2.3.1" to BuildConfig.groovy.
  2. Install the Fields plugin, i.e. add runtime ":fields:1.3" to BuildConfig.groovy.
  3. Copy the following files into your Grails application.
    • src/templates/scaffolding/*
    • web-app/css/scaffolding.css
    • grails-app/conf/ScaffoldingResources.groovy
    • grails-app/taglib/**/*
    • grails-app/views/index.gsp
    • grails-app/views/layouts/bootstrap.gsp
    • grails-app/views/_fields/default/_field.gsp

twitter-bootstrap-scaffolding's People

Contributors

antonevane avatar krtek avatar ngi avatar robfletcher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

twitter-bootstrap-scaffolding's Issues

CSS bug: show button sometimes disappears @480 width

The show button on the list pages sometimes does not appear when paginating over results when the width is less than 480 px.

On browsers, hovering the mouse over the row triggers the button to appear, however, this is not possible on the iOS browser leaving you no way of getting to show page.

This bug is reproducible on chrome, safari, and the iOS browser.

deploy to tomcat

Deployng the war file to tomcat does not work: "blank page" no errors in catalina.out :-(

Demo Link in Docs Broken

The demo link in the MD file is broken. It links to a project at cloud foundry. With the changeover at CloudFoundry from the beta platform to the commercial 2.0, the demo site may have been removed or its dead state may only be temporary.

I can't make this work

Hi!
I tried to make this work, I downloaded the zip and running with grails 2.2.2, and got this error (at run-time):

<< UNRESOLVED DEPENDENCIES
org.grails.plugins#twitter-bootstrap;2.3.1: not found >>

So I changed in BuildConfig.groovy from 2.3.1 to 2.3.2. It worked to find the plugin but now I got (an extract):
.....
Caused by ClassNotFoundException: org.hibernate.engine.spi.SessionImplementor
->> 175 | findClass in org.codehaus.groovy.tools.RootLoader


| 423 | loadClass in java.lang.ClassLoader
| 147 | loadClass in org.codehaus.groovy.tools.RootLoader
| 356 | loadClass in java.lang.ClassLoader
| 2451 | privateGetDeclaredMethods in java.lang.Class
| 1810 | getDeclaredMethods in ''
| 46 | getLocked in org.codehaus.groovy.util.LazyReference
| 33 | get in ''
| 98 | doCall . in Config$_run_closure3
| 334 | innerRun in java.util.concurrent.FutureTask$Sync
| 166 | run . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread

Please would someone help me? Thanks

scaffolding.css has twitter-bootstrap version number built in

Causes resource error when copied over onto app. Easy enough to fix, but it'd be helpful if

web-app/css/scaffolding.css
63: background-image: url(../plugins/twitter-bootstrap-2.0.2.25/img/glyphicons-halflings.png);

were changed to
background-image: url(../plugins/twitter-bootstrap/img/glyphicons-halflings.png);

Demo not working anymore

The demo does not work anymore, there are no screenshots from the running example, and trying to make this example work gives errors with an actual version of Grails.

Please update this project and it's links. Right now it's not possible to "see" or to "try" it out of the box.

Apple touch images unfound

| Error 2012-06-18 20:40:54,260 [http-bio-8080-exec-2] ERROR resource.ResourceMeta - Resource not found: /images/apple-touch-icon-72x72.png
| Error 2012-06-18 20:40:54,339 [http-bio-8080-exec-2] ERROR resource.ResourceMeta - Resource not found: /images/apple-touch-icon-114x114.png

Should probably also add copypasta web-app/images to instructions

colors not working

I get a plain white navbar. no background color for hero-unit or well either. I'm using the latest version of the code with twitter bootstrap 2.1.0. Any suggestions?

Thanks

Create item with hasMany property

Just trying to work with a complex domain. Models with a hasMany property throws the following error. I will try to take a look at it and fix it if I have time.

Line | Method
->> 467 | runTask in /systemType/create


Caused by GrailsTagException: Error executing tag <g:form>: Error executing tag <f:all>: Cannot get property 'propertyName' on null object
->> 63 | doCall in /systemType/create


Caused by GrailsTagException: Error executing tag <f:all>: Cannot get property 'propertyName' on null object
->> 55 | doCall in /systemType/create


Caused by NullPointerException: Cannot get property 'propertyName' on null object
->> 318 | renderOneToManyInput in FormFieldsTagLib.groovy


| 235 | renderDefaultInput in ''
| 142 | renderWidget in ''
| 77 | doCall in ''
| 54 | doCall in ''
| 84 | doCall in systemType_create$_run_closure2_closure24
| 89 | doCall in systemType_create$_run_closure2
| 92 | run in systemType_create
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 680 | run . . in java.lang.Thread

controller is generated wrong with Intellij idea

Hi.
With Intellij Idea controllers is generated the 'old way'. With save() method and without switch in create for different request types.
With command line it`s ok.
Is not really a bug for me, but I wasted some hours to understand this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.