Bharat Mediratta
1ed83e5569
Fix bad <input/>
2008-12-24 04:09:41 +00:00
Bharat Mediratta
672eca5337
Lots of deltas rolled up into a bigger change. Sorry for the mess.
...
1) Deleted in-place-editing. We'll be replacing this with a real edit
system that groups settings together and is more coherent.
2) Tweaked the way that dialog boxes work to get the ajax stuff working
again. It's imperfect and does not work properly for uploading images.
This is going to get redone also, but this is a good resting point.
3) Created edit forms for albums and photos. Moved _update and _create out
of Items_Controller and into the individual subclasses.
4) Created access::required which is a shorthand for:
if (!access::can(...)) {
access::forbidden();
}
5) Added validation rules to Items_Model
6) Converted login to use the regular modal dialog approach in the theme.
2008-12-24 00:20:26 +00:00
Bharat Mediratta
f476e2169e
Change photo::img_dimensions to take the dimensions, not a photo. This lets us use it in the watermark module too
2008-12-23 01:27:50 +00:00
Bharat Mediratta
3a71a9d5c1
Add message severity CSS classes to status messages. Create
...
message::severity_class() to do the conversion and convert the log
entry code to use that.
2008-12-22 20:23:28 +00:00
Bharat Mediratta
37d24e863c
Internationalize welcome block.
2008-12-22 19:46:40 +00:00
Bharat Mediratta
bdc0876fa8
Add messaging system for reporting actions back to the user. Make
...
module install/uninstall work and tie it into the messaging system.
2008-12-22 06:50:20 +00:00
Bharat Mediratta
685a5ca1e1
Support proper rendering of locked modules, add a submit button, point it at admin/modules/save
2008-12-22 04:32:23 +00:00
Bharat Mediratta
fe27bd1eb3
Change the way that we track modules.
...
Each module now has a "module.info" file that has information about
the module, including the core. We can display the installed version,
and the version in the code.
Also take a first shot at a modules admin page.
2008-12-22 03:41:33 +00:00
Bharat Mediratta
849b271a8c
Add info/warning/error classes to log messages.
2008-12-21 10:35:30 +00:00
Bharat Mediratta
3ce32dab55
Report actual log entries in the "log entries" admin block.
2008-12-21 03:56:53 +00:00
Bharat Mediratta
a19a4729b5
Implement the 'Project News' block with actual news from GMC.. woot!
2008-12-21 02:36:32 +00:00
Bharat Mediratta
8f87a030c8
Implement the photo stream with the most recently uploaded photos.
2008-12-20 23:19:12 +00:00
Bharat Mediratta
406830cbf8
use some real stats
2008-12-20 10:54:29 +00:00
Bharat Mediratta
b3b308f369
Add a missing colon.
2008-12-20 02:08:15 +00:00
Bharat Mediratta
a5a9a79fa6
Internationalize.
2008-12-20 02:08:03 +00:00
Bharat Mediratta
0f10f37c16
Replace placeholders with real data
2008-12-20 02:06:14 +00:00
Bharat Mediratta
e4bace4c74
Collapse Admin_Dashboard_Controller down into a single theme call, since now
...
all dashboard blocks are stored in modules.
2008-12-20 01:42:18 +00:00
Bharat Mediratta
b933d1a170
Move Recent Comments into its own block.
2008-12-20 01:25:03 +00:00
Bharat Mediratta
9afd9d05ae
Move log entries into its own block
2008-12-20 01:20:19 +00:00
Bharat Mediratta
16a3e43b45
Move the "Photo Stream" section into its own block
2008-12-20 01:16:46 +00:00
Bharat Mediratta
e12a4f2ae3
Move the "status messages" section into its own block.
2008-12-20 01:13:57 +00:00
Bharat Mediratta
68e9dcf027
Move Platform and Project News admin sidebar blocks into the new
...
modular structure.
2008-12-20 01:08:39 +00:00
Bharat Mediratta
ac4bb34cf2
Add admin sidebar blocks, and move the stats block into that pattern.
2008-12-20 01:00:52 +00:00
Bharat Mediratta
aee3efe972
Create a pattern for admin dashboard blocks and make the "welcome"
...
block.
2008-12-20 00:52:20 +00:00
Bharat Mediratta
855a5928ce
Create a new pattern for Site Admin controllers:
...
1) They must all start with "admin_". This pattern is not directly
routable.
2) Their urls must be /admin/xxx.
3) The Admin_Controller will take the xxx and look for Admin_Xxx_Controller
and will delegate to that admin controller, after doing security checks.
Moved the users and dashboard views into individual modules for now.
2008-12-19 09:47:13 +00:00
Bharat Mediratta
5ca17fd273
Allow server-side adding of images to other albums than the root
2008-12-19 00:48:45 +00:00
Bharat Mediratta
a74537ad59
Don't wrap hidden inputs in <li/>
2008-12-18 22:29:49 +00:00
Tim Almdal
04441e11cc
1) Remove the load watermark from the scaffolding... use the menu option
...
2) The set watermark dialog is now sizing properly. @todo is recenter in the window
2008-12-16 17:30:18 +00:00
Bharat Mediratta
e82b08db20
Make the profiler output more legible by adding some padding to the table.
2008-12-16 04:45:52 +00:00
Tim Almdal
db7e60da32
Change the watermark module to use forge.
...
Also the watermark file is now stored in varpath.
and the location is stored in the module vars table
2008-12-14 23:53:30 +00:00
Tim Almdal
4b4e9e8e45
The start of the watermark module. It doesn't save the watermark at this point. This is more of trying out the approach where Forge is not used for forms. Basic html and the Validation library.
2008-12-14 19:43:04 +00:00
Tim Almdal
fc1e7a9333
1) fix Forge_Group to display the label (will raise a bug with Kohana)
...
2) Change form.html.php to use the group label instead of the name
3) Converted the add photo to explicity set the label of the field (new coding standard)
2008-12-14 03:19:31 +00:00
Bharat Mediratta
11d4e2d725
Don't show the access tab if the user module isn't installed
2008-12-12 07:12:48 +00:00
Tim Almdal
b202816324
Remove the attempt at a local import module
2008-12-12 01:46:43 +00:00
Bharat Mediratta
2cf3233f54
Get rid of all pseudo users and pseudo groups, while preserving all
...
other functionality. This makes our user/group and access code
fully consistent.
2008-12-12 00:59:30 +00:00
Tim Almdal
e1f2a5d4e6
1) Begins the creation of the local import module by adding the administation component to the scaffolding Actions tab. The importing functionality will follow shortly.
...
2) Defines a routining pattern for module administration controllers. URI's of the form admin/module/method/parameters gets remapped into module_admin/method/parameters. This will result in the lookup of the the controller Module_Admin_Controller
2008-12-11 17:20:55 +00:00
Bharat Mediratta
18a6614a11
Change all access API methods to take ORMs instead of ids. This will
...
minimize reloading objects from the database.
2008-12-10 07:05:49 +00:00
Bharat Mediratta
5ae606786a
update call from access::can() -> access::group_can()
2008-12-09 00:50:58 +00:00
Tim Almdal
bd033cda8f
Move form.html.php from themes/default/views to core/views
2008-12-07 23:05:00 +00:00
Bharat Mediratta
9ba9f7bf27
Change the startup code to only put installed modules on the autoload
...
path. This breaks a bunch of places where we had hardcoded
dependencies, so guard all of those cases. Restructure
module::available() a bit and the way that we do install/uninstall in
the scaffolding.
2008-12-04 07:44:28 +00:00
Bharat Mediratta
4d76351017
Fix indentation
2008-12-04 05:54:48 +00:00
Bharat Mediratta
f114814c03
Move the form html into the controller
2008-12-03 05:59:39 +00:00
Tim Almdal
3953dde2c6
The rearrange module will now add an album if you drag the "new album" onto the album tree. I haven't had a chance to figure out why the form does get any styling or why a textarea is no included as a list item.
2008-12-02 21:25:15 +00:00
Bharat Mediratta
52e63e7f75
Tighten up ul.permissions
2008-12-01 23:48:07 +00:00
Bharat Mediratta
ed2cb2a86d
Fix profiler settings in the scaffolding
2008-12-01 10:40:40 +00:00
Bharat Mediratta
2eed685883
style the permission tree a little tighter
2008-12-01 10:27:36 +00:00
Bharat Mediratta
5c303aa07b
Add access::reset() so that you can specify your intent to use the
...
parent's permissions.
Update scaffolding to demonstrate that it works.
2008-12-01 09:57:03 +00:00
Bharat Mediratta
88a70cbc04
Clean up styles a bit to make it more obvious what's going on. Show
...
edit permissions too to demonstrate that we're doing something
different for the different type of permissions.
2008-12-01 09:02:46 +00:00
Bharat Mediratta
91c4bda1ec
Prototype access control model. There's much left to do, but it's a
...
working implementation.
2008-12-01 08:50:00 +00:00
Bharat Mediratta
6b03b798f3
Move rearrange HTML generation into welcome.php so that we gracefully
...
handle the case where the DB is not installed yet.
2008-11-30 21:39:23 +00:00