Skip to content

Commit 055f9ed

Browse files
authored
Hotfix/4.0.4 (#143)
* #1418 Refactored Geomap rendering Added icon to remove section button
1 parent c986827 commit 055f9ed

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
}
1515
}
1616

17-
version "4.0.3"
17+
version "4.0.4-SNAPSHOT"
1818
group "org.grails.plugins"
1919

2020
apply plugin:"eclipse"

grails-app/taglib/au/org/ala/ecodata/forms/ModelTagLib.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class ModelTagLib {
148148
ctx.out << "<span>${model.title}</span>"
149149
}
150150
if (model.userAddedRows && ctx.editMode()) {
151-
ctx.out << """<button class="btn btn-warning pull-right" data-bind="click:\$parent.${ctx.property}.removeRow">${model.removeRowText ?: "Remove Section"}</button>\n"""
151+
ctx.out << """<button class="btn btn-warning pull-right" data-bind="click:\$parent.${ctx.property}.removeRow"><i class="far fa-trash-alt"></i> ${model.removeRowText ?: "Remove Section"}</button>\n"""
152152
}
153153
ctx.out << "<hr/>"
154154
ctx.out << "</div>\n"

grails-app/views/output/_dataEntryMap.gsp

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<g:set var="orientationClass" value="${isHorizontal ? 'col-md-6' : 'row'}"/>
44
<g:set var="latValidation" value="data-validation-engine='validate[min[-90],max[90]]'"/>
55
<g:set var="lngValidation" value="data-validation-engine='validate[min[-180],max[180]]'"/>
6-
<g:set var="orientationMainClass" value="${isHorizontal ? 'row' : ''}"/>
6+
<g:set var="orientationMainClass" value="${isHorizontal ? 'row mx-1' : ''}"/>
77

88
<h4 data-validation-engine="validate[funcCall[validator_site_check]" data-prompt-position="inline" data-position-type="inline" data-prompt-target="error-info">
99
<g:message code="geomap.heading" default="Location"/>
@@ -16,7 +16,7 @@
1616
<div class="col-md-6">
1717
<!-- ko template: 'site-selector-dropdown-template' -->
1818
<!-- /ko -->
19-
<span id="error-info" class="margin-bottom-1"></span>
19+
<span id="error-info" class="mb-2"></span>
2020
<m:map id="${source}Map" width="100%"/>
2121
</div>
2222
</g:if>
@@ -25,14 +25,14 @@
2525
<!-- ko template: 'site-selector-dropdown-template' -->
2626
<!-- /ko -->
2727

28-
<div class="row margin-bottom-1">
29-
<span id="error-info" class="margin-bottom-1"></span>
28+
<div class="row mb-2 mx-1">
29+
<span id="error-info" class="mb-2"></span>
3030
<m:map id="${source}Map" width="100%"/>
3131
</div>
3232
</g:if>
3333

3434
<div class="${orientationClass}">
35-
<div class="col-sm-12" data-bind="visible: transients.showDataEntryFields">
35+
<div class="${isHorizontal ? '' : 'col-12'}" data-bind="visible: transients.showDataEntryFields">
3636
<!-- ko if: transients.showCentroid() -->
3737

3838
<div class="form-group row" data-bind="if: data.${source}CentroidLatitude">
@@ -141,7 +141,7 @@
141141
</div>
142142
</div>
143143

144-
<div class="form-group row margin-bottom-10">
144+
<div class="form-group row mb-2">
145145
<div class="col-sm-3">
146146
</div>
147147
<div class="col-sm-9">
@@ -225,7 +225,7 @@
225225
<label for="bookmarkedLocations">Saved locations</label>
226226
</div>
227227
<div class="col-sm-9">
228-
<form class="form-inline">
228+
<form class="">
229229
<select name="bookmarkedLocations" id="bookmarkedLocations" class="form-control full-width">
230230
<option value="">-- saved locations --</option>
231231
</select>
@@ -247,7 +247,7 @@
247247
<textarea id="${source}Locality" type="text" data-bind="value: data.${source}Locality" readonly class="form-control form-control-sm full-width"></textarea>
248248
</g:if>
249249
<g:else>
250-
<form class="form-inline">
250+
<form>
251251
<textarea id="${source}Locality" type="text" data-bind="value: data.${source}Locality" class="form-control form-control-sm full-width"></textarea>
252252
<g:if test="${!autoLocalitySearch}">
253253
<button id="reverseGeocodeLocality" class="btn btn-primary-dark margin-top-1">Search for locality match</button>

0 commit comments

Comments
 (0)