[IMP] wiki: remove cancel button and improved view of wizard.
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Fri, 15 Jun 2012 10:31:43 +0000 (16:01 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Fri, 15 Jun 2012 10:31:43 +0000 (16:01 +0530)
bzr revid: tpa@tinyerp.com-20120615103143-ofki3uanzmsunat6

addons/wiki/wizard/wiki_create_menu_view.xml
addons/wiki/wizard/wiki_make_index_view.xml
addons/wiki/wizard/wiki_show_diff_view.xml
addons/wiki/wizard/wiki_wiki_page_open_view.xml

index fbdffb2..e491182 100644 (file)
@@ -9,15 +9,14 @@
             <field name="model">wiki.create.menu</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-              <form string="Create Menu">
-                     <separator string="Menu Information" colspan="4" />
+                <form string="Create Menu" version="7.0">
+                    <header>
+                        <button name="wiki_menu_create" string="Create Menu" type="object" class="oe_form_button_active_flow"/>
+                    </header>
+                    <separator string="Menu Information" colspan="4" />
                     <field name="menu_name" />
                     <field name="menu_parent_id" />
-                    <separator string="" colspan="4" />
-                    <label string="" colspan="2" />
-                    <button special="cancel" string="Cancel" />
-                    <button name="wiki_menu_create" string="Create Menu" type="object"/>
-             </form>
+                </form>
             </field>
         </record>
 
index 28b0d84..9013f1b 100644 (file)
@@ -9,16 +9,13 @@
             <field name="model">wiki.make.index</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-              <form string="Create Menu">
-                <separator string="Menu Information" colspan="4"/>
-                <label string="Want to create a Index on Selected Pages ? "/>
-                <separator string="" colspan="6" />
-                <label string="" colspan="2"/>
-                <group>
-                <button special="cancel" string="Cancel" icon="gtk-cancel" />
-                <button name="wiki_do_index" string="Create Index" type="object" icon="gtk-ok"/>
-                </group>
-            </form>
+                <form string="Create Menu" version="7.0">
+                    <header>
+                        <button name="wiki_do_index" string="Create Index" type="object" icon="gtk-ok" class="oe_form_button_active_flow"/>
+                    </header>
+                       <separator string="Menu Information" colspan="4"/>
+                       <label string="Want to create a Index on Selected Pages ? "/>
+                </form>
             </field>
         </record>
 
index 8cc3949..55e6905 100644 (file)
@@ -9,14 +9,10 @@
             <field name="model">wizard.wiki.history.show_diff</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-              <form string="Difference">
-                 <separator colspan="4" string="Notes"/>
-                  <field name="file_path" colspan="4" width="300"/>
-                <label string="" colspan="2" />
-                <group>
-                <button special="cancel" string="Close" icon="gtk-close" />
-                </group>
-            </form>
+                <form string="Difference">
+                    <separator colspan="4" string="Notes"/>
+                    <field name="file_path" colspan="4" width="300"/>
+                </form>
             </field>
         </record>
 
index a625d15..3127e24 100644 (file)
@@ -9,15 +9,12 @@
             <field name="model">wiki.wiki.page.open</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-              <form string="Open Page">
-                 <separator string="" colspan="6" />
-                  <label string="Want to open a wiki page? "/>
-                  <separator string="" colspan="6" />
-                <label string="" colspan="2" />
-                <group>
-                <button special="cancel" string="Cancel" icon="gtk-cancel" />
-                   <button name="open_wiki_page" string="Open Wiki Page" type="object" icon="gtk-ok"/>
-                   </group>
+                <form string="Open Page" version="7.0">
+                    <header>
+                        <button name="open_wiki_page" string="Open Wiki Page" type="object" icon="gtk-ok" class="oe_form_button_active_flow"/>
+                    </header>
+                    <separator string="" colspan="6" />
+                    <label string="Want to open a wiki page? "/>
              </form>
             </field>
         </record>