Chapter 7.3. Adding a New Project
The Dashboard isn’t just a place to display existing projects, it also provides a way to quickly add a new project to your database.
Rather than have a form for adding a new project always sitting there taking up space in the dashboard form, the WhatWhat developers created a JavaScript function that toggles the form between hidden (its default state) and visible.
Here’s the code in dashboard.kid to display the form:
The sample bookmarker application uses the TurboGears form widget to automatically generate our forms, but the WhatWhat project takes another approach and creates the form ...
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.