add styling to locked table

This commit is contained in:
Stephen Birarda 2014-10-17 11:33:29 -07:00
parent 796b519fe0
commit 0d99beb344
2 changed files with 7 additions and 2 deletions

View file

@ -53,7 +53,12 @@ span.port {
}
.locked {
color: blue;
color: #428bca;
}
.locked-table {
cursor: not-allowed;
background-color: #eee;
}
.advanced-setting {

View file

@ -263,7 +263,7 @@ function makeTable(setting, setting_name, setting_value, isLocked) {
}
var html = "<span class='help-block'>" + setting.help + "</span>"
html += "<table class='table table-bordered' data-short-name='" + setting.name + "' name='" + setting_name
html += "<table class='table table-bordered " + (isLocked ? "locked-table" : "") + "' data-short-name='" + setting.name + "' name='" + setting_name
+ "' data-setting-type='" + (isArray ? 'array' : 'hash') + "'>"
// Column names