Commit Graph
40 Commits
Author SHA1 Message Date
Chad Kieffer c2598fe4d8 Dialog polishing. They now resize their height. Updated form styles in the context of dialog display (don't show legends, fieldset border, or submit button).
Let's make sure that all forms generated are complete and well formed and then use JS and CSS to control their display and behavior in different contexts.
2008-12-18 02:50:40 +00:00
Chad Kieffer 01f6c67eb5 Added .gLoadingLarge and .gLoadingSmall to show ajax loading indicator. Applied to modal dialogs. 2008-12-17 06:22:08 +00:00
Chad Kieffer 3c05b95620 Added JS to set/reset simple forms' input values to their corresponding labels' value. Labels should always be used with visible inputs. Use this to style and control short form input display and behavior. 2008-12-17 00:45:52 +00:00
Tim Almdal 363548bfc4 2008-12-16 20:40:29 +00:00
Tim Almdal 931d8c6bdc Submit the form using ajaxSubmit 2008-12-16 17:26:19 +00:00
Tim Almdal 4c3c68ac10 Add Submit and Reset buttons to the dialog in order to trap the form submission so the form doesn't close. There might be a better way, but i couldn't think of it. 2008-12-16 16:29:59 +00:00
Bharat Mediratta 011fe8bc93 Get rid of windows line endings 2008-12-15 08:35:30 +00:00
Chad Kieffer c68a0823b9 Should be ul, not u#gLoginLink 2008-12-15 06:17:17 +00:00
Chad Kieffer 1a5da095ae Renamed vars used in dialog init to avoid confusion and conflicts. 2008-12-15 06:11:32 +00:00
Chad Kieffer 119344d9db Switched login display from display in the header to a dialog. Validation errors don't display on first failed attempt, will fix later. Moved jquery js, images, css out to respective folders. 2008-12-15 02:45:50 +00:00
Bharat Mediratta 2842a1a8be Argh, fix a bad rename. 2008-12-15 01:52:04 +00:00
Bharat Mediratta 1127257f63 Rename default_admin to admin_default. 2008-12-15 01:50:52 +00:00
Tim Almdal bf10544e27 Destroy the popup dialog when it closes so there is nothing hanging around and we can reuse it for a different popup 2008-12-11 20:47:09 +00:00
Tim Almdal 1af3b8e100 Changes to the Menu.php:
1) separate the classes that are generated by the Menu class from what is used for the rendering. The classes that are generated are gMenu, gMenuElement, and gMenuDialog for the Menu, Menu_Element and MenuDialog classes respectively.
2) Changed the ui.init.js to add the appropriate rendering classes to the above classes. All gMenu elements have the sf-menu class added.  All elements of class gMenuDialog have the gDialogLink class added.
3) Use Superfish for the menus so they now float properly.
2008-12-11 19:01:47 +00:00
Chad Kieffer 2fbd4c09e6 Checked in jQuery superfish menu plugin, applied to item options menu. Updated album/item view icons. 2008-12-09 06:40:20 +00:00
Chad Kieffer c65ae12032 Let dialogs be draggable for now. 2008-12-07 04:58:07 +00:00
Chad Kieffer 36cda412f4 First go around at reusable modal dialogs. Moved jQuery UI CSS into screen.css, moved default theme JS to js folder. Named jQuery UI files to match the file names as they distribute them. Removed accordion, it's not used yet. 2008-12-07 04:49:26 +00:00
Tim Almdal 27e64f1dc6 Move javascript from default theme to appropriate modules 2008-11-27 06:14:32 +00:00
Tim Almdal 326fa1dd27 Remove slideshow.js as it is not required 2008-11-27 05:59:25 +00:00
Bharat Mediratta 7be23c269c Remove a stray comma that was making IE sad. 2008-11-25 03:24:31 +00:00
Chad Kieffer c812d2a931 Changed comment sort order asc. Changed ajax comment add to append comment li to comment thread ul. Added fadeIn for user login. 2008-11-24 07:12:45 +00:00
Chad Kieffer e85282b709 Make login form JS unobtrusive. Needs work. 2008-11-24 00:27:45 +00:00
Chad Kieffer 9139872c8d When removing #gCommentForm I forgot to update the jQuery selectors used here. In place commenting works again. 2008-11-23 20:17:02 +00:00
Chad Kieffer ac9df35d8a Cleanup of header to normalize margins and white space. Improved display of user login form. Added gHide, gShowBlock, gShowInline, gClose classes to handle show and hide functions. Half-baked idea which will need refinement. 2008-11-22 20:36:46 +00:00
Tim Almdal 4bf486955c The start of the slideshow module. Mostly framework stuff, no real implementation yet 2008-11-18 19:09:24 +00:00
Jozef Selesi 3ebb751cda First iteration of REST controller refactoring. RESTful controllers that refer to collections should now have plural names and there should be only one controller per resource. Updated existing classes that implement REST_Controller. The routing now works like this:
GET    /controller    -> controller::_index()
POST   /controller    -> controller::_create()
GET    /controller/id -> controller::_show()
PUT    /controller/id -> controller::_update()
DELETE /controller/id -> controller::_delete()
GET    /form/edit/controller/resource_id -> controller::_form()
GET    /form/add/controller/data         -> controller::_form()
2008-11-18 08:28:32 +00:00
Bharat Mediratta ce7fbf979d Stop using the target param; replace the form by hand so that we can run ajaxify_comment_form() as needed. Otherwise the 2nd post attempt won't be ajax 2008-11-16 07:27:36 +00:00
Bharat Mediratta 140736a1e4 Several large changes:
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-16 07:14:12 +00:00
Bharat Mediratta b8b60df391 Rename gLogin -> gLoginForm
This disambiguates forms from blocks (for example in the comment
module we were calling both the form and block gComments).
2008-11-16 07:07:16 +00:00
Bharat Mediratta ca05d94b70 Add gInline to the form's unordered list to clean it up. 2008-11-15 09:27:04 +00:00
Bharat Mediratta ae7839ffaa Revise the user login code.
* 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-15 06:23:09 +00:00
Tim Almdal bd1ec2df1f The state of of the user registration functionality 2008-11-14 18:16:13 +00:00
Tim Almdal d7745f2ad8 Add the name attr to the input fields and use the form.serialize() method to generate the post data 2008-11-14 17:23:10 +00:00
Tim Almdal 61d957e372 Rename login.js to user.js 2008-11-14 16:58:59 +00:00
Tim Almdal 6d7130bffc Progress is being made... you can now logout 2008-11-13 05:17:58 +00:00
Tim Almdal f62719ba61 Login is now working, but you can't logout 2008-11-13 04:56:12 +00:00
Tim Almdal d357ed4424 Adds the class gError to gLogin if the username or password is in error 2008-11-13 04:07:03 +00:00
Tim Almdal 74216a3c63 The login processing is starting to take shape. Login_Form is gone. The html for the login form is retrieve via an ajax call when the user clicks on login. Can't login with a valid id yet, but you certainly get error messages when things are wrong :-) 2008-11-12 21:42:40 +00:00
Tim Almdal 75527db81f Clean up alignment in the login menu when the login form is displayed 2008-11-12 17:08:53 +00:00
Tim Almdal 1da2428183 More updates for user management. The controllers don't work yet. But the login link in the header wil open up a login box like the mockup 2008-11-12 03:40:49 +00:00