Commit graph

11361 commits

Author SHA1 Message Date
Scott Walters
69ea5b10ee a few improvements to error reporting/handling 2013-09-26 18:01:41 -05:00
Scott Walters
da37116d71 fix up Operation::User (op=editUser) some more for the new admin: give it Save and Cancel buttons, and template it into the style with $session->style->process() so that it gets the headers that it needs for pulling in YUI and stuff like that as well as so that it is styled to look nice. 2013-09-26 17:32:32 -05:00
Scott Walters
0b5a77515f make Form::Cancel better; make WebGUI::TabForm use it. so, logic migrated from TabForm to Form::Cancel where it's re-usable and fixed up for this new Doug admin. 2013-09-26 17:32:32 -05:00
Scott Walters
7b7f3be628 Create a Form::Cancel; FormBuilder doesn't automatically add Save/Cancel buttons so this can serve as a Cancel button for it; it attempts to correctly handle either closing the modal pop-up dialog or else going back in history/going back to the page that linked to this one. needs tests. the Cancel button in TabSet needs to use this logic. 2013-09-26 17:32:32 -05:00
david delikat
1e22418757 AdminToggle Macro is blank when in admin mode
webgui 8 does not require a 'turn admin off' switch.
2013-09-25 19:23:40 -05:00
Scott Walters
7900cec5e8 finish the "Upload Files" implementation; the AssetHelper had some bugs and needed to close the pop-up dialog that it created. 2013-09-25 15:00:46 -05:00
Scott Walters
690d87a668 $session->asset is not defined if we're running from a Content Handler or the like. make reporting it conditional so that we don't get error output from our error output. 2013-09-25 15:00:46 -05:00
Scott Walters
fbb143116e don't reload the Tree/View pane after a Copy Branch operation; Copy Branch doesn't mutate the asset tree being viewed so not needed 2013-09-25 15:00:45 -05:00
Scott Walters
b962b03848 Making the "Copy Branch" menu option work was a treat.
requestHelper() invokes an asset helper via AJAX.  processPlugin() handles the JSON responses, which in this case is to open a dialog box and show
a given URL in it (openDialog key in the JSON hash).  that pop-up is open and the page loaded, and that displays a form.  that form submits
to an asset helper (uh oh) which also returns JSON (actually, it was failing to do even that and was stringifying a hash).  even if it returned
JSON, it would just get shown to the user in the pop-up.  so the form that gets loaded into the pop-up has to, onsubmit, after it has config
details from the user, run JS to make the AJAX request to the asset helper to start the actual copy operation, call into the admin's JS to
pop up the dialog that polls on a forked process, and then call into the admin to close itself.  this is a nasty hack that daisy chains
together two possible replies to processPlugin(), one after the other.
2013-09-25 15:00:45 -05:00
Colin Kuskie
26ae70190f Remove extra call to old tree updating code. 2013-09-25 15:00:44 -05:00
Colin Kuskie
a503e72cfc Update CopyBranch for newest fork code. 2013-09-25 15:00:44 -05:00
Colin Kuskie
cf28121885 Fix label, remove debug. 2013-09-25 15:00:44 -05:00
Colin Kuskie
4b97ce9a55 Call the right sub to update the Fork status. 2013-09-25 15:00:44 -05:00
Colin Kuskie
11c9a80814 Need at least one call to the sub that updates the Fork status. 2013-09-25 15:00:43 -05:00
Colin Kuskie
7766c43821 Remove debug code from Delete and Copy 2013-09-25 15:00:43 -05:00
Colin Kuskie
0363101e43 update Delete AssetHelper for the new admin JS 2013-09-25 15:00:43 -05:00
Colin Kuskie
e6d26369ed Fix progress bar display for copy. 2013-09-25 15:00:43 -05:00
Scott Walters
3aaa72f12c don't let non-priviledged users turn on the admin; additional logic to kick them out of admin when they're no longer logged in would be nice too. 2013-09-24 12:28:51 -05:00
Scott Walters
8be9ed7d59 the 'cut' drop down (AssetHelper) operation basically worked, but the screen wasn't redrawn after the change, and the JSON returned during Fork polling in WebGUI::AssetHelper::Cut didn't match what the YAHOO.WebGUI.Fork.poll callback in WebGUI.Admin.prototype.openForkDialog was expecting so status communication had to be wired up. wG::ProgressTree exposes 'flat' now too for the sake of computing a progress bar. looking at only the roots nodes is ineffective; in this case, the number of root nodes would only ever be 1 though the number of child nodes to be processed could be much higher. WebGUI.Admin.prototype.openForkDialog's callback to YAHOO.WebGUI.Fork.poll handles a status JSON message (JSON inside of JSON, ugh) of "reload" and there's an admin.reload() method now. that's also callable from WebGUI.Admin.prototype.processPlugin and was done in the style of its handlers. 2013-09-24 12:28:51 -05:00
Colin Kuskie
3061626753 Fix i18n label for tab in DataTable edit form 2013-09-16 09:43:29 -07:00
Colin Kuskie
651c7c8982 Save the Navigation fields that are drawn custom. 2013-09-13 15:11:12 -07:00
Colin Kuskie
e42ca6b870 Merge branch 'wg8-nav'. Fix rendering and JS issues with the nav asset. 2013-09-13 13:36:23 -07:00
Colin Kuskie
69e3b22daf Assign the content to the right place. 2013-09-13 13:36:06 -07:00
Colin Kuskie
6123dd276b fix many issues with the JS for the nav in wg8. still has initialization problems. 2013-09-13 12:42:19 -07:00
Colin Kuskie
950dd349db Fix the display of revision dates in the asset helper screen. 2013-09-13 12:20:34 -07:00
Scott Walters
9d047a788d Revert "when flipping between Tree and View tabs with edit on, clear out the containers for the toolbars before re-adding the toolbars -- this time in YUI"
... committeed too much stuff. ack

This reverts commit c19c3503d4.
2013-09-12 13:02:01 -05:00
Scott Walters
c19c3503d4 when flipping between Tree and View tabs with edit on, clear out the containers for the toolbars before re-adding the toolbars -- this time in YUI 2013-09-12 12:03:41 -05:00
Scott Walters
0edd58f848 add a getProperty to WebGUI::Definition::Role::Object as Asset.pm's www_add wants this for picking out noFormPost data from the property definition in assets. fixes a fatal error when trying to add the Request Tracker and perhaps other assets. 2013-02-17 15:02:16 -05:00
Scott Walters
e27f200856 remove Moose::Deprecated deprecation for updateProfileFields and remove the last remaining use of it from the code; Moose::Deprecated is failing on 5.10, which is still the default for CentOS and probably will be for a few more epochs 2013-02-17 12:54:03 -05:00
Graham Knop
58d6aff8f6 scripts aren't classes, so use anon package instead 2012-11-17 15:59:00 -05:00
Graham Knop
798c3e169a remove all WebGUI modules from compile time load of WebGUI::Test 2012-11-17 15:58:05 -05:00
Graham Knop
d71c8834b6 reduce modules loaded by WebGUI::Paths 2012-11-17 15:57:22 -05:00
Graham Knop
76b638ddb9 modernize include macro slightly and add note about security 2012-11-17 15:56:52 -05:00
Graham Knop
759c93cbe3 remove dependancy on private CGI function 2012-11-17 15:56:19 -05:00
Graham Knop
74aace1e41 use more modern way to specify parent 2012-11-17 15:55:45 -05:00
Scott Walters
88dbf7b187 fix variable name usage in Imager work from haarg after rebase 2012-11-11 20:08:44 -05:00
Graham Knop
fc998d9629 fix rebase mistake 2012-11-02 18:13:47 -04:00
Graham Knop
d1bf21b440 convert remainder of Storage to Imager 2012-11-02 17:26:00 -04:00
Graham Knop
c4bb713d94 convert some functions to use Imager 2012-11-02 17:25:55 -04:00
Scott Walters
560e7228fc Revert "Config::JSON stopped providing a BUILDARGS method, so we can't "around" it. subclass new() the old fashioned way and bump the Config::JSON version dep so we know we're getting the non-Moose one."
... fix is bad Moose style and no one can replicate this problem but me; need to look harder for the problem locally

This reverts commit 55aead887b.
2012-07-10 14:04:50 -04:00
Scott Walters
55aead887b Config::JSON stopped providing a BUILDARGS method, so we can't "around" it. subclass new() the old fashioned way and bump the Config::JSON version dep so we know we're getting the non-Moose one. 2012-07-10 03:49:11 -04:00
Scott Walters
c042f43923 use AssetAspect::UploadFiles.
fixes "Can't locate object method "whatNext" via package "WebGUI::FormBuilder::Tab" at /data/WebGUI8/lib/WebGUI/Asset/Wobject/Folder.pm line 165.", but doesn't actually manage to upload files.
2012-06-22 19:12:32 -04:00
Graham Knop
dae3fce362 don't set maintenance mode on a site that is at the correct version 2012-04-16 13:57:47 -04:00
Colin Kuskie
21546e1821 Undoing patch for removing query information from path_info. Helps to keep ; and ? straight when building URLs by hand. 2012-03-12 13:59:45 -07:00
Colin Kuskie
f59f8a80c4 Fix a bad class name when trying to catch exceptions. 2012-03-12 10:09:03 -07:00
Colin Kuskie
5ad34a9266 Plack::Request->path_info includes the query string! Argh. 2012-03-12 07:56:10 -07:00
Colin Kuskie
2fd4f74911 Remove debug output. 2012-03-11 16:03:25 -07:00
Colin Kuskie
db0befd864 Document a template variable that already existed to fulfill RFE #9730. 2012-02-29 23:50:51 -08:00
Colin Kuskie
04c902a23e Add feature, redirect after logout. 2012-02-24 23:07:15 -08:00
Colin Kuskie
476b14f82c Restore ability to edit ITransact and Ogone payment drivers. Ensure that all forms use CSRF tokens. 2012-02-24 22:43:43 -08:00