Skip to content
Snippets Groups Projects
Commit 80666d17 authored by Antoine Rey's avatar Antoine Rey
Browse files

Moving static resources from WEB-INF to src/main/resources/static

parent 104b4d27
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 18 deletions
......@@ -2,6 +2,6 @@
<div class="row">
<div class="col-md-12">
<img class="img-responsive" src="resources/images/pets.png" alt="pets logo" />
<img class="img-responsive" src="images/pets.png" alt="pets logo" />
</div>
</div>
\ No newline at end of file
......@@ -5,7 +5,7 @@ angular.module('ownerDetails', [
]);
angular.module("ownerDetails").component("ownerDetails", {
templateUrl: "scripts/app/owner-details/owner-details.template.html",
templateUrl: "scripts/owner-details/owner-details.template.html",
controller: ["$http", '$routeParams', function($http, $routeParams) {
var self = this;
......
......@@ -5,7 +5,7 @@ angular.module('ownerForm', [
]);
angular.module("ownerForm").component("ownerForm", {
templateUrl: "scripts/app/owner-form/owner-form.template.html",
templateUrl: "scripts/owner-form/owner-form.template.html",
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
var self = this;
......
......@@ -5,7 +5,7 @@ angular.module('ownerList', [
]);
angular.module("ownerList").component("ownerList", {
templateUrl: "scripts/app/owner-list/owner-list.template.html",
templateUrl: "scripts/owner-list/owner-list.template.html",
controller: ["$http", function ($http) {
var self = this;
$http.get('owner/list').then(function(resp) {
......
......@@ -5,7 +5,7 @@ angular.module('petForm', [
]);
angular.module("petForm").component("petForm", {
templateUrl: "scripts/app/pet-form/pet-form.template.html",
templateUrl: "scripts/pet-form/pet-form.template.html",
controller: ["$http", '$routeParams', '$location', function ($http, $routeParams, $location) {
var self = this;
var ownerId = $routeParams.ownerId || 0;
......
......@@ -5,7 +5,7 @@ angular.module('vetList', [
]);
angular.module("vetList").component("vetList", {
templateUrl: "scripts/app/vet-list/vet-list.template.html",
templateUrl: "scripts/vet-list/vet-list.template.html",
controller: ["$http", '$routeParams', function($http) {
var self = this;
......
......@@ -5,7 +5,7 @@ angular.module('visits', [
]);
angular.module("visits").component("visits", {
templateUrl: "scripts/app/visits/visits.template.html",
templateUrl: "scripts/visits/visits.template.html",
controller: ["$http", '$routeParams', '$location', '$filter', function ($http, $routeParams, $location, $filter) {
var self = this;
var petId = $routeParams.petId || 0;
......
......@@ -3,10 +3,10 @@
<html ng-app="petClinicApp">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0, minimal-ui">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0, minimal-ui"/>
<title>PetClinic :: a Spring Framework demonstration</title>
<link rel="stylesheet" href="webjars/bootstrap/3.3.7/css/bootstrap.min.css"/>
<link rel="stylesheet" href="resources/css/petclinic.css"/>
<link rel="stylesheet" href="../css/petclinic.css"/>
<script src="webjars/jquery/3.1.0/jquery.min.js"></script>
<script src="webjars/bootstrap/3.3.7/js/bootstrap.min.js"></script>
......@@ -14,13 +14,13 @@
<script src="webjars/angularjs/1.5.8/angular.min.js"></script>
<script src="webjars/angularjs/1.5.8/angular-route.min.js"></script>
<script src="scripts/app/app.js"></script>
<script src="scripts/app/owner-list/owner-list.component.js"></script>
<script src="scripts/app/owner-details/owner-details.component.js"></script>
<script src="scripts/app/owner-form/owner-form.component.js"></script>
<script src="scripts/app/pet-form/pet-form.component.js"></script>
<script src="scripts/app/visits/visits.component.js"></script>
<script src="scripts/app/vet-list/vet-list.component.js"></script>
<script src="../scripts/app.js"></script>
<script src="../scripts/owner-list/owner-list.component.js"></script>
<script src="../scripts/owner-details/owner-details.component.js"></script>
<script src="../scripts/owner-form/owner-form.component.js"></script>
<script src="../scripts/pet-form/pet-form.component.js"></script>
<script src="../scripts/visits/visits.component.js"></script>
<script src="../scripts/vet-list/vet-list.component.js"></script>
</head>
......@@ -28,7 +28,7 @@
<layout-nav></layout-nav>
<div class="container-fluid">
<div class="container xd-container">
<div ng-view></div>
<div ng-view=""></div>
</div>
</div>
<layout-footer></layout-footer>
......
generated/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment