Skip to content
Snippets Groups Projects
Commit 98b6a130 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

UI/Authorization fix

Now only admins can change the season of a trapsite
parent 49c6df51
No related branches found
No related tags found
No related merge requests found
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
<input type="hidden" name="trapsiteTypeId" value="1"/> <input type="hidden" name="trapsiteTypeId" value="1"/>
<div class="form-group"> <div class="form-group">
<label for="season">Sesong *</label> <label for="season">Sesong *</label>
<input type="text" class="form-control" name="season" placeholder="Sesong" value="${season}" onblur="validateField(this);"/> <input type="text" class="form-control" name="season" <#if !userIsAdmin>readonly</#if> placeholder="Sesong" value="${season}" onblur="validateField(this);"/>
<span class="help-block" id="${formId}_season_validation"></span> <span class="help-block" id="${formId}_season_validation"></span>
</div> </div>
<input type="hidden" name="gisGeom" id="gisGeom" value="${(seasonTrapsite.longitude?c)!""},${(seasonTrapsite.latitude?c)!""}" /> <input type="hidden" name="gisGeom" id="gisGeom" value="${(seasonTrapsite.longitude?c)!""},${(seasonTrapsite.latitude?c)!""}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment