Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C74BDE00B70; Tue, 24 May 2016 04:52:20 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B1EE5E00B2F for ; Tue, 24 May 2016 04:52:18 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 24 May 2016 04:52:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208";a="961193852" Received: from icarus.isw.intel.com ([10.237.224.37]) by orsmga001.jf.intel.com with ESMTP; 24 May 2016 04:52:18 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 24 May 2016 12:38:24 +0100 Message-Id: <1464090003-23469-8-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> References: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> Subject: [PATCH 007/106] toaster: templates Add additional divs for modals in bootstrap3 X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2016 11:52:20 -0000 From: Michael Wood - Adds the modal-dialog modal-content divs as per bootstrap 3 - Update modal close handler in table.js after dom tree change - Remove redundant default.css hack for positioning - Restore grey footer for modals Signed-off-by: Michael Wood --- .../static/css/bootstrap3-transition.css | 5 + .../lib/toaster/toastergui/static/css/default.css | 6 +- .../toastergui/static/html/layer_deps_modal.html | 38 +++---- bitbake/lib/toaster/toastergui/static/js/table.js | 5 +- .../toaster/toastergui/templates/configvars.html | 96 ++++++++--------- .../toaster/toastergui/templates/customrecipe.html | 73 +++++++------ .../toastergui/templates/filtersnippet.html | 113 +++++++++++---------- .../lib/toaster/toastergui/templates/project.html | 39 +++---- .../toastergui/templates/toastertable-filter.html | 32 +++--- 9 files changed, 224 insertions(+), 183 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css index 6f5b1f0..832f681 100644 --- a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +++ b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css @@ -21,3 +21,8 @@ .pagination-centered { margin-left: 50%; } + +/* Modal dialog */ +.modal-footer { + background-color: #f5f5f5; +} diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index b024d96..87da629 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -48,8 +48,10 @@ dd li { line-height: 25px; } .item-info dd { line-height: 20px; margin-bottom: 10px; } /* Style the filter modal dialogs */ -.modal { width: 800px; margin-left: -400px; } -.modal-footer .btn { float: left; } +.modal-footer .btn { + float: left; + } + .modal-body { max-height: 300px; } /* Hover style for the clear search icon */ diff --git a/bitbake/lib/toaster/toastergui/static/html/layer_deps_modal.html b/bitbake/lib/toaster/toastergui/static/html/layer_deps_modal.html index f95a382..7826fb5 100644 --- a/bitbake/lib/toaster/toastergui/static/html/layer_deps_modal.html +++ b/bitbake/lib/toaster/toastergui/static/html/layer_deps_modal.html @@ -1,17 +1,21 @@ - + diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js index 0f0a1db..fbf0f07 100644 --- a/bitbake/lib/toaster/toastergui/static/js/table.js +++ b/bitbake/lib/toaster/toastergui/static/js/table.js @@ -602,7 +602,7 @@ function tableInit(ctx){ queryset on the table */ var filterActionRadios = $('#filter-actions-' + ctx.tableName); - var filterApplyBtn = $('[data-role="filter-apply"]'); + var filterApplyBtn = $('[data-cat="filter-apply"]'); var setApplyButtonState = function (e, filterActionValue) { if (filterActionValue !== undefined) { @@ -769,6 +769,7 @@ function tableInit(ctx){ loadData(tableParams); - $(this).parent().modal('hide'); + + $('#filter-modal-'+ctx.tableName).modal('hide'); }); } diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html index 70e4d89..b959b56 100644 --- a/bitbake/lib/toaster/toastergui/templates/configvars.html +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html @@ -79,52 +79,56 @@ {% for variable in objects %} {% if variable.vhistory.count %} + + {% endif %} {% endfor %} diff --git a/bitbake/lib/toaster/toastergui/templates/customrecipe.html b/bitbake/lib/toaster/toastergui/templates/customrecipe.html index cfe6df0..ee41c68 100644 --- a/bitbake/lib/toaster/toastergui/templates/customrecipe.html +++ b/bitbake/lib/toaster/toastergui/templates/customrecipe.html @@ -42,42 +42,51 @@ }); - + + + diff --git a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html index ea772de..4c2c53e 100644 --- a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html +++ b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html @@ -1,57 +1,64 @@ {% load projecttags %} {% with f.class as key %} - + + {% endwith %} diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html index ac411a3..3096ad2 100644 --- a/bitbake/lib/toaster/toastergui/templates/project.html +++ b/bitbake/lib/toaster/toastergui/templates/project.html @@ -24,25 +24,30 @@ }); +{% comment %} + +{% endcomment %} -- 1.9.1