[fix] checkbox editor
This commit is contained in:
parent
82c9357b50
commit
d4fd3efef4
4 changed files with 24 additions and 12 deletions
|
|
@ -42,9 +42,11 @@ frappe.DomainsEditor = frappe.CheckboxEditor.extend({
|
|||
|
||||
get_template: function() {
|
||||
return `
|
||||
<div class="user-role" data-domain="{{item}}">
|
||||
<input type="checkbox" style="margin-top:0px;">
|
||||
{{__(item)}}
|
||||
<div class="checkbox" data-domain="{{item}}">
|
||||
<label>
|
||||
<input type="checkbox">
|
||||
<span class="label-area small">{{ __(item) }}</span>
|
||||
</label>
|
||||
</div>
|
||||
`;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -398,9 +398,9 @@ fieldset[disabled] .form-control {
|
|||
width: 100%;
|
||||
}
|
||||
.awesomplete > ul {
|
||||
z-index: 1041;
|
||||
z-index: 1041 !important;
|
||||
transition: none;
|
||||
background: #fff;
|
||||
background-color: #fff;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
|
|
|
|||
|
|
@ -49,9 +49,19 @@
|
|||
<div class="col-xs-2"><input type="checkbox" class="add-share-share" name="share"></div>
|
||||
</div>
|
||||
<p>
|
||||
<button class="btn btn-primary btn-add-share">{%= __("Add") %}</button>
|
||||
<button class="btn btn-primary btn-add-share">{{ __("Add") }}</button>
|
||||
</p>
|
||||
<input type="checkbox" class="add-share-notify" name="notify" checked> {%= __("Notify via email")%}
|
||||
|
||||
{% } %}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-6"></div>
|
||||
<div class="col-xs-6">
|
||||
<div class="checkbox">
|
||||
<label><span class="input-area">
|
||||
<input type="checkbox" class="add-share-notify"
|
||||
name="notify"></span>
|
||||
<span class="label-area small">{{ __("Notify by email") }}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
@ -195,9 +195,9 @@ textarea.form-control {
|
|||
width: 100%;
|
||||
|
||||
&> ul {
|
||||
z-index: 1041;
|
||||
z-index: 1041 !important;
|
||||
transition: none;
|
||||
background: #fff;
|
||||
background-color: #fff;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue