From 01632f33ad0566aeb68847da778dafbb3e0ecca3 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Tue, 7 Feb 2017 18:03:55 +0000
Subject: [PATCH] slapos_web: Minor changes

---
 .../WebSection_viewHelpRender/listbox.xml     | 14 +-----
 .../my_subsection_title.xml                   | 50 +++++++++++++++++--
 2 files changed, 47 insertions(+), 17 deletions(-)

diff --git a/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHelpRender/listbox.xml b/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHelpRender/listbox.xml
index 5fc453caa..bd38fcc1f 100644
--- a/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHelpRender/listbox.xml
+++ b/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewHelpRender/listbox.xml
@@ -11,7 +11,6 @@
             <value>
               <list>
                 <string>columns</string>
-                <string>editable_columns</string>
                 <string>list_method</string>
                 <string>portal_types</string>
                 <string>search</string>
@@ -110,17 +109,6 @@
                       </list>
                     </value>
                 </item>
-                <item>
-                    <key> <string>editable_columns</string> </key>
-                    <value>
-                      <list>
-                        <tuple>
-                          <string>monitoring_status</string>
-                          <string>Status</string>
-                        </tuple>
-                      </list>
-                    </value>
-                </item>
                 <item>
                     <key> <string>field_id</string> </key>
                     <value> <string>my_list_mode_listbox</string> </value>
@@ -151,7 +139,7 @@
                 </item>
                 <item>
                     <key> <string>selection_name</string> </key>
-                    <value> <string>my_ticket_selection</string> </value>
+                    <value> <string>my_web_ticket_selection</string> </value>
                 </item>
                 <item>
                     <key> <string>target</string> </key>
diff --git a/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_web/Base_viewWebFieldLibrary/my_subsection_title.xml b/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_web/Base_viewWebFieldLibrary/my_subsection_title.xml
index 08a50ffb8..846bb8eae 100644
--- a/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_web/Base_viewWebFieldLibrary/my_subsection_title.xml
+++ b/master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_web/Base_viewWebFieldLibrary/my_subsection_title.xml
@@ -56,11 +56,21 @@
             <value>
               <dictionary>
                 <item>
-                    <key> <string>default</string> </key>
+                    <key> <string>css_class</string> </key>
                     <value>
                       <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
                     </value>
                 </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
                 <item>
                     <key> <string>field_id</string> </key>
                     <value> <string></string> </value>
@@ -73,6 +83,12 @@
                     <key> <string>target</string> </key>
                     <value> <string></string> </value>
                 </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
+                    </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -82,7 +98,7 @@
               <dictionary>
                 <item>
                     <key> <string>css_class</string> </key>
-                    <value> <string>nolabel</string> </value>
+                    <value> <string>nolabel sectionTitle</string> </value>
                 </item>
                 <item>
                     <key> <string>default</string> </key>
@@ -106,7 +122,7 @@
                 </item>
                 <item>
                     <key> <string>title</string> </key>
-                    <value> <string>Subsection Title</string> </value>
+                    <value> <string>Section Title</string> </value>
                 </item>
               </dictionary>
             </value>
@@ -115,6 +131,19 @@
     </pickle>
   </record>
   <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python:"nolabel sectionTitle %s" % here.getWebSectionValue().getId()</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
     <pickle>
       <global name="TALESMethod" module="Products.Formulator.TALESField"/>
     </pickle>
@@ -124,11 +153,24 @@
             <key> <string>_text</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-python: "<h2>%s</h2>" % context.Base_translateString(field.get_value("title"))
+python:"<h1>%s</h1>" % (context.getTranslatedTitle())
 
 ]]></string> </value>
         </item>
       </dictionary>
     </pickle>
   </record>
+  <record id="4" aka="AAAAAAAAAAQ=">
+    <pickle>
+      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>here/title</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
 </ZopeData>
-- 
2.30.9