summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/website/static/src/xml/website.editor.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml156
1 files changed, 156 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
new file mode 100644
index 00000000..3ce515bd
--- /dev/null
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+ <div t-name="website.homepage_editor_welcome_message" class="container text-center o_homepage_editor_welcome_message">
+ <h2 class="mt0">Welcome to your <b>Homepage</b>!</h2>
+ <p class="lead d-none d-md-block">Click on <b>Edit</b> in the top right corner to start designing.</p>
+ </div>
+ <div t-name="website.leaving_current_page_edition">
+ <p>What do you want to do?</p>
+ <p class="text-muted">Your current changes will be saved automatically.</p>
+ </div>
+
+ <!-- Editor top bar which contains the summernote tools and save/discard buttons -->
+ <t t-name="website.editorbar">
+ <div class="o_we_website_top_actions">
+ <div class="o_we_external_history_buttons">
+ <button type="button" data-action="undo" class="btn btn-secondary fa fa-undo"/>
+ <button type="button" data-action="redo" class="btn btn-secondary fa fa-repeat"/>
+ </div>
+ <form class="ml-auto">
+ <button type="button" class="btn btn-secondary" data-action="cancel" accesskey="j">Discard</button>
+ <button type="button" class="btn btn-primary" data-action="save" accesskey="s">Save</button>
+ </form>
+ </div>
+ </t>
+ <!-- Custom checkbox (material-design-like toggle) -->
+ <t t-name="website.components.switch">
+ <label class="o_switch" t-att-for="id">
+ <input type="checkbox" t-att-id="id" t-att-checked="checked ? 'checked' : undefined"/>
+ <span/>
+ <div t-if="label"><t t-esc="label"/></div>
+ </label>
+ </t>
+
+ <t t-extend="wysiwyg.widgets.link">
+ <t t-jquery="#o_link_dialog_url_input" t-operation="after">
+ <small class="form-text text-muted">Hint: Type '/' to search an existing page and '#' to link to an anchor.</small>
+ </t>
+ <t t-jquery="div#o_url_input" t-operation="after">
+ <div class="form-group row o_link_dialog_page_anchor d-none">
+ <label class="col-form-label col-md-3" for="o_link_dialog_anchor_input">Page Anchor</label>
+ <div class="col-md-9">
+ <select name="link_anchor" class="form-control link-style"></select>
+ <small class="form-text font-weight-bold o_anchors_loading">Loading...</small>
+ </div>
+ </div>
+ </t>
+ </t>
+ <!-- Anchor Name option dialog -->
+ <div t-name="website.dialog.anchorName">
+ <div class="form-group row">
+ <label class="col-form-label col-md-3" for="anchorName">Choose an anchor name</label>
+ <div class="col-md-9">
+ <input type="text" class="form-control o_input_anchor_name" id="anchorName" t-attf-value="#{currentAnchor}" placeholder="Anchor name"/>
+ <div class="invalid-feedback">
+ <p class="d-none o_anchor_already_exists">The chosen name already exists</p>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Add a Google Font option dialog -->
+ <div t-name="website.dialog.addGoogleFont">
+ <div class="form-group row">
+ <label class="col-form-label col-md-3" for="google_font_html">Google Font address</label>
+ <div class="col-md-9">
+ <textarea id="google_font_html" class="form-control o_input_google_font"
+ placeholder="https://fonts.google.com/specimen/Roboto" style="height: 100px;"/>
+ <span class="float-right text-muted">
+ Select one font on <a target="_blank" href="https://fonts.google.com">fonts.google.com</a> and copy paste the address of the font page here.
+ </span>
+ </div>
+ </div>
+ <p>Adding a font requires a reload of the page. This will save all your changes.</p>
+ </div>
+ <t t-name="website.delete_google_font_btn">
+ <t t-set="delete_font_title">Delete this font</t>
+ <i role="button"
+ class="text-danger ml-2 fa fa-trash-o o_we_delete_google_font_btn"
+ t-att-aria-label="delete_font_title"
+ t-att-title="delete_font_title"
+ t-att-data-font-index="index"/>
+ </t>
+ <t t-name="website.add_google_font_btn">
+ <we-button href="#" class="o_we_add_google_font_btn"
+ t-att-data-variable="variable">
+ Add a Google Font
+ </we-button>
+ </t>
+
+ <t t-name="website.color_combination_edition">
+ <we-colorpicker string="Background" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-bg"/>
+ <we-colorpicker string="Text" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-text"/>
+ <we-collapse>
+ <we-colorpicker string="Headings" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-headings"/>
+ <we-colorpicker string="Headings 2" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-h2"/>
+ <we-colorpicker string="Headings 3" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-h3"/>
+ <we-colorpicker string="Headings 4" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-h4"/>
+ <we-colorpicker string="Headings 5" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-h5"/>
+ <we-colorpicker string="Headings 6" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-h6"/>
+ </we-collapse>
+ <we-colorpicker string="Links" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-link"/>
+ <we-row string="Primary Buttons">
+ <we-colorpicker title="Background" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-btn-primary"/>
+ <we-colorpicker title="Border" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-btn-primary-border"/>
+ </we-row>
+ <we-row string="Secondary Buttons">
+ <we-colorpicker title="Background" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-btn-secondary"/>
+ <we-colorpicker title="Border" data-customize-website-color="null" t-attf-data-color="o-cc#{number}-btn-secondary-border"/>
+ </we-row>
+ </t>
+ <div t-name="website.s_google_map_modal">
+ <p>Use Google Map on your website (Contact Us page, snippets, etc).</p>
+ <div class="form-group row mb-0">
+ <label class="col-sm-2 col-form-label" for="pin_address">API Key</label>
+ <div class="col">
+ <div class="input-group">
+ <div class="input-group-prepend">
+ <div class="input-group-text"><i class="fa fa-key"/></div>
+ </div>
+ <input type="text" class="form-control" id="api_key_input"
+ t-att-value="apiKey or ''"
+ placeholder="BSgzTvR5L1GB9jriT451iTN4huVPxHmltG6T6eo"/>
+ </div>
+ <small id="api_key_help" class="text-danger">
+ </small>
+ <div class="small form-text text-muted">
+ Hint: How to use Google Map on your website (Contact Us page and as a snippet)
+ <br/>
+ <a target="_blank" href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,static_maps_backend&amp;keyType=CLIENT_SIDE&amp;reusekey=true">
+ <i class="fa fa-arrow-right"/>
+ Create a Google Project and Get a Key
+ </a>
+ <br/>
+ <a target="_blank" href="https://cloud.google.com/maps-platform/pricing">
+ <i class="fa fa-arrow-right"/>
+ Enable billing on your Google Project
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Theme - custom code -->
+ <div t-name="website.custom_code_dialog_content">
+ <div class="mb-2" t-esc="contentText"/>
+ <div class="o_ace_editor_container"/>
+ </div>
+
+ <t t-name="website.new_content_loader">
+ <div class="o_new_content_loader_container position-fixed fixed-top fixed-left
+ h-100 w-100 d-flex flex-column align-items-center text-white font-weight-bold">
+ <p id="new_content_loader_text"/>
+ <div class="o_new_content_loader"/>
+ </div>
+ </t>
+</templates>