Elastic: Small form fixes

pull/5735/merge
Aleksander Machniak 7 years ago
parent 2584ed8bd7
commit 3f985c35d1

@ -4859,9 +4859,9 @@ function rcube_webmail()
// show dialog to enter a name and to modify the text to be saved // show dialog to enter a name and to modify the text to be saved
var buttons = {}, text = this.editor.get_content({selection: true, format: 'text', nosig: true}), var buttons = {}, text = this.editor.get_content({selection: true, format: 'text', nosig: true}),
html = '<form class="propform">' + html = '<form class="propform">' +
'<div class="prop block"><label>' + this.get_label('responsename') + '</label>' + '<div class="prop block"><label for="ffresponsename">' + this.get_label('responsename') + '</label>' +
'<input type="text" name="name" id="ffresponsename" size="40" /></div>' + '<input type="text" name="name" id="ffresponsename" size="40" /></div>' +
'<div class="prop block"><label>' + this.get_label('responsetext') + '</label>' + '<div class="prop block"><label for="ffresponsetext">' + this.get_label('responsetext') + '</label>' +
'<textarea name="text" id="ffresponsetext" cols="40" rows="8"></textarea></div>' + '<textarea name="text" id="ffresponsetext" cols="40" rows="8"></textarea></div>' +
'</form>'; '</form>';

@ -276,7 +276,7 @@ input.smart-upload {
} }
} }
.form-group.row { :not(tr).form-group.row {
.col-form-label { .col-form-label {
width: 33%; width: 33%;
} }

@ -787,7 +787,7 @@ function rcube_elastic_ui()
// Other forms, e.g. Insert response // Other forms, e.g. Insert response
$('.propform > .prop.block:not(.row)', context).each(function() { $('.propform > .prop.block:not(.row)', context).each(function() {
$(this).addClass('form-group row').each(function() { $(this).addClass('form-group row').each(function() {
$('label', this).addClass('col-form-label').wrap($('<div class="col-sm-4 col-form-label">')); $('label', this).addClass('col-form-label').wrap($('<div class="col-sm-4">'));
$('input,select,textarea', this).wrap($('<div class="col-sm-8">')); $('input,select,textarea', this).wrap($('<div class="col-sm-8">'));
$(supported_controls, this).addClass('form-control'); $(supported_controls, this).addClass('form-control');
}); });

Loading…
Cancel
Save