[IMP] Removing Add Columns Widget: duplicate is better as there are lots of different...
authorFabien Pinckaers <fp@tinyerp.com>
Sun, 26 Jan 2014 13:32:56 +0000 (14:32 +0100)
committerFabien Pinckaers <fp@tinyerp.com>
Sun, 26 Jan 2014 13:32:56 +0000 (14:32 +0100)
bzr revid: fp@tinyerp.com-20140126133256-eab0jfyzn2zbeuja

addons/website/views/snippets.xml
addons/website_blog/models/website_blog.py

index 7b80c7c..6802d3d 100644 (file)
         </div>
     </div>
 
-    <div data-snippet-id='colmd' data-selector-vertical-children='.row'>
-        <div class="oe_snippet_thumbnail">
-            <img class="oe_snippet_thumbnail_img" src="/website/static/src/img/blocks/block_column.png"/>
-            <span class="oe_snippet_thumbnail_title">Add Column</span>            
-        </div>
-        <div class="oe_snippet_body col-md-4">
-            <img class="img img-rounded img-responsive" src="/website/static/src/img/china_thumb.jpg"/>
-            <h4 class="mt16">Feature</h4>
-            <p>
-                Delete the above image or replace it with a picture
-                that illustrates your message. Click on the picture to
-                change it's <em>rounded corner</em> style.
-            </p>
-        </div>
-    </div>
-
 </div>
 
 <div id="snippet_feature" class="tab-pane fade">
index f11069f..ebd81f0 100644 (file)
@@ -91,7 +91,9 @@ class BlogPost(osv.Model):
         return res
 
     _columns = {
-        'name': fields.char('Title', required=True),
+        'name': fields.char('Title', required=True, translate=True),
+        'subtitle': fields.char('Subtitle', translate=True),
+        'content_image': fields.binary('Background Image'),
         'blog_id': fields.many2one(
             'blog.blog', 'Blog',
             required=True, ondelete='cascade',
@@ -99,7 +101,7 @@ class BlogPost(osv.Model):
         'tag_ids': fields.many2many(
             'blog.tag', string='Tags',
         ),
-        'content': fields.html('Content'),
+        'content': fields.html('Content', translate=True),
         'shortened_content': fields.function(
             get_shortened_content,
             type='html',