mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:15:50 +00:00
will add css later
This commit is contained in:
parent
556824d7c7
commit
d5cf15107a
4 changed files with 7 additions and 121 deletions
|
@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|||
public class HomeController {
|
||||
|
||||
@RequestMapping(value="/", method = RequestMethod.GET)
|
||||
public String getHome() {
|
||||
public String get() {
|
||||
return "home";
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.springframework.samples.petclinic.owner;
|
||||
|
||||
|
||||
public class Owner {
|
||||
|
||||
private Long id;
|
||||
|
|
|
@ -21,7 +21,12 @@ public class OwnersController {
|
|||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
public Collection<Owner> get(@RequestParam String lastName) {
|
||||
public void get() {
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value="/search", method = RequestMethod.GET)
|
||||
public Collection<Owner> getSearchResults(@RequestParam String lastName) {
|
||||
return repository.findOwnersByLastName(lastName);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,118 +0,0 @@
|
|||
* {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-image: url(../images/banner-graphic.png);
|
||||
background-position: top;
|
||||
background-repeat: no-repeat;
|
||||
width: 820px;
|
||||
margin: auto;
|
||||
margin-top: 60px;
|
||||
font-family:verdana;
|
||||
font-size: 62.5%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
#header {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
#signin {
|
||||
float: right;
|
||||
list-style: none;
|
||||
width: 100px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#signin li{
|
||||
display: inline;
|
||||
padding: 0 2px;
|
||||
border-left: 1px solid #000;
|
||||
margin-left: -1px;
|
||||
}
|
||||
#signin li a{
|
||||
|
||||
}
|
||||
#nav {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 600px;
|
||||
clear: right;
|
||||
padding: 1em;
|
||||
}
|
||||
#nav ul {
|
||||
list-style: none;
|
||||
}
|
||||
#nav ul li {
|
||||
display: inline;
|
||||
}
|
||||
#nav ul li a {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 150px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
#sidebar {
|
||||
float: left;
|
||||
width: 200px;
|
||||
}
|
||||
#sub-nav {
|
||||
list-style: none;
|
||||
}
|
||||
#sub-nav li {
|
||||
display: inline;
|
||||
}
|
||||
#sub-nav li a {
|
||||
display: block;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
/* content */
|
||||
#content{
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
#petlogo {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#main{
|
||||
padding-left: 200px;
|
||||
}
|
||||
#main label{
|
||||
display: block;
|
||||
padding: 1em 0;
|
||||
}
|
||||
/* content - application */
|
||||
|
||||
#footer {
|
||||
clear: both;
|
||||
padding-top: 1em;
|
||||
}
|
||||
#copyright{
|
||||
float: left;
|
||||
}
|
||||
ul#legal{
|
||||
list-style: none;
|
||||
width: 300px;
|
||||
overflow: hidden;
|
||||
float: right;
|
||||
}
|
||||
ul#legal li{
|
||||
display: inline;
|
||||
padding: 0px 4px 0px 5px;
|
||||
border-left: 1px solid #000;
|
||||
margin-left: -1px;
|
||||
}
|
||||
ul#legal li a{
|
||||
|
||||
}
|
Loading…
Reference in a new issue