diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-05-22 15:30:36 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-27 12:36:54 +0200 |
| commit | 93b0001df6766fe905ee69c25ec8d846e4551064 (patch) | |
| tree | 3f88048d24818b6e8871ad6f00308d15f6105f73 /addons/website_slides/static/src/xml/website_slides.xml | |
| parent | 7822bab880809d7e88c4ce5b45761c97c3244388 (diff) | |
[REF] *: BS4, adapt forms
The 'form-horizontal' class have been removed; the '.form-group'
elements must now use the 'row' class for an horizontal layout.
The 'control-label' class was renamed to 'col-form-label'.
The 'help-block' class was renamed to 'form-text'.
The 'has-error' and 'has-success' classes have been removed and
replaced by a new system using the :valid and :invalid pseudo-classes,
when a parent has the 'was-validated' class. While this system is great,
it is not straightforward to use it in Odoo. Fortunately, BS4 provides
the 'is-valid' and 'is-invalid' classes as fallback. This commit
replaces the 'has-error' and 'has-success' classes by 'o_has_error' and
'o_has_success' classes (for JS compatibility) and use the 'is-*'
fallback classes. (The 'has-warning' class has no equivalent but was
unused in Odoo anyway).
Diffstat (limited to 'addons/website_slides/static/src/xml/website_slides.xml')
| -rw-r--r-- | addons/website_slides/static/src/xml/website_slides.xml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides.xml b/addons/website_slides/static/src/xml/website_slides.xml index d8e31a0ae41..58618f2f48a 100644 --- a/addons/website_slides/static/src/xml/website_slides.xml +++ b/addons/website_slides/static/src/xml/website_slides.xml @@ -12,8 +12,8 @@ <h4><i class='fa fa-spinner fa-spin'></i> Uploading presentation... </h4> </div> <main class="modal-body"> - <form class="clearfix form-horizontal"> - <div class="form-group"> + <form class="clearfix"> + <div class="form-group row"> <div class="col-md-4"> <div class="img-thumbnail"> <div class="o_slide_preview"> @@ -25,39 +25,39 @@ <ul class="list-group"> <li class="list-group-item active"> <h5 class="list-group-item-heading"> - <label for="upload" class="control-label">PDF or Image File</label> + <label for="upload" class="col-form-label">PDF or Image File</label> </h5> <input id="upload" name="file" class="form-control" accept="image/*,application/pdf" type="file"/> </li> <li class="list-group-item"> <h5 class="list-group-item-heading"> - <label for="url" class="control-label">Youtube or Google Doc URL</label> + <label for="url" class="col-form-label">Youtube or Google Doc URL</label> </h5> <input id="url" name="url" class="form-control" placeholder="Youtube Video URL"/> </li> </ul> </div> </div> - <div class="form-group"> - <label for="name" class="control-label col-md-2">Title</label> + <div class="form-group row"> + <label for="name" class="col-form-label col-md-2">Title</label> <div class="col-md-10"> <input id="name" placeholder="Title" class="form-control" required="required"/> </div> </div> - <div class="form-group"> - <label for="tag_ids" class="control-label col-md-2">Tags</label> + <div class="form-group row"> + <label for="tag_ids" class="col-form-label col-md-2">Tags</label> <div class="controls col-md-10"> <input id="tag_ids" type="hidden"/> </div> </div> - <div class="form-group"> - <label for="category_id" class="control-label col-md-2">Category</label> + <div class="form-group row"> + <label for="category_id" class="col-form-label col-md-2">Category</label> <div class="controls col-md-10"> <input id="category_id" type="hidden"/> </div> </div> - <div class="form-group"> - <label for="description" class="control-label col-md-2">Description</label> + <div class="form-group row"> + <label for="description" class="col-form-label col-md-2">Description</label> <div class="controls col-md-10"> <textarea id="description" rows="4" placeholder="Description" class="form-control"></textarea> </div> |
