summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-server/ipa-gui/ipagui/templates')
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/groupindex.kid18
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/grouplayout.kid22
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/login.kid112
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/master.kid48
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/resindex.kid18
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/reslayout.kid22
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/useredit.kid13
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/userform.kid125
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/userlayout.kid22
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/userlist.kid26
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/usernew.kid13
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/usershow.kid50
-rw-r--r--ipa-server/ipa-gui/ipagui/templates/welcome.kid18
13 files changed, 507 insertions, 0 deletions
diff --git a/ipa-server/ipa-gui/ipagui/templates/groupindex.kid b/ipa-server/ipa-gui/ipagui/templates/groupindex.kid
new file mode 100644
index 000000000..0bb70ac9a
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/groupindex.kid
@@ -0,0 +1,18 @@
+<!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="'grouplayout.kid'">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<title>Group Listing</title>
+</head>
+<body>
+ Groups go here.
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+</body>
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/grouplayout.kid b/ipa-server/ipa-gui/ipagui/templates/grouplayout.kid
new file mode 100644
index 000000000..af05a8082
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/grouplayout.kid
@@ -0,0 +1,22 @@
+<!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="'master.kid'">
+<head>
+</head>
+
+<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
+ <div id="main_content">
+ <div id="status_block" class="flash" py:if="value_of('tg_flash', None)" py:content="tg_flash"></div>
+
+ <div py:replace="[item.text]+item[:]"></div>
+ </div>
+
+ <div id="sidebar">
+ <h2>Tools</h2>
+ <a href="${tg.url('/groupindex')}">Add Group</a><br/>
+ <a href="${tg.url('/groupindex')}">Find Group</a><br/>
+ <a href="${tg.url('/groupindex')}">List Groups</a><br/>
+ </div>
+</body>
+
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/login.kid b/ipa-server/ipa-gui/ipagui/templates/login.kid
new file mode 100644
index 000000000..a819cfc7a
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/login.kid
@@ -0,0 +1,112 @@
+<!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#">
+
+<head>
+ <meta content="text/html; charset=UTF-8"
+ http-equiv="content-type" py:replace="''"/>
+ <title>Login</title>
+ <style type="text/css">
+ #loginBox
+ {
+ width: 30%;
+ margin: auto;
+ margin-top: 10%;
+ padding-left: 10%;
+ padding-right: 10%;
+ padding-top: 5%;
+ padding-bottom: 5%;
+ font-family: verdana;
+ font-size: 10px;
+ background-color: #eee;
+ border: 2px solid #ccc;
+ }
+
+ #loginBox h1
+ {
+ font-size: 42px;
+ font-family: "Trebuchet MS";
+ margin: 0;
+ color: #ddd;
+ }
+
+ #loginBox p
+ {
+ position: relative;
+ top: -1.5em;
+ padding-left: 4em;
+ font-size: 12px;
+ margin: 0;
+ color: #666;
+ }
+
+ #loginBox table
+ {
+ table-layout: fixed;
+ border-spacing: 0;
+ width: 100%;
+ }
+
+ #loginBox td.label
+ {
+ width: 33%;
+ text-align: right;
+ }
+
+ #loginBox td.field
+ {
+ width: 66%;
+ }
+
+ #loginBox td.field input
+ {
+ width: 100%;
+ }
+
+ #loginBox td.buttons
+ {
+ text-align: right;
+ }
+
+ </style>
+</head>
+
+<body>
+ <div id="loginBox">
+ <h1>Login</h1>
+ <p>${message}</p>
+ <form action="${previous_url}" method="POST">
+ <table>
+ <tr>
+ <td class="label">
+ <label for="user_name">User Name:</label>
+ </td>
+ <td class="field">
+ <input type="text" id="user_name" name="user_name"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="label">
+ <label for="password">Password:</label>
+ </td>
+ <td class="field">
+ <input type="password" id="password" name="password"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" class="buttons">
+ <input type="submit" name="login" value="Login"/>
+ </td>
+ </tr>
+ </table>
+
+ <input py:if="forward_url" type="hidden" name="forward_url"
+ value="${forward_url}"/>
+
+ <input py:for="name,value in original_parameters.items()"
+ type="hidden" name="${name}" value="${value}"/>
+ </form>
+ </div>
+</body>
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/master.kid b/ipa-server/ipa-gui/ipagui/templates/master.kid
new file mode 100644
index 000000000..464560d26
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/master.kid
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?python import sitetemplate ?>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="sitetemplate">
+
+<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
+ <title py:replace="''">Your title goes here</title>
+ <meta py:replace="item[:]"/>
+ <style type="text/css" media="screen">
+ @import "${tg.url('/static/css/style.css')}";
+ </style>
+</head>
+
+<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
+ <div py:if="tg.config('identity.on') and not defined('logging_in')" id="pageLogin">
+ <span py:if="tg.identity.anonymous">
+ <a href="${tg.url('/login')}">Login</a>
+ </span>
+ <span py:if="not tg.identity.anonymous">
+ Welcome ${tg.identity.user.display_name}.
+ <a href="${tg.url('/logout')}">Logout</a>
+ </span>
+ </div>
+
+ <div id="page">
+ <div id="header">
+ <h1>Free IPA</h1>
+ </div>
+
+ <div id="nav">
+ <ul>
+ <li><a href="${tg.url('/userindex')}">Users</a></li>
+ <li><a href="${tg.url('/groupindex')}">Groups</a></li>
+ <li><a href="${tg.url('/resindex')}">Resources</a></li>
+ </ul>
+ </div>
+
+ <div py:replace="[item.text]+item[:]"></div>
+
+
+ <div id="footer">
+ This is the footer
+ </div>
+ </div>
+
+</body>
+
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/resindex.kid b/ipa-server/ipa-gui/ipagui/templates/resindex.kid
new file mode 100644
index 000000000..5cd06f7eb
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/resindex.kid
@@ -0,0 +1,18 @@
+<!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="'reslayout.kid'">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<title>Resource Listing</title>
+</head>
+<body>
+ Resources go here.
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+ <br />
+</body>
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/reslayout.kid b/ipa-server/ipa-gui/ipagui/templates/reslayout.kid
new file mode 100644
index 000000000..5b9b35c12
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/reslayout.kid
@@ -0,0 +1,22 @@
+<!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="'master.kid'">
+<head>
+</head>
+
+<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
+ <div id="main_content">
+ <div id="status_block" class="flash" py:if="value_of('tg_flash', None)" py:content="tg_flash"></div>
+
+ <div py:replace="[item.text]+item[:]"></div>
+ </div>
+
+ <div id="sidebar">
+ <h2>Tools</h2>
+ <a href="${tg.url('/resindex')}">Add Resource</a><br/>
+ <a href="${tg.url('/resindex')}">Find Resource</a><br/>
+ <a href="${tg.url('/resindex')}">List Resources</a><br/>
+ </div>
+</body>
+
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/useredit.kid b/ipa-server/ipa-gui/ipagui/templates/useredit.kid
new file mode 100644
index 000000000..781ff7ff1
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/useredit.kid
@@ -0,0 +1,13 @@
+<!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="'userlayout.kid'">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<title>Edit a Person</title>
+</head>
+<body>
+ <h2>Edit User</h2>
+
+ ${form.display(action="userupdate", value=user)}
+</body>
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/userform.kid b/ipa-server/ipa-gui/ipagui/templates/userform.kid
new file mode 100644
index 000000000..dd852865a
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/userform.kid
@@ -0,0 +1,125 @@
+<div xmlns:py="http://purl.org/kid/ns#"
+ class="simpleroster">
+ <form action="${action}" name="${name}" method="${method}" class="tableform">
+
+ <div class="formsection">Account Details</div>
+ <table class="formtable" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <th>
+ <label class="fieldlabel" for="${user.uid.field_id}"
+ py:content="user.uid.label" />
+ </th>
+ <td>
+ <span py:replace="user.uid.display(value_for(user.uid))" />
+ <span py:if="tg.errors.get('uid')" class="fielderror"
+ py:content="tg.errors.get('uid')" />
+ </td>
+ </tr>
+
+<!-- <tr>
+ <th>
+ <label class="fieldlabel" for="${user.userPassword.field_id}"
+ py:content="user.userPassword.label" />
+ </th>
+ <td>
+ <span py:replace="user.userPassword.display(value_for(user.userPassword))" />
+ <span py:if="tg.errors.get('userPassword')" class="fielderror"
+ py:content="tg.errors.get('userPassword')" />
+ </td>
+ </tr> -->
+
+ <tr>
+ <th>
+ <label class="fieldlabel" for="${user.uidNumber.field_id}"
+ py:content="user.uidNumber.label" />
+ </th>
+ <td>
+ <span py:replace="user.uidNumber.display(value_for(user.uidNumber))" />
+ <span py:if="tg.errors.get('uidNumber')" class="fielderror"
+ py:content="tg.errors.get('uidNumber')" />
+ </td>
+ </tr>
+
+ <tr>
+ <th>
+ <label class="fieldlabel" for="${user.gidNumber.field_id}"
+ py:content="user.gidNumber.label" />
+ </th>
+ <td>
+ <span py:replace="user.gidNumber.display(value_for(user.gidNumber))" />
+ <span py:if="tg.errors.get('gidNumber')" class="fielderror"
+ py:content="tg.errors.get('gidNumber')" />
+ </td>
+ </tr>
+ </table>
+
+ <div class="formsection">Identity Details</div>
+ <table class="formtable" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <th>
+ <label class="fieldlabel" for="${user.givenName.field_id}"
+ py:content="user.givenName.label" />
+ </th>
+ <td>
+ <span py:replace="user.givenName.display(value_for(user.givenName))" />
+ <span py:if="tg.errors.get('givenName')" class="fielderror"
+ py:content="tg.errors.get('givenName')" />
+
+ </td>
+ </tr>
+
+ <tr>
+ <th>
+ <label class="fieldlabel" for="${user.sn.field_id}"
+ py:content="user.sn.label" />
+ </th>
+ <td>
+ <span py:replace="user.sn.display(value_for(user.sn))" />
+ <span py:if="tg.errors.get('sn')" class="fielderror"
+ py:content="tg.errors.get('sn')" />
+ </td>
+ </tr>
+ </table>
+
+ <div class="formsection">Contact Details</div>
+ <table class="formtable" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <th>
+ <label class="fieldlabel" for="${user.mail.field_id}"
+ py:content="user.mail.label" />
+ </th>
+ <td>
+ <span py:replace="user.mail.display(value_for(user.mail))" />
+ <span py:if="tg.errors.get('mail')" class="fielderror"
+ py:content="tg.errors.get('mail')" />
+ </td>
+ </tr>
+ <tr>
+ <th>
+ <label class="fieldlabel" for="${user.telephoneNumber.field_id}"
+ py:content="user.telephoneNumber.label" />
+ </th>
+ <td>
+ <span py:replace="user.telephoneNumber.display(value_for(user.telephoneNumber))" />
+ <span py:if="tg.errors.get('telephoneNumber')" class="fielderror"
+ py:content="tg.errors.get('telephoneNumber')" />
+ </td>
+ </tr>
+ </table>
+
+ <table class="formtable" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <th>
+ <br />
+ <input type="submit" class="submitbutton" name="submit" value="Submit"/>
+ </th>
+ <td>
+ <br />
+ <input type="submit" class="submitbutton" name="submit" value="Cancel" />
+ </td>
+ <td></td>
+ </tr>
+ </table>
+
+ </form>
+</div>
diff --git a/ipa-server/ipa-gui/ipagui/templates/userlayout.kid b/ipa-server/ipa-gui/ipagui/templates/userlayout.kid
new file mode 100644
index 000000000..40ddcca39
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/userlayout.kid
@@ -0,0 +1,22 @@
+<!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="'master.kid'">
+<head>
+</head>
+
+<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
+ <div id="main_content">
+ <div id="status_block" class="flash" py:if="value_of('tg_flash', None)" py:content="tg_flash"></div>
+
+ <div py:replace="[item.text]+item[:]"></div>
+ </div>
+
+ <div id="sidebar">
+ <h2>Tools</h2>
+ <a href="${tg.url('/usernew')}">Add Person</a><br/>
+ <a href="${tg.url('/userindex')}">Find People</a><br/>
+ <a href="${tg.url('/userlist')}">List People</a><br/>
+ </div>
+</body>
+
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/userlist.kid b/ipa-server/ipa-gui/ipagui/templates/userlist.kid
new file mode 100644
index 000000000..7b5667fb5
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/userlist.kid
@@ -0,0 +1,26 @@
+<!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="'userlayout.kid'">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<title>User Listing</title>
+</head>
+<body>
+ <fieldset>
+ <legend>People List</legend>
+ <div>
+ Page:
+ <span py:for="page in tg.paginate.pages">
+ <a py:if="page != tg.paginate.current_page"
+ href="${tg.paginate.get_href(page)}">${page}</a>
+ <b py:if="page == tg.paginate.current_page">${page}</b>
+ </span>
+ <p/>
+ <span py:for="user in users">
+ <a href="${tg.url('/usershow',uid=user.uid)}">${user.cn}</a>
+ <br/>
+ </span>
+ </div>
+ </fieldset>
+</body>
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/usernew.kid b/ipa-server/ipa-gui/ipagui/templates/usernew.kid
new file mode 100644
index 000000000..84b6029ae
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/usernew.kid
@@ -0,0 +1,13 @@
+<!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="'userlayout.kid'">
+<head>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+ <title>Add a Person</title>
+</head>
+<body>
+ <h2>Add New User</h2>
+
+ ${form.display(action="usercreate")}
+</body>
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/usershow.kid b/ipa-server/ipa-gui/ipagui/templates/usershow.kid
new file mode 100644
index 000000000..7fea76dbd
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/usershow.kid
@@ -0,0 +1,50 @@
+<!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="'userlayout.kid'">
+<head>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+ <title>View a Person</title>
+</head>
+<body>
+ <h2>View User</h2>
+
+ <div class="formsection">Account Details</div>
+ <table class="formtable" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <th>User ID:</th>
+ <td>${user.get("uid")}</td>
+ </tr>
+ <tr>
+ <th>UID:</th>
+ <td>${user.get("uidNumber")}</td>
+ </tr>
+ <tr>
+ <th>GID:</th>
+ <td>${user.get("gidNumber")}</td>
+ </tr>
+ </table>
+
+ <div class="formsection">Identity Details</div>
+ <table class="formtable" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <th>Full Name:</th>
+ <td>${user.get("givenName")} ${user.get("sn")}</td>
+ </tr>
+ </table>
+
+ <div class="formsection">Contact Details</div>
+ <table class="formtable" cellpadding="2" cellspacing="0" border="0">
+ <tr>
+ <th>Email:</th>
+ <td>${user.get("mail")}</td>
+ </tr>
+ <tr>
+ <th>Telephone:</th>
+ <td>${user.get("telephoneNumber")}</td>
+ </tr>
+ </table>
+
+ <a href="${tg.url('/useredit', uid=user.get('uid'))}">edit</a>
+
+</body>
+</html>
diff --git a/ipa-server/ipa-gui/ipagui/templates/welcome.kid b/ipa-server/ipa-gui/ipagui/templates/welcome.kid
new file mode 100644
index 000000000..dc08c0b32
--- /dev/null
+++ b/ipa-server/ipa-gui/ipagui/templates/welcome.kid
@@ -0,0 +1,18 @@
+<!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="'master.kid'">
+<head>
+<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
+<title>Welcome</title>
+</head>
+<body>
+ <div id="sidebar">
+ <h2>Tools</h2>
+ </div>
+ <div id="main_content">
+ <div id="status_block" class="flash" py:if="value_of('tg_flash', None)" py:content="tg_flash"></div>
+ <h1>Welcome to Free IPA</h1>
+ </div>
+
+</body>
+</html>