summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src/xml
diff options
context:
space:
mode:
authorqmo-odoo <qmo@odoo.com>2019-05-02 13:55:55 +0000
committerqmo-odoo <qmo@odoo.com>2019-05-13 12:03:03 +0000
commitbb36977c364e8e4bcd65f57949705a7590554ac9 (patch)
treec7f3181de5005b8ea9eebe29f26471a525306acb /addons/website_slides/static/src/xml
parentc07dc6e022ac38d54356899e438038119c7dfae1 (diff)
[IMP] website_slides: Improve new course modal
This commit changes the presentation of the "Create new course" modal so that it is closer to what we have in backend task id: 1978734 closes: #33119 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides/static/src/xml')
-rw-r--r--addons/website_slides/static/src/xml/website_slides_channel.xml43
1 files changed, 22 insertions, 21 deletions
diff --git a/addons/website_slides/static/src/xml/website_slides_channel.xml b/addons/website_slides/static/src/xml/website_slides_channel.xml
index 0147f56eac5..a4528b62083 100644
--- a/addons/website_slides/static/src/xml/website_slides_channel.xml
+++ b/addons/website_slides/static/src/xml/website_slides_channel.xml
@@ -7,51 +7,52 @@
<form action="/slides/channel/add" method="POST" id="slide_channel_add_form">
<input type="hidden" name="csrf_token" t-att-value="csrf_token"/>
<div class="form-group row">
- <label for="title" class="col-sm-2 col-form-label">Title</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="name" id="title" placeholder="Title"/>
+ <label for="title" class="col-sm-3 col-form-label">Title</label>
+ <div class="col-sm-9">
+ <input type="text" class="form-control" name="name" id="title" placeholder="Course Title" required="1"/>
+ <p id="title-required" class="text-danger mt-1 mb-0 d-none">Please fill in this field</p>
+ </div>
+ </div>
+ <div class="form-group row">
+ <label for="tag_ids" class="col-sm-3 col-form-label">Tags</label>
+ <div class="col-sm-9">
+ <input type="text" class="form-control" name="tag_ids" id="tag_ids" placeholder="Tags"/>
</div>
</div>
<fieldset class="form-group">
<div class="row">
- <legend class="col-form-label col-sm-2">Type</legend>
- <div class="col-sm-10">
+ <label for="channel_type" class="col-sm-3">Type</label>
+ <div class="col-sm-9">
<div class="form-check">
<input class="form-check-input" type="radio" name="channel_type" id="channel_type1" value="training" checked="checked"/>
- <label class="form-check-label" for="channel_type1">
+ <span class="form-check-label" for="channel_type1">
Training (with progress)
- </label>
+ </span>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="channel_type" id="channel_type2" value="documentation"/>
- <label class="form-check-label" for="channel_type2">
+ <span class="form-check-label" for="channel_type2">
Documentation
- </label>
+ </span>
</div>
</div>
</div>
</fieldset>
<div class="form-group row">
- <label for="title" class="col-sm-2 col-form-label">Description</label>
- <div class="col-sm-10">
+ <label for="title" class="col-sm-3">Description</label>
+ <div class="col-sm-9">
<textarea name="description" id="description" style="height:8em" class="form-control" placeholder="Write here a short description of your first course"/>
</div>
</div>
- <div class="form-group row o_wslide_channel_communication_type">
- <div class="col-sm-2">Review</div>
- <div class="col-sm-10">
+ <div class="form-group row">
+ <label id="communication-label" class="col-sm-3">Review</label>
+ <div class="col-sm-9 o_wslide_channel_communication_type">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="allow_comment" name="allow_comment"/>
- <label class="form-check-label" for="allow_comment">Allow review on content</label>
+ <span class="form-check-label" for="allow_comment">Allow review on Course</span>
</div>
</div>
</div>
- <div class="form-group row">
- <label for="title" class="col-sm-2 col-form-label">Tags</label>
- <div class="col-sm-10">
- <input type="text" class="form-control" name="tag_ids" id="tag_ids" placeholder="Tags"/>
- </div>
- </div>
</form>
</div>
</t>