summaryrefslogtreecommitdiff
path: root/src/templates/admin/plugins.html
blob: 6e9b4d2e86fdd9ec0eba233bf4d2d816d9ae6da9 (plain)
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
<html>
  <head>
    <title>Plugin manager</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    <link rel="stylesheet" href="../../static/css/admin.css">
    <script src="../../static/js/jquery.js"></script>
    <script src="../../socket.io/socket.io.js"></script>
    <script src="../../static/js/admin/plugins.js"></script>
  </head>
  <body>
    <div id="wrapper">

      <% if (errors.length) { %>
        <div class="errors">
          <% errors.forEach(function (item) { %>
            <div class="error"><%= item.toString() %></div>
          <% }) %>
        </div>
      <% } %>


      <h1>Etherpad Lite</h1>
      <div class="seperator"></div> 
      <h2>Installed plugins</h2>
      <table>
        <thead>
          <tr>
            <th>Name</th>
            <th>Description</th>
            <td></td>
          </tr>
        </thead>
        <tbody class="template">
          <tr id="installed-plugin-template">
            <td class="name"></td>
            <td class="description"></td>
            <td class="actions">
              <input type="button" value="Uninstall" class="do-uninstall">
            </td>
          </tr>
        </tbody>
        <tbody id="installed-plugins">
        </tbody>
      </table>

      <div class="paged listing search-results">
        <div class="seperator"></div> 
        <h2>Search for plugins to install</h2>
        <form>
          <input type="text" name="search" placeholder="Search term" id="search-query">
          <input type="button" value="Search" id="do-search">
        </form>
        <table>
          <thead>
            <tr>
              <th>Name</th>
              <th>Description</th>
              <td></td>
            </tr>
          </thead>
          <tbody class="template">
            <tr>
              <td class="name"></td>
              <td class="description"></td>
              <td class="actions">
                <input type="button" value="Install" class="do-install">
             </td>
            </tr>
          </tbody>
          <tbody class="results">
          </tbody>
        </table>
        <input type="button" value="<<" class="do-prev-page">
        <span class="offset"></span>..<span class="limit"></span> of <span class="total"></span>.
        <input type="button" value=">>" class="do-next-page">
      </div>

      <div id="progress" class="dialog">
        <h1 class="title">
          Please wait: <span class="message"></span>
        <input type="button" class="close" value="Close">
        </h1>
        <div class="history"></div>
      </div>
    </div>
  </body>
</html>