summaryrefslogtreecommitdiff
path: root/addons/website_twitter/views/res_config_settings_views.xml
blob: d3e51201cf14358d37f8be390303c57d4d060563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.website.twitter</field>
        <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="google_maps_setting" position="after">
                <div class="col-12 col-lg-6 o_setting_box" id="twitter_roller_install_setting">
                    <div class="o_setting_right_pane">
                        <span class="o_form_label">Twitter Roller</span>
                        <span class="fa fa-lg fa-globe" title="Values set here are website-specific." groups="website.group_multi_website"/>
                        <div class="text-muted">
                            Twitter API Credentials
                        </div>
                        <div class="content-group">
                            <div class="row mt16">
                                <label class="col-lg-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-lg-3 o_light_label" string="API secret" for="twitter_api_secret"/>
                                <field name="twitter_api_secret" class="oe_inline"/>
                            </div>
                            <a data-toggle="collapse" href="#" data-target="#twitter_tutorial" aria-label="Twitter tutorial">
                                <i class="fa fa-arrow-right"/>
                                Show me how to obtain the Twitter API key and Twitter API secret
                            </a>
                            <div class="row mt16 collapse" id="twitter_tutorial">
                                <blockquote class="small">
                                    <h2>How to configure the Twitter API access</h2>
                                    <ol>
                                        <li>Create a new Twitter application on <a href="https://apps.twitter.com/app/new" target="new">https://apps.twitter.com/app/new</a>
                                              with the following values:
                                            <ul>
                                                <li><strong>Name: </strong> Odoo Twitter Integration</li>
                                                <li><strong>Description: </strong> Odoo Twitter Integration </li>
                                                <li><strong>Website: </strong>
                                                <b><field name="twitter_server_uri" /></b></li>
                                                <li><strong>Callback URL: </strong>Leave blank</li>
                                                <li>Accept terms of use and click on the Create your Twitter application button at the bottom</li>
                                            </ul>
                                        </li>
                                        <li>Switch to the API Keys tab: <br/>
                                            <img src='/website_twitter/static/src/img/api_key.png' alt="API Key"/>
                                        </li><br/>
                                        <li>Copy/Paste Consumer Key (API Key) and Consumer Secret (API Secret) keys below.</li>
                                    </ol>
                                </blockquote>
                            </div>
                            <div class="row">
                                <label class="col-lg-3 o_light_label" string="Favorites From" for="twitter_screen_name"/>
                                <field name="twitter_screen_name" class="oe_inline"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </field>
    </record>
</odoo>