Commit 58bf1cdf authored by Adrián Piaček's avatar Adrián Piaček
Browse files

Added edit for players values

parent 6c403b1b
Pipeline #141771 passed with stage
in 1 minute and 5 seconds
......@@ -14,7 +14,7 @@
<div class="form-group ${name_error?'has-error':''}">
<form:label path="name" cssClass="col-sm-2 control-label">Name</form:label>
<div class="col-sm-10">
<form:input path="name" cssClass="form-control"/>
<form:input path="name" cssClass="form-control" value="${player.name}"/>
<form:errors path="name" cssClass="help-block"/>
</div>
</div>
......@@ -33,7 +33,7 @@
<div class="form-group">
<form:label path="teamId" cssClass="col-sm-2 control-label">Team</form:label>
<div class="col-sm-10">
<form:select path="teamId" cssClass="form-control">
<form:select path="teamId" cssClass="form-control" value="${player.team.name}">
<c:forEach items="${teams}" var="c">
<form:option value="${c.id}">${c.name}</form:option>
</c:forEach>
......@@ -45,21 +45,21 @@
<div class="form-group ${killStat_error?'has-error':''}" >
<form:label path="killStat" cssClass="col-sm-2 control-label">Kill stat</form:label>
<div class="col-sm-10">
<form:input placeholder="${playerEdit.killStat}" path="killStat" cssClass="form-control"/>
<form:input path="killStat" cssClass="form-control" value="${player.killStat}"/>
<form:errors path="killStat" cssClass="help-block"/>
</div>
</div>
<div class="form-group ${deathStat_error?'has-error':''}" >
<form:label path="deathStat" cssClass="col-sm-2 control-label">Death stat</form:label>
<div class="col-sm-10">
<form:input placeholder="${playerEdit.deathStat}" path="deathStat" cssClass="form-control"/>
<form:input path="deathStat" cssClass="form-control" value="${player.deathStat}"/>
<form:errors path="deathStat" cssClass="help-block"/>
</div>
</div>
<div class="form-group ${assistStat_error?'has-error':''}" >
<form:label path="assistStat" cssClass="col-sm-2 control-label">Assist stat</form:label>
<div class="col-sm-10">
<form:input placeholder="${playerEdit.assistStat}" path="assistStat" cssClass="form-control"/>
<form:input path="assistStat" cssClass="form-control" value="${player.assistStat}"/>
<form:errors path="assistStat" cssClass="help-block"/>
</div>
</div>
......
Supports Markdown
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