Skip to content

Commit

Permalink
Fix missing SASS dashboard button (#4100)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Jul 24, 2024
1 parent 4580de0 commit a09e3f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bims/templates/map_page/side-panel-templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,21 @@
<div>

</div>
<% if (is_sass_enabled && ecosystem_type && ecosystem_type == 'River') { %>
<% if (is_sass_enabled) { %>
<div class="row" style="padding: 10px;">
<div class="col-sm-<% if (!add_data) { %>12<% } else { %>6<% } %>" style="padding-right: 0">
<div class="col-sm-<% if (!add_data || ecosystem_type != 'River') { %>12<% } else { %>6<% } %>" style="padding-right:<% if (!add_data || ecosystem_type != 'River') { %>15px<% } else { %>0<% } %>">
<button class="fbis-button-small <% if (sass_exist) { %> sp-sass-dashboard <% } else { %> disabled <% } %>" style="width: 100%; height: 30px">SASS Dashboard</button>
</div>
<% if (ecosystem_type && ecosystem_type == 'River') { %>
<div class="col-sm-6" style="padding-left: 0;<% if (!add_data) { %> display:none <% } %>">
<button class="fbis-button-small fbis-red sp-add-sass" style="width: 100%; height: 30px">Add SASS</button>
</div>
<% } %>
</div>
<% } %>
<% if (is_water_temperature_enabled) { %>
<div class="row" style="padding: 10px;">
<div class="col-sm-<% if (!add_data) { %>12<% } else { %>6<% } %>" style="padding-right: 0">
<div class="col-sm-<% if (!add_data) { %>12<% } else { %>6<% } %>" style="padding-right: <% if (!add_data) { %>15px<% } else { %>0<% } %>">
<button class="fbis-button-small <% if (water_temperature_exist) { %> sp-water-temperature <% } else { %> disabled <% } %>"
style="width: 100%; height: 30px">Water Temperature</button>
</div>
Expand All @@ -97,7 +99,7 @@
<% } %>

<div class="row" style="padding: 10px;">
<div class="col-sm-<% if (!add_data) { %>12<% } else { %>6<% } %>" style="padding-right: 0">
<div class="col-sm-<% if (!add_data) { %>12<% } else { %>6<% } %>" style="padding-right: <% if (!add_data) { %>15px<% } else { %>0<% } %>">
<button class="fbis-button-small <% if (physico_chemical_exist) { %> sp-physico-chemical <% } else { %> disabled <% } %>"
style="width: 100%; height: 30px">Physico-chemical data</button>
</div>
Expand Down

0 comments on commit a09e3f1

Please sign in to comment.