diff options
| author | Mahendra barad <mba@openerp.com> | 2017-05-23 16:59:40 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-09-06 15:21:25 +0200 |
| commit | e38e2515882dacc73ab7d87fa76da3c5a395c6a6 (patch) | |
| tree | a6660f6737604f71fb3c1938cbd321e09614d91d /addons/website_twitter/views | |
| parent | c0ceae2f93df5d08e5c4a99812dd5629f2d433bf (diff) | |
[IMP] website: Clean and simplify res_config view
Purpose
=======
- Settings are too complex: too long + too many options that shouldn't be suggested with checkboxes
e.g. twitter roller is now suggested as a new snippet to install from website editor
google maps, slides, forum, etc. should show up in the apps store
- When saving the page I expect to stay in the settings -> no redirection to homepage anymore!
Specification
=============
See task 33620
Diffstat (limited to 'addons/website_twitter/views')
| -rw-r--r-- | addons/website_twitter/views/res_config_settings_views.xml | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/addons/website_twitter/views/res_config_settings_views.xml b/addons/website_twitter/views/res_config_settings_views.xml index 5d195470256..dec01e34420 100644 --- a/addons/website_twitter/views/res_config_settings_views.xml +++ b/addons/website_twitter/views/res_config_settings_views.xml @@ -5,25 +5,31 @@ <field name="model">res.config.settings</field> <field name="inherit_id" ref="website.res_config_settings_view_form"/> <field name="arch" type="xml"> - <div id="msg_twitter_roller_install_setting" position="replace"> - <div class="content-group" attrs="{'invisible': [('module_website_twitter', '=', False)]}"> - <div class="mt16"> - <div class="row"> - <label class="col-md-3 o_light_label" string="API Key" for="twitter_api_key"/> - <field name="twitter_api_key" class="oe_inline"/> + <div id="languages_setting" position="after"> + <div class="col-xs-12 col-md-6 o_setting_box" id="twitter_roller_install_setting"> + <div class="o_setting_right_pane"> + <label string="Twitter Roller"/> + <div class="text-muted"> + Twitter API Credentials </div> - <div class="row"> - <label class="col-md-3 o_light_label" string="API secret" for="twitter_api_secret"/> - <field name="twitter_api_secret" class="oe_inline"/> - </div> - <div class="row"> - <label class="col-md-3 o_light_label" string="Favorites From" for="twitter_screen_name"/> - <field name="twitter_screen_name" class="oe_inline"/> - </div> - <div> - <a class="oe_link" href="https://www.odoo.com/documentation/user/11.0/discuss/mail_twitter.html" target="_blank"> - <i class="fa fa-arrow-right"/> Tutorial - </a> + <div class="content-group"> + <div class="row mt16"> + <label class="col-md-3 o_light_label" string="API Key" for="twitter_api_key"/> + <field name="twitter_api_key" class="oe_inline"/> + </div> + <div class="row"> + <label class="col-md-3 o_light_label" string="API secret" for="twitter_api_secret"/> + <field name="twitter_api_secret" class="oe_inline"/> + </div> + <div class="row"> + <label class="col-md-3 o_light_label" string="Favorites From" for="twitter_screen_name"/> + <field name="twitter_screen_name" class="oe_inline"/> + </div> + <div> + <a data-toggle="modal" class="oe_link fa fa-arrow-right" href="#" data-target="#twitter_tutorial"> + Tutorial + </a> + </div> </div> </div> </div> |
