Replace 'Add' buttons with '+'

This commit is contained in:
Akshay Joshi
2016-07-26 12:54:59 +01:00
committed by Dave Page
parent 19306934a0
commit e803464ee0
7 changed files with 12 additions and 16 deletions

View File

@@ -521,7 +521,7 @@ fieldset[disabled] .form-control {
float: right;
margin-right: 3px;
margin-bottom: 3px;
margin-top: 3px;
margin-top: 5px;
}
.subnode {

View File

@@ -948,7 +948,7 @@
canDelete: evalF.apply(this.field, [data.canDelete, data, this.model]),
canEdit: evalF.apply(this.field, [data.canEdit, data, this.model])
});
_.extend(data, {add_label: "Add"});
_.extend(data, {add_label: ""});
// This control is not visible, we should remove it.
if (!data.visible) {
@@ -971,7 +971,7 @@
gridHeader = _.template([
'<div class="subnode-header">',
' <label class="control-label pg-el-sm-10"><%-label%></label>',
' <button class="btn-sm btn-default add" <%=canAdd ? "" : "disabled=\'disabled\'"%>><%-add_label%></buttton>',
' <button class="btn-sm btn-default add fa fa-plus" <%=canAdd ? "" : "disabled=\'disabled\'"%>><%-add_label%></buttton>',
'</div>'].join("\n")),
gridBody = $('<div class="pgadmin-control-group backgrid form-group pg-el-xs-12 object subnode"></div>').append(
gridHeader(data)
@@ -1209,7 +1209,7 @@
var self = this,
gridHeader = ["<div class='subnode-header'>",
" <label class='control-label pg-el-sm-10'>" + data.label + "</label>" ,
" <button class='btn-sm btn-default add'>Add</buttton>",
" <button class='btn-sm btn-default add fa fa-plus'></buttton>",
"</div>"].join("\n");
gridBody = $("<div class='pgadmin-control-group backgrid form-group pg-el-xs-12 object subnode'></div>").append(gridHeader);