missing form.css in change state and delete confirmation forms
authorsylvain.thenault@logilab.fr
Thu, 26 Feb 2009 12:33:45 +0100
changeset 969 5a9bb32d0741
parent 968 62c0489c1c92
child 970 b52b1679f4e4
missing form.css in change state and delete confirmation forms
web/views/baseforms.py
--- a/web/views/baseforms.py	Thu Feb 26 12:30:42 2009 +0100
+++ b/web/views/baseforms.py	Thu Feb 26 12:33:45 2009 +0100
@@ -40,6 +40,7 @@
     def call(self):
         """ask for confirmation before real deletion"""
         _ = self.req._
+        self.req.add_css('cubicweb.form.css')
         self.req.add_js('cubicweb.edition.js')
         self.w(u'<script type="text/javascript">updateMessage(\'%s\');</script>\n' % _('this action is not reversible!'))
         # XXX above message should have style of a warning
@@ -101,6 +102,7 @@
         transition = self.req.eid_rset(self.req.form['treid']).get_entity(0, 0)
         dest = transition.destination()
         self.req.add_js('cubicweb.edition.js')
+        self.req.add_css('cubicweb.form.css')
         _ = self.req._
         self.w(self.error_message())
         self.w(u'<h4>%s %s</h4>\n' % (_(transition.name), entity.view('oneline')))