-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexAdmin.html
135 lines (109 loc) · 6.51 KB
/
indexAdmin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Editions Thierry Magnier</title>
<link href="bootstrap-3.3.1-dist/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="fonts/font-awesome-4.2.0/css/font-awesome.css" rel="stylesheet" />
<link href="css/Slider.css" rel="stylesheet" />
<link href="css/Tiles2.css" rel="stylesheet" />
<link href="css/Menu2.css" rel="stylesheet" />
<link href="css/admin.css" rel="stylesheet" />
</head>
<body ng-app="BookFlo" class="drop-box" ng-controller="mainController" ng-init="init()"
ng-file-drop="onFileSelect($files)"
ng-file-drop-available="true">
<p class="footer">Designed by <a href="http://" target="_blank">Florie Briand</a> and Marc Magnin - 2014 </p>
<div id="booksContainer" class="tilesContainer"><!--| orderBy:'Index':true-->
<div class="tile isotopey tile-admin {{item.Theme}} {{item.Tags}}" ng-repeat="item in items" isotopethis=isotopethis>
<p class="index hide">{{item.Index}}</p>
<button class="close"
ng-click="deleteItem($index, item)">
<i class="fa fa-times"></i>
</button>
<div class="btn-toolbar">
<div class="btn-group">
<button class="btn btn-lg btn-success" ng-click="saveItem(item)">
<i class="fa fa-save"></i>
</button>
</div>
<div class="hidden-object">
<div class="btn-group">
<button class="btn btn-lg btn-primary" title="Add header" ng-click="addHeader($index, item)">
<i class="fa fa-header"></i>
</button>
<button class="btn btn-lg btn-primary" title="Add text" ng-click="addText($index, item)">
<i class="fa fa-pencil"></i>
</button>
<button class="btn btn-lg btn-primary" title="Add image" ng-click="addImage($index, item)">
<i class="fa fa-image"></i>
</button>
</div>
</div>
</div>
<input class="form-control" placeholder="Theme" ng-model="item.Theme" />
<tags item="item"></tags>
<!--<input class="form-control" placeholder="Largeur" ng-model="item.Width" />-->
<div class="inner-tile">
<div class="vertical-text">{{item.Theme}}</div>
<div class="details hidden-object" ng-controller="tileDetailController">
<button class="close" ng-click="clearTitle(item)">
<i class="fa fa-times"></i>
</button>
<textarea class="form-control text-area" placeholder="Titre" ng-model="item.Title">{{item.Title}}</textarea>
</div>
<div class="details hidden-object" ng-controller="tileDetailController">
<button class="close" ng-click="clearDescription(item)">
<i class="fa fa-times"></i>
</button>
<textarea class="form-control text-area" placeholder="Description" ng-model="item.Description">{{item.Description}}</textarea>
</div>
<img class="tileHeroImage width{{item.Width}}" src="{{apiRootUrl}}/{{item.Images[0].Url}}" />
<div class="hidden-object">
<div class="details" ng-repeat="detail in item.Details" ng-controller="tileDetailController">
<button class="close" ng-click="deleteDetail($index, item)">
<i class="fa fa-times"></i>
</button>
<div ng-switch="detail.type">
<textarea ng-switch-when="title" class="form-control text-area" ng-model="detail.value"></textarea>
<textarea ng-switch-when="text" class="form-control text-area" ng-model="detail.value"></textarea>
<div ng-switch-when="image" class="inline-images">
<div class="details-image-container">
<i class="fa fa-picture-o fa-3x fa-li"></i>
<img class="drop-box drop-image details-image"
ng-file-drop="onAddImage($files, item, 'low', detail)"
ng-file-drop-available="true"
src="{{apiRootUrl}}/{{detail.low}}" />
</div>
<div class="details-image-container">
<i class="fa fa-picture-o fa-5x fa-li"></i>
<img class="drop-box drop-image details-image"
ng-file-drop="onAddImage($files, item, 'high', detail)"
ng-file-drop-available="true"
src="{{apiRootUrl}}/{{detail.high}}" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery.mousewheel.min.js"></script>
<!--<script src="js/isotope/isotope.pkgd.js"></script>
<script src="js/isotope/masonryHorizontal.js"></script>-->
<script src="js/isotope/jquery.isotope.js"></script>
<!--contains easing animations as well -->
<script src="js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="js/stuff.js"></script>
<script src="js/stuffAdmin.js"></script>
<script src="js/FileAPI.js"></script>
<script src="js/angular-file-upload-html5-shim.js"></script>
<script type="text/javascript" src="js/angular.min.js"></script>
<script src="js/angular-file-upload.js"></script>
<script type="text/javascript" src="js/catalogue-app/appAdmin.js"></script>
<script type="text/javascript" src="js/catalogue-app/controllers/mainController.js"></script>
<script src="js/catalogue-app/controllers/tileDetailController.js"></script>
</body>
</html>