summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/templates/principalshow.kid
blob: 0aee5845a196c5b02305de596ad2bc69333ab39d (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
<!-- 
 Copyright (C) 2007  Red Hat
 see file 'COPYING' for use and warranty information

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License as
 published by the Free Software Foundation; version 2 only

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<!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" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'policylayout.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>View Service Principal</title>
</head>
<body>

  <script type="text/javascript" charset="utf-8" src="${tg.url('/static/javascript/tablekit.js')}"></script>

  <script type="text/javascript" charset="utf-8">
    function confirmDelete() {
      if (confirm("Are you sure you want to delete this service principal?")) {
        $('deleteform').submit();
      }
      return false;
    }
  </script>

  <form id='deleteform'
    method="post" action="${tg.url('/principal/delete')}">

    <input type="hidden" name="principal" value="${principal.get('principal_dn')}" />

    <input type="submit" class="submitbutton"
         value="Delete Principal"
         onclick="return confirmDelete();"
    />

  <h1>View Service Principal</h1>

    <h2 class="formsection">Principal</h2>
    <table class="formtable" cellpadding="2" cellspacing="0" border="0">
        <tr>
          <th>
            <label class="fieldlabel">Host</label>:
          </th>
          <td>${principal.get("hostname")}</td>
        </tr>
        <tr>
          <th>
            <label class="fieldlabel">Service</label>:
          </th>
          <td>${principal.get("service")}</td>
        </tr>
    </table>
  </form>

<hr />

</body>
</html>