comparison MoinMoin/theme/__init__.py @ 3356:2dd4904cfee4

better revert action, make action menu GET again implements FeatureRequests/CommentsForReverts, because it is two-stage now the action menu can be GET again
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 20 Mar 2008 16:23:15 +0100
parents 6003cadc0791
children 1c5bb02539cf
comparison
equal deleted inserted replaced
3355:19a7a6efaa21 3356:2dd4904cfee4
1006 'options': '\n'.join(options), 1006 'options': '\n'.join(options),
1007 'rev_field': rev and '<input type="hidden" name="rev" value="%d">' % rev or '', 1007 'rev_field': rev and '<input type="hidden" name="rev" value="%d">' % rev or '',
1008 'do_button': _("Do"), 1008 'do_button': _("Do"),
1009 'baseurl': self.request.getScriptname(), 1009 'baseurl': self.request.getScriptname(),
1010 'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name), 1010 'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name),
1011 'pageurl': self.request.page.url(self.request),
1012 } 1011 }
1013 html = ''' 1012 html = '''
1014 <form class="actionsmenu" method="POST" action="%(pageurl)s"> 1013 <form class="actionsmenu" method="GET" action="">
1015 <div> 1014 <div>
1016 <label>%(label)s</label> 1015 <label>%(label)s</label>
1017 <select name="action" 1016 <select name="action"
1018 onchange="if ((this.selectedIndex != 0) && 1017 onchange="if ((this.selectedIndex != 0) &&
1019 (this.options[this.selectedIndex].disabled == false)) { 1018 (this.options[this.selectedIndex].disabled == false)) {