manager.tpl 6.14 KB
Newer Older
Yadd's avatar
Yadd committed
1
2
3
4
5
6
7
<!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" lang="en-US" xml:lang="en-US">
<head>
<title>Lemonldap::NG Manager</title>
<link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="DIR">/manager.css" />
Clément OUDOT's avatar
Clément OUDOT committed
8
<link rel="stylesheet" type="text/css" href="<TMPL_VAR NAME="DIR">/jquery-ui-1.7.2.custom.css" />
9
10
<script src="<TMPL_VAR NAME="DIR">/jquery-1.3.2.min.js" type="text/JavaScript"></script>
<script src="<TMPL_VAR NAME="DIR">/jquery-ui-1.7.2.custom.min.js" type="text/JavaScript"></script>
Yadd's avatar
Yadd committed
11
12
<script src="<TMPL_VAR NAME="DIR">/tree.js" type="text/JavaScript"></script>
<script type="text/JavaScript">//<![CDATA[
Yadd's avatar
Yadd committed
13
var scriptname='<TMPL_VAR NAME="SCRIPT_NAME">';var imagepath='<TMPL_VAR NAME="DIR">/';
Yadd's avatar
Yadd committed
14
//]]></script>
Yadd's avatar
Yadd committed
15
<script src="<TMPL_VAR NAME="DIR">/manager.js" type="text/JavaScript"></script>
Yadd's avatar
Yadd committed
16
17
18
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
</head>
<body>
19

Clément OUDOT's avatar
Clément OUDOT committed
20
<!-- Header -->
Clément OUDOT's avatar
Clément OUDOT committed
21
<div id="header" class="ui-widget">
Clément OUDOT's avatar
Clément OUDOT committed
22
   <img alt="Lemonldap::NG" src="<TMPL_VAR NAME="DIR">/logo_lemonldap-ng.png" class="logo" />
Clément OUDOT's avatar
Clément OUDOT committed
23
24
   <p class="ui-state-default ui-corner-all ui-state-active"><a href="index.pl"><lang en="Configuration management" fr="Gestion de la configuration"/></a></p>
   <p class="ui-state-default ui-corner-all"><a href="sessions.pl"><lang en="Sessions explorer" fr="Explorateur de sessions"/></a></p>
Clément OUDOT's avatar
Clément OUDOT committed
25
26
</div>

27
<!-- Main -->
Clément OUDOT's avatar
Clément OUDOT committed
28
<div id="page" class="ui-corner-all ui-helper-clearfix ui-widget-content">
29
30

<!-- Menu (tree) -->
Clément OUDOT's avatar
Clément OUDOT committed
31
<div id="menu" class="ui-widget">
Yadd's avatar
Yadd committed
32
   <TMPL_VAR NAME="MENU">
33
34
35
36
37
38
</div>

<!-- Data -->
<div id="data">

   <!-- All buttons -->
Clément OUDOT's avatar
Clément OUDOT committed
39
   <div id="buttons" class="ui-widget ui-corner-all">
40

Clément OUDOT's avatar
Clément OUDOT committed
41
    <h1 class="ui-widget-header ui-corner-all">
Clément OUDOT's avatar
Clément OUDOT committed
42
43
44
     <lang en="Available actions" fr="Actions disponibles" />
    </h1>

Clément OUDOT's avatar
Clément OUDOT committed
45
    <button id="bsave" onclick="uploadConf()" class="ui-state-default ui-corner-all" >
Yadd's avatar
Yadd committed
46
47
     <lang en="Save" fr="Sauver" />
    </button>
48

Clément OUDOT's avatar
Clément OUDOT committed
49
    <button id="bapply" onclick="$.post(scriptname,{apply:1},function(data){return 1},'html');" class="ui-state-default ui-corner-all">
Yadd's avatar
Yadd committed
50
51
     <lang en="Apply" fr="Appliquer" />
    </button>
52

Yadd's avatar
Yadd committed
53
    <button id="bnewvh" style="display:none;" onclick="newVh('test25.example.com');return false;" class="ui-state-default ui-corner-all">
Yadd's avatar
Yadd committed
54
55
56
     <lang en="New virtual host" fr="Nouvel hôte virtuel" />
    </button>

57
58
59
60
    <button id="bdelvh" style="display:none;" onclick="delvh(currentId);" class="ui-state-default ui-corner-all">
     <lang en="Delete virtual host" fr="Supprimer l'hôte virtuel" />
    </button>

Clément OUDOT's avatar
Clément OUDOT committed
61
    <button id="newkbr" style="display:none;" onclick="newKeyR();return false;" class="ui-state-default ui-corner-all">
Yadd's avatar
Yadd committed
62
63
     <lang en="New key" fr="Nouvelle clef" />
    </button>
64

Clément OUDOT's avatar
Clément OUDOT committed
65
    <button id="newrbr" style="display:none;" onclick="newRuleR();return false;" class="ui-state-default ui-corner-all">
Yadd's avatar
Yadd committed
66
67
     <lang en="New rule" fr="Nouvelle règle" />
    </button>
68

Clément OUDOT's avatar
Clément OUDOT committed
69
    <button id="newkb" style="display:none;" onclick="newKey();return false;" class="ui-state-default ui-corner-all">
Yadd's avatar
Yadd committed
70
71
     <lang en="New key" fr="Nouvelle clef" />
    </button>
72

Clément OUDOT's avatar
Clément OUDOT committed
73
    <button id="newrb" style="display:none;" onclick="newRule();return false;" class="ui-state-default ui-corner-all">
Yadd's avatar
Yadd committed
74
75
     <lang en="New rule" fr="Nouvelle règle" />
    </button>
76

Clément OUDOT's avatar
Clément OUDOT committed
77
    <button id="delkb" style="display:none;" onclick="delKey();return false;" class="ui-state-default ui-corner-all">
Yadd's avatar
Yadd committed
78
79
     <lang en="Delete key" fr="Effacer la clef" />
    </button>
80

Yadd's avatar
Yadd committed
81
   </div>
82

Clément OUDOT's avatar
Clément OUDOT committed
83
84
  
   <div id="edition" class="ui-widget ui-corner-all">
85
   <span id="content_title">&nbsp;</span>
Clément OUDOT's avatar
Clément OUDOT committed
86
87
 
   <form action="#" onsubmit="return false">
Clément OUDOT's avatar
Clément OUDOT committed
88

Clément OUDOT's avatar
Clément OUDOT committed
89
    <h1 class="ui-widget-header ui-corner-all">
Clément OUDOT's avatar
Clément OUDOT committed
90
91
92
     <lang en="Values to edit" fr="Valeurs à éditer" />
    </h1>

93
   <!-- Form content -->
Yadd's avatar
Yadd committed
94
   <div id="content">
95
96

    <!-- Default text -->
Yadd's avatar
Yadd committed
97
    <div id="content_default" class="content">
Clément OUDOT's avatar
Clément OUDOT committed
98
     <lang en="No value" fr="Pas de valeur" />
Yadd's avatar
Yadd committed
99
    </div>
100
101

    <!-- Contextual text -->
Yadd's avatar
Yadd committed
102
    <div id="content_text" class="hidden">
Clément OUDOT's avatar
Clément OUDOT committed
103
     <input type="text" id="text" onchange="setlmdata(currentId,this.value)"/>
Yadd's avatar
Yadd committed
104
    </div>
105

Clément OUDOT's avatar
Clément OUDOT committed
106
    <!-- Specific to securedCookie (TODO push in _Struct.pm) -->
Yadd's avatar
Yadd committed
107
    <div id="content_securedCookie" class="hidden">
Yadd's avatar
Yadd committed
108
109
110
    <input id="securedCookie0" type="radio" name="securedCookie" value="0" onclick="setlmdata('li_L3NlY3VyZWRDb29raWU1','0')" /> <lang en="Non secured cookie" fr="Cookie non sécurisé"/><br/>
    <input id="securedCookie1" type="radio" name="securedCookie" value="1" onclick="setlmdata('li_L3NlY3VyZWRDb29raWU1','1')" /> <lang en="Secured cookie (HTTPS)" fr="Cookie sécurisé (HTTPS)"/><br/>
    <input id="securedCookie2" type="radio" name="securedCookie" value="2" onclick="setlmdata('li_L3NlY3VyZWRDb29raWU1','2')" /> Double cookie (HTTP and HTTPS)<br/>
Yadd's avatar
Yadd committed
111
    </div>
112

Yadd's avatar
Yadd committed
113
114
115
    <div id="content_int" class="hidden">
    <input type="text" id="int" onchange="setlmdata(currentId,this.value)"/>
    </div>
116

Yadd's avatar
Yadd committed
117
118
119
120
121
    <div id="content_bool" class="hidden">
    <input id="On" type="radio" name="boolean" value="1" onclick="setlmdata(currentId,1)"/> <lang en="On" fr="Activé"/>
    <input id="Off" type="radio" name="boolean" value="0" onclick="setlmdata(currentId,0)"/> <lang en="Off" fr="Désactivé"/>
    </div>

Yadd's avatar
Yadd committed
122
123
124
    <div id="content_btext" class="hidden">
    <input type="text" id="btextKey" onchange="setlmtext(currentId,this.value)"/> <input type="text" id="btextValue" onchange="setlmdata(currentId,this.value)"/>
    </div>
125

Yadd's avatar
Yadd committed
126
127
128
    <div id="content_rules" class="hidden">
    <textarea id="rulKey" cols="30" rows="2" onchange="setlmtext(currentId,this.value)"></textarea>&nbsp;<textarea id="rulValue" cols="50" rows="2" onchange="setlmdata(currentId,this.value)"></textarea>
    </div>
129

130
131
132
133
    <div id="content_authParams" class="hidden">
    <input type="text" id="authText" onchange="reloadAuthParams()"/>
    </div>

Yadd's avatar
Yadd committed
134
   </div>
Clément OUDOT's avatar
Clément OUDOT committed
135
136
  </form>
  </div>
Clément OUDOT's avatar
Clément OUDOT committed
137
138
139
140
141

</div>

</div>

Clément OUDOT's avatar
Clément OUDOT committed
142
143
<div id="help" class="ui-widget ui-corner-all">
  <h1 class="ui-widget-header ui-corner-all"><lang en="Help" fr="Aide"/></h1>
144

Clément OUDOT's avatar
Clément OUDOT committed
145
  <div id="help_content" class="ui-widget-content">
146
  <!-- AJAX content -->
Clément OUDOT's avatar
Clément OUDOT committed
147
     <lang en="Click on the configuration tree to edit parameters" fr="Cliquer sur l'arbre de configuration pour éditer les paramètres" />
Yadd's avatar
Yadd committed
148
  </div>
149
150
151

</div>

Yadd's avatar
Yadd committed
152
153
</body>
</html>