-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
76 lines (68 loc) · 1.94 KB
/
index.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
<html>
<head>
<script src="https://unpkg.com/@microsoft/mgt@2/dist/bundle/mgt-loader.js"></script>
<style>
body {
background-color: #F3F2F1;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.order {
display: flex;
flex-direction: column;
font-size: 12px;
color: #444;
border: 1px #EDEBE9 solid;
width: 270px;
height: 200px;
background-color: #ffffff;
margin: 10px;
float:left;
box-shadow: 2px 2px #E4E3E2;
}
.orderheader {
font-weight: bold;
font-size: larger;
background-color: rgb(200, 203, 233);
padding: 5px;
height: 25px;
}
button {
margin-left: 20px;
padding: 10 5 10 5;
font-size: 14px;
background-color: rgb(178, 207, 178);
}
.orderbody {
flex-grow: 2;
white-space: pre-line;
margin: 10px;
}
.orderfooter {
font-weight: bold;
font-size: larger;
padding: 10px;
height: 60px;
}
</style>
</head>
<body>
<mgt-msal-provider client-id="[YOUR-CLIENT-ID]"></mgt-msal-provider>
<mgt-login></mgt-login>
<mgt-get resource="/sites/root/lists/[YOUR-SHAREPOINT-LIST-ID]/items?$expand=fields&$filter=fields/Status eq 'Ready for Packing'"
scopes="sites.read.all" max-pages="2" polling-rate="0">
<template data-type="value">
<div class="order">
<div class="orderheader">Order {{ fields.Title }} for {{ fields.ContactName }}</div>
<div class="orderbody">{{ fields.OrderManifest }}</div>
<div class="orderfooter">Items {{ fields.TotalItems }}<button>Packed</button></div>
</div>
</template>
<template data-type="loading">
loading
</template>
<template data-type="error">
{{ this.message }}
</template>
</mgt-get>
</body>
</html>