-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpopup.html
91 lines (89 loc) · 3.79 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./popup.css">
<link rel="stylesheet" href="./assets/salesforce-lightning-design-system.min.css">
<title>Tab Manager</title>
</head>
<body class="slds-p-around_none">
<article class="slds-card">
<div class="slds-card__header slds-grid">
<header class="slds-media slds-media_center slds-has-flexi-truncate">
<div class="slds-media__figure">
<span class="slds-icon_container" title="Why Salesforce">
<img src="./images/whysf32.png" alt="Why Salesforce">
<span class="slds-assistive-text">Why Salesforce</span>
</span>
</div>
<div class="slds-media__body">
<h2 class="slds-card__header-title">
<span>Why Salesforce</span>
</h2>
</div>
<div class="slds-no-flex">
<button class="save slds-button slds-button_brand">Save</button>
<button class="add slds-button slds-button_neutral">Add</button>
</div>
</header>
</div>
<div id="message" class="hidden">
<div class="slds-notify_container slds-is-relative">
<div id="message-type" class="slds-notify slds-notify_toast" role="status">
<div class="slds-notify__content">
<h2 id="message-body" class="slds-text-heading_small"/>
</div>
</div>
</div>
</div>
<div class="slds-card__body slds-card__body_inner slds-p-around_none">
<table class="slds-table slds-table_cell-buffer slds-table_bordered">
<thead>
<tr>
<th scope="col">
<div title="Tab Name">Tab Name</div>
</th>
<th scope="col">
<div title="Tab Url">Tab Url</div>
</th>
<th scope="col" style="width: 3.25rem">
<div title="Open in New Tab">New Tab</div>
</th>
<th scope="col" style="width: 3.25rem">
<div class="slds-assistive-text" title="Actions">Actions</div>
</th>
</tr>
</thead>
<tbody class="tabs">
<!-- Rows will be dynamically added here -->
</tbody>
</table>
</div>
</article>
<template id="tr_template">
<tr class="tab">
<td data-label="Tab Name" scope="row">
<div class="slds-form-element__control">
<input type="text" name="tabTitle" class="tabTitle slds-input" placeholder="Flow">
</div>
</td>
<td data-label="Tab Url">
<div class="slds-form-element__control">
<input type="url" name="url" class="url slds-input" placeholder="/lightning/setup/Flows/home">
</div>
</td>
<td data-label="New Tab">
<div class="slds-form-element__control">
<input type="checkbox" name="openInNewTab" class="openInNewTab slds-checkbox">
</div>
</td>
<td>
<button class="delete slds-button slds-button_destructive">Delete</button>
</td>
</tr>
</template>
<script src="./popup.js" type="module"></script>
</body>
</html>