The edit form changes that I mentioned previously: http://lists.openguides.org/mail/openguides-dev/2007-April/001653.html
are now in svn. Basically, there are no longer any tables involved; it's all done with <div>s, which gives you much more flexibility. I'd really appreciate it if those of you with customised edit forms (Boston, OGL, etc) could have a look at it and see if it lets you do what you want to do. The new classes and things are all documented in README.CSS.
If you have any trouble with it, please let me know. I'd quite like to get this released reasonably soon.
Kake
On Wed 18 Apr 2007, Kake L Pugh kake@earth.li wrote:
If you have any trouble with it, please let me know. I'd quite like to get this released reasonably soon.
Oh, and also, I'm not particularly attached to any of the class/ID names, so if you hate them and have better suggestions I'm all ears.
Kake
On Wed 18 Apr 2007, Kake L Pugh kake@earth.li wrote:
The edit form changes that I mentioned previously: http://lists.openguides.org/mail/openguides-dev/2007-April/001653.html
are now in svn.
As requested by Dom, here are CSS snippets for making your edit form look exactly (well, pretty much exactly) the same as it did when we were using tables. (Whitespace-collapsed for ease of scanning.) All tested on: Firefox 2 (OS X), Opera 9.20 (OS X), IE 5.01 (Win), IE 5.5 (Win), IE 6.0 (Win), and IE 7.0 (Win).
To have the preview changes/cancel edit/save changes buttons all on the same line across the screen: div.edit_form_actions { text-align: center; } div.preview_edit { float: left; width: 33%; } div.cancel_edit { float: left; width: 33%; } div.commit_edit { float: right; width: 33%; } fieldset#main_information { clear: both; }
To make the titles of the fieldsets (i.e. the groupings of Main information, Metadata, OpenGuides information) be in bold, and have the entire fieldset set in a little way from the edge of the screen: fieldset legend { font-weight: bold; } fieldset { margin-left: 5%; margin-right: 5%; }
To have the labels ("Content:" etc) in a column on the left-hand side, and the corresponding boxes on the right-hand side: fieldset label { display: block; width: 15%; float: left; } fieldset div.edit_box { width: 80%; float: right; } fieldset div.edit_form_group { clear: both; }
Things that you can't change with CSS - if you really really really want one of these things to go back to the way it was then do shout.
- "Main information (required)" has changed to "Main information". This is because it contains fields which aren't required, and never have been, namely Categories and Locales.
- "Metadata" has changed to "Additional information". This is because "metadata" is a confusing geek word that normal people don't understand, and also because it isn't actually data about data anyway.
- "OpenGuides information" has changed to "About your edit". I just thought this was clearer and more descriptive.
- "One-line summary of this node" has moved into the main information. This is because it should have been there in the first place.
- "node" has changed to "page" in all text. This is because non-geeks don't know what a node is and I got fed up of explaining that it just means "page" :)
- "URL to node Image" has changed to "URL of image". Again, I just thought this was clearer.
Kake
On Wed 18 Apr 2007, Kake L Pugh kake@earth.li wrote:
Things that you can't change with CSS - if you really really really want one of these things to go back to the way it was then do shout.
Just realised I forgot something.
- The node image fields (URL, copyright holder, etc) have moved out of the Metadata/Additional information fieldset, and into one of their own at the bottom.
Kake
On Wed 18 Apr 2007, Kake L Pugh kake@earth.li wrote:
The edit form changes that I mentioned previously: http://lists.openguides.org/mail/openguides-dev/2007-April/001653.html
are now in svn. [...] I'd really appreciate it if those of you with customised edit forms (Boston, OGL, etc) could have a look at it and see if it lets you do what you want to do.
*prod*
Please?
Kake
On Wed, Apr 25, 2007 at 11:53:20AM +0100, Kake L Pugh wrote:
On Wed 18 Apr 2007, Kake L Pugh kake@earth.li wrote:
The edit form changes that I mentioned previously: http://lists.openguides.org/mail/openguides-dev/2007-April/001653.html
are now in svn. [...] I'd really appreciate it if those of you with customised edit forms (Boston, OGL, etc) could have a look at it and see if it lets you do what you want to do.
*prod*
Please?
The boston customized edit form is only (mostly) customized insofar as it has the map on it -- I don't think I've done anything else to it. However, I'm also so out of date on code it's not even funny, so no feedback I have would really be relevant.
I'm sure it'll be fine for what i need.
Regards,
On Wed 25 Apr 2007, Christopher Schmidt crschmidt@crschmidt.net wrote:
The boston customized edit form is only (mostly) customized insofar as it has the map on it -- I don't think I've done anything else to it.
Hm, well, you have your hints for Content, Categories, and Locales - I'm planning to add some <div.hint>s to the markup, but I'm wondering if we should try to hash out a standard wording for the hints for each thingy or if I should just have the text included via custom templates.
Ideally, I'd like to have everyone running on the same edit template as far as possible.
I think we could probably roll your "click to add from the existing list" stuff for categories/locales back into the main distro, maybe with a config option to let admins switch it on and off.
How many different categories/locales do people have on their guides at the moment? RGL has 156 categories and 588 locales, so I'm not sure quite how useful it would be for us; possibly in the future there could be something AJAXy to click like "give me a drop-down of pub-like categories", where the suitable categories are worked out by finding all categories that things also in Category Pubs are in.
Kake
openguides-dev@lists.openguides.org