Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Matúš Valko
Online Gaming Management System
Commits
8e23f5c0
Commit
8e23f5c0
authored
May 20, 2022
by
Matúš Valko
Browse files
added new team
parent
96257d23
Pipeline
#141499
passed with stage
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gaming-spring-mvc/src/main/webapp/WEB-INF/jsp/team/new.jsp
0 → 100644
View file @
8e23f5c0
<%@ page
contentType=
"text/html;charset=UTF-8"
pageEncoding=
"utf-8"
trimDirectiveWhitespaces=
"false"
session=
"false"
%>
<%@ taglib
tagdir=
"/WEB-INF/tags"
prefix=
"my"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%@ taglib
prefix=
"s"
uri=
"http://www.springframework.org/tags"
%>
<%@ taglib
prefix=
"form"
uri=
"http://www.springframework.org/tags/form"
%>
<my:pagetemplate
title=
"New Team"
>
<jsp:attribute
name=
"body"
>
<form:form
method=
"post"
action=
"
${
pageContext
.
request
.
contextPath
}
/team/create"
modelAttribute=
"teamCreate"
cssClass=
"form-horizontal"
>
<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:errors
path=
"name"
cssClass=
"help-block"
/>
</div>
</div>
<div
class=
"form-group"
>
<form:label
path=
"country"
cssClass=
"col-sm-2 control-label"
>
Country
</form:label>
<div
class=
"col-sm-10"
>
<form:select
path=
"country"
cssClass=
"form-control"
>
<c:forEach
items=
"
${
countries
}
"
var=
"c"
>
<form:option
value=
"
${
c
}
"
>
${c}
</form:option>
</c:forEach>
</form:select>
<form:errors
path=
"country"
cssClass=
"error"
/>
</div>
</div>
<button
class=
"btn btn-primary"
type=
"submit"
>
Create Team
</button>
</form:form>
</jsp:attribute>
</my:pagetemplate>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment