Here is a visually and functionally improved form for action.undo.
I got tired of having to scroll to the page bottom to find the RESTORE button,
so I added a RESTORE button to show for every diff block
(one can have multiple submit buttons in a form)
To make it more obvious that one still needs to click the little radio control
I added an arrow and used some color.
I also added a horizontal rule, to separate blocks visually better.
I left the table cells, but i am not sure why there should be any.
One very important thing I'd like to have added to the form:
A check that a radio button is clicked.
because right now if you do not select a radio button and click RESTORE,
the whole page gets scrapped without warning!
Here is the page source:
! Undo Changes
Select an earlier version of this page, to restore it.
<color=red>Warning: any current content on page **{p}** will be
overwritten.</color>
[(search group={p} dir=stamps template=unstamp order=reverse)]
/*
[[#unstamp]]
[(template first)][form][t width=100%]
[r][h left]Current Version: [(time {+page} %c)]
----
[r][c][if exists {p}]<color=blue>//{+:changesummary} //</color>
[r][c][(diff)][else][r][c]
//This page does not currently exist.//[if]
[(template each)][r][c]<color=green>//Select// =>[radio file {+page}]
**Version: [(time {+page} %c)]**</color> [submit RESTORE]
----
[r][c]<color=blue>//{*:changesummary} //</color>
[r][c]{*:diff}
[(template last)]
[t]
[submit RESTORE]
[if exists {p}][session stamp]
[if][session unstamp {p}.{=file}]
[session changesummary "Page restored to earlier version by {member}."]
[session savedata changesummary]
<color=red>Warning: any current content on page **{p}** will be
overwritten.</color>
[form]
[(template none)]->
//No history available for this page.//
<-
[[#end]]
*/
Cheers,
~Hans
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---