From f6cb4bbe2481d61b9069aa034e8c64007da36ada Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Tue, 4 Oct 2016 16:52:16 +0300 Subject: [PATCH] Migrate type dialogs to bootstrap --- frontend/app/app.css | 9 +- frontend/app/fieldTypes/fieldTypes.js | 8 +- frontend/app/map/lines/edit-line.html | 2 +- frontend/app/map/markers/edit-marker.html | 2 +- .../app/map/types/edit-type-dropdown.html | 81 ++++---- frontend/app/map/types/edit-type.html | 116 +++++++----- frontend/app/map/types/edit-types.html | 24 ++- frontend/app/map/types/types.js | 174 +++++++++++------- frontend/app/map/views/manage-views.html | 2 +- 9 files changed, 252 insertions(+), 166 deletions(-) diff --git a/frontend/app/app.css b/frontend/app/app.css index b129eb3f..61035fc2 100644 --- a/frontend/app/app.css +++ b/frontend/app/app.css @@ -145,8 +145,8 @@ dl:after { content: " "; } -label.disabled { - color: #888; +.checkbox.disabled label { + color: #aaa; } tr.selected td { @@ -188,6 +188,11 @@ table.border input, table.border textarea, table.border select { box-sizing: border-box; } +.td-buttons { + white-space: nowrap; + width: 1px; +} + .messages { position: absolute; top: 10px; diff --git a/frontend/app/fieldTypes/fieldTypes.js b/frontend/app/fieldTypes/fieldTypes.js index 211558b1..f3036acb 100644 --- a/frontend/app/fieldTypes/fieldTypes.js +++ b/frontend/app/fieldTypes/fieldTypes.js @@ -13,10 +13,10 @@ var el; switch(field.type) { case "textarea": - el = $('