summaryrefslogtreecommitdiff
path: root/themes/default/views/page.html.php
AgeCommit message (Collapse)Author
2008-11-16Several large changes:Bharat Mediratta
1) Changed the way that we get forms. Now, if you want to get a form for a REST resource you prefix /form to the resource id. So: /form/photo/1 : returns a form for editing photo id 1 /form/comments/1 : returns a form for adding a comment to photo id 1 /form/comment/1 : returns a form for editing comment id 1 2) Changed the comment module to have two controllers: comment: deals with a single comment resource comments: deal with collections of comments attached to an item Related stuff: - Moved the comments js into the theme - Reworked Comment_Helper for clarity - Moved form generation code down into Comment_Helper - Cleaned up routes (eliminating new comment ones added in recent rev) - Added form() function to all REST controllers - Changed comment module to use a block instead of an arbitrary helper call from the theme - Comment controller only returns HTML currently, but returns a 201 Created status code when a new comment is added, which the Ajax code can catch and act upon. - Got rid of a lot of extra views in comment module
2008-11-15Now, only logged in users can edit stuff in-place.Bharat Mediratta
2008-11-15Revise the user login code.Bharat Mediratta
* Remove user registration link and popup from the theme; this shouldn't be done in a popup. Use ajaxform to simplify the way that we load the login popup. * Create form.html.php, this is a template for Forge based forms. * Move user validation rules into User_Model and let forms populate the rules into their forms as useful. * Undo r18688's changes regarding the REST code. We should never accept a null resource, this breaks the REST abstraction. * Change login and user controllers to use Forge which lets us delete login.html.php and user.html.php since those now are generated by the theme-owned form template
2008-11-14Rename login.js to user.jsTim Almdal
2008-11-12More updates for user management. The controllers don't work yet. But the ↵Tim Almdal
login link in the header wil open up a login box like the mockup
2008-11-09IE fixes, sidebar is now fixed in IE (we were missing a yui-g class). ↵Chad Kieffer
Removed .first class, it's not needed, at least not now. Moved all top-level layout containers to page.html.php so that if themers want to replace YUI grids with something else, like Blueprint, they only really need to edit page.html.php.
2008-11-09change url::base() to url::file()Bharat Mediratta
2008-11-08Add support for in-place editing of data fields.Bharat Mediratta
2008-11-07convert tabs -> spacesBharat Mediratta
2008-11-07Added YUI 2.6.0 CSS collection to lib (reset-gonts-grids and base) and call ↵Chad Kieffer
these rather than CDN versions, for now. Renamed default theme's style sheet to screen.css, recommend that CSS files be named for the primary media they support. Removed unused YUI JS component calls from the default theme.
2008-11-06Break header/sidebar/footer out into separate templates.Bharat Mediratta
2008-11-06Change the theming module again, per a discussion with Chad and Jakob.Bharat Mediratta
Now we have an overall page layout (page.html.php) which has a $content variable, and that $content will be one of several possible secondary views. Currently, it is either photo.html.php or album.html.php. header, footer, breadcrumb, sidebar, anything common to all pages is in page.html.php.
2008-11-04Add a test to detect tabs in our code, and convert all tabs to spacesBharat Mediratta
so that the test passes.
2008-11-03Oops, left out the footer by accident.Bharat Mediratta
2008-11-03Default theme, built with YUI. A mock right now, not functional atBharat Mediratta
all (except in some very minor ways). It's unclear if this is the best final structure. Right now the album controller knows a considerable amount about the layout of the page, which may not be the best way to do things.