diff options
| author | Romain Derie <rde@odoo.com> | 2019-01-03 12:54:10 +0000 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2019-01-07 10:00:04 +0000 |
| commit | 4c8eeb7f585cd471071dce0d47aa486bc6f668eb (patch) | |
| tree | 651a372bb7dba214df489b908ee01d9a9c8cde10 /addons/website_gengo/static/src/xml/website.gengo.xml | |
| parent | c37a79925b31cc0582551a0295a54dc29257a9cd (diff) | |
[FIX] website_*: set correct order on modal footer button
Modal primary button should be the one in the corner (left if buttons aligned
left, right if buttons aligned right) as in the Bootstrap doc.
More than a simple guideline, the user will intuitively click on the button in
the corner as it is supposed to be the primary one.
Plus some DOM fixes (o_technical_modal was missing, H2 was too big especially
since BS4)
Closes #29890
task-1922120
Diffstat (limited to 'addons/website_gengo/static/src/xml/website.gengo.xml')
| -rw-r--r-- | addons/website_gengo/static/src/xml/website.gengo.xml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/addons/website_gengo/static/src/xml/website.gengo.xml b/addons/website_gengo/static/src/xml/website.gengo.xml index 4d43d5398f6..305c61e6888 100644 --- a/addons/website_gengo/static/src/xml/website.gengo.xml +++ b/addons/website_gengo/static/src/xml/website.gengo.xml @@ -11,7 +11,7 @@ <div class="modal-dialog"> <div class="modal-content"> <header class="modal-header"> - <h2 class="modal-title">Translate this page</h2> + <h4 class="modal-title">Translate this page</h4> <button title="Close" aria-label="Close" type="button" class="close" data-dismiss="modal">×</button> </header> <main class="modal-body"> @@ -54,11 +54,11 @@ </t> <t t-name="website.GengoTranslatorPostDialog"> - <div role="dialog" class="modal fade" tabindex="-1"> + <div role="dialog" class="modal o_technical_modal fade" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <header class="modal-header"> - <h2 class="modal-title">Select Gengo Translation Service Level</h2> + <h4 class="modal-title">Select Gengo Translation Service Level</h4> <button title="Close" aria-label="Close" type="button" class="close" data-dismiss="modal">×</button> </header> <main class="modal-body"> @@ -81,17 +81,17 @@ </t> <t t-name="website.GengoTranslatorStatisticDialog"> - <div role="dialog" class="modal fade" tabindex="-1"> + <div role="dialog" class="modal o_technical_modal fade" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <header class="modal-header"> - <h2 class="modal-title">Translator statistics for this page</h2> + <h5 class="modal-title">Translator statistics for this page</h5> <button title="Close" aria-label="Close" type="button" class="close" data-dismiss="modal">×</button> </header> <main class="modal-body"> <b> <div class="text-muted mb16"> <i class="fa fa-search-plus"></i> <t t-esc="widget.new_words"></t> new words found on this page.</div> - <h4><i class="fa fa-tachometer"></i> Gengo Statistics <a href="https://gengo.com/c/dashboard" class="float-right" target="new">Gengo Dashboard</a></h4> + <h5><i class="fa fa-tachometer"></i> Gengo Statistics <a href="https://gengo.com/c/dashboard" class="float-right" target="new">Gengo Dashboard</a></h5> <hr class="mt8"/> <div class="text-info mb8"> <i class="fa fa-align-left"></i> Words posted for translate <t t-esc="widget.total"></t></div> <div class="text-warning mb8"> <i class="fa fa-cogs"></i> Words in progress <t t-esc="widget.inprogess"></t></div> @@ -99,22 +99,22 @@ </b> </main> <footer class="modal-footer"> - <a data-action="discard" data-dismiss="modal" href="#">Close</a> + <button type="button" class="btn btn-primary" data-action="discard" data-dismiss="modal">Close</button> </footer> </div> </div> </div> </t> <t t-name="website.GengoApiConfigDialog"> - <div role="dialog" class="modal fade" tabindex="-1"> + <div role="dialog" class="modal o_technical_modal fade" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <header class="modal-header"> - <h2 class="modal-title">Gengo API is not configured</h2> + <h4 class="modal-title">Gengo API is not configured</h4> <button title="Close" aria-label="Close" type="button" class="close" data-dismiss="modal">×</button> </header> <main class="modal-body"> - <b> <h3>Steps for configure Gengo </h3> + <b> <h4>Steps for configure Gengo </h4> <div class="mb16"> 1. Go To your <b><a target="new" href="https://gengo.com/account/api_settings/">Gengo account</a></b> and generate API Keys.</div> <div class="mb16"> 2. Then paste generated keys in given form</div> <ul class="list-group"> |
