[IMP] website_slides: revamp "New Course" menu
Purpose of this commit is to change the modal to make it more mobile friendly. Notably remove the two columns. Task 2049640 (website slides back2basics and fiximp)
This commit is contained in:
committed by
Thibault Delavallée
parent
37bf69dd9d
commit
e53c398789
@@ -6,47 +6,37 @@
|
||||
<div>
|
||||
<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-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 class="form-group">
|
||||
<label for="title" class="col-form-label">Title</label>
|
||||
<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 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 class="form-group">
|
||||
<label for="tag_ids" class="col-form-label">Tags</label>
|
||||
<input type="text" class="form-control" name="tag_ids" id="tag_ids" placeholder="Tags"/>
|
||||
</div>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<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"/>
|
||||
<span class="form-check-label" for="channel_type1">
|
||||
Training (with progress)
|
||||
</span>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="channel_type" id="channel_type2" value="documentation"/>
|
||||
<span class="form-check-label" for="channel_type2">
|
||||
Documentation
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<label for="channel_type">Type</label>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="channel_type" id="channel_type1" value="training" checked="checked"/>
|
||||
<span class="form-check-label" for="channel_type1">
|
||||
Training (with progress)
|
||||
</span>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="channel_type" id="channel_type2" value="documentation"/>
|
||||
<span class="form-check-label" for="channel_type2">
|
||||
Documentation
|
||||
</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="form-group row">
|
||||
<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 class="form-group">
|
||||
<label for="title">Description</label>
|
||||
<textarea name="description" id="description" style="height:8em" class="form-control" placeholder="Write here a short description of your first course"/>
|
||||
</div>
|
||||
<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-group">
|
||||
<label id="communication-label">Review</label>
|
||||
<div class="o_wslide_channel_communication_type">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="allow_comment" name="allow_comment"/>
|
||||
<span class="form-check-label" for="allow_comment">Allow review on Course</span>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<templates xml:space="preserve">
|
||||
<t t-extend="website.slide.channel.create">
|
||||
<t t-jquery="#communication-label" t-operation="replace">
|
||||
<label id="communication-label" class="col-sm-3">Communication</label>
|
||||
<label id="communication-label">Communication</label>
|
||||
</t>
|
||||
<t t-jquery=".o_wslide_channel_communication_type" t-operation="append">
|
||||
<div class="form-check">
|
||||
|
||||
Reference in New Issue
Block a user