Commit ce87b337 authored by S Anand's avatar S Anand
Browse files

BUG: FormHandler template should not leave space for missing controls

If Edit button is missing, it still has a .mr-2. Same for .add and other controls.
Remove these. Ensure that the margins are added INSIDE the controls.
parent 819fd993
Pipeline #59167 failed with stage
in 1 minute and 50 seconds
......@@ -16,11 +16,11 @@ Each template receives these variables:
<div class="formhandler">
<div class="formhandler-table-header d-flex justify-content-between mb-2">
<div class="d-flex flex-wrap">
<div class="edit mr-2"></div>
<div class="add mr-2"></div>
<div class="count mr-2"></div>
<div class="page mr-2"></div>
<div class="size mr-2"></div>
<div class="edit"></div>
<div class="add"></div>
<div class="count"></div>
<div class="page"></div>
<div class="size"></div>
</div>
<div class="d-flex">
<div class="filters"></div>
......@@ -177,7 +177,7 @@ Each template receives these variables:
lo = Math.max(page - 2, 1),
hi = last_page !== null ? Math.min(last_page, page + 2) : page + 2
%>
<ul class="pagination pagination-sm">
<ul class="pagination pagination-sm mr-2">
<li class="page-item <%- page <= 1 ? 'disabled' : '' %>">
<a class="page-link" href="?_offset=<%- meta.offset - meta.limit %>">Previous</a>
</li>
......@@ -221,7 +221,7 @@ Each template receives these variables:
<!-- var template_size -->
<% if (meta.limit) { %>
<div class="btn-group btn-group-sm" role="group">
<div class="btn-group btn-group-sm mr-2" role="group">
<button id="formhandler-size-<%- idcount++ %>" type="button" class="btn btn-light btn-sm dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<%- meta.limit %> rows
......@@ -239,7 +239,7 @@ Each template receives these variables:
<!-- var template_count -->
<% if ('count' in meta) { %>
<span class="btn btn-sm btn-light">
<span class="btn btn-sm btn-light mr-2">
<%- meta.count %> rows</span>
<% } %>
<!-- end -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment