mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-29 14:49:38 +00:00
improved alignment in forms
This commit is contained in:
parent
6f7b42206e
commit
ffa0a6a1cf
5 changed files with 17 additions and 9 deletions
|
@ -8,12 +8,12 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>PetClinic :: a Spring Framework demonstration</title>
|
||||
|
||||
<spring:url value="/resources/css/petclinic.css" var="petclinicCss" />
|
||||
<link href="${petclinicCss}" rel="stylesheet"/>
|
||||
|
||||
<spring:url value="/webjars/bootstrap/2.2.1/css/bootstrap.min.css" var="bootstrapCss" />
|
||||
<link href="${bootstrapCss}" rel="stylesheet"/>
|
||||
|
||||
<spring:url value="/resources/css/petclinic.css" var="petclinicCss" />
|
||||
<link href="${petclinicCss}" rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
<jsp:include page="../header.jsp"/>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<spring:url value="/resources/images/banner-graphic.png" var="banner"/>
|
||||
<img src="${banner}" />
|
||||
|
@ -16,9 +15,9 @@
|
|||
<h2>Find Owners</h2>
|
||||
|
||||
<spring:url value="/owners.html" var="formUrl"/>
|
||||
<form:form modelAttribute="owner" action="${fn:escapeXml(formUrl)}" method="get" class="form-horizontal" style="width:600px;">
|
||||
<form:form modelAttribute="owner" action="${fn:escapeXml(formUrl)}" method="get" class="form-horizontal" id="search-owner-form">
|
||||
<fieldset>
|
||||
<div class="controls">
|
||||
<div class="control-group" id="lastName">
|
||||
<label class="control-label">Last name </label>
|
||||
<form:input path="lastName" size="30" maxlength="80"/>
|
||||
<span class="help-inline"><form:errors path="*" /></span>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
<b>Owner:</b> ${pet.owner.firstName} ${pet.owner.lastName}
|
||||
<br/>
|
||||
<form:form modelAttribute="pet" method="${method}">
|
||||
<form:form modelAttribute="pet" method="${method}" class="form-horizontal">
|
||||
<fieldset>
|
||||
<div class="control-group" id="name">
|
||||
<label class="control-label">Name </label>
|
||||
|
@ -40,7 +40,7 @@
|
|||
</div>
|
||||
<div class="control-group" id="type">
|
||||
<label class="control-label">Type </label>
|
||||
<form:select path="type" items="${types}"/>
|
||||
<form:select path="type" items="${types}"/>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<c:choose>
|
||||
|
@ -59,8 +59,8 @@
|
|||
<p class="submit"><input type="submit" value="Delete Pet"/></p>
|
||||
</form:form>
|
||||
</c:if>
|
||||
<jsp:include page="../footer.jsp"/>
|
||||
</div>
|
||||
<jsp:include page="../footer.jsp"/>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
.container {
|
||||
padding-top: 10px;
|
||||
margin-left: 50px;
|
||||
width: 610px;
|
||||
}
|
||||
|
||||
.form-horizontal {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
input {
|
||||
line-height: 35px;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<title>The Spring PetClinic Application</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<link rel="stylesheet" href="../styles/petclinic.css" type="text/css">
|
||||
<link rel="stylesheet" href="../css/petclinic.css" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Reference in a new issue