diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-04 19:48:02 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-01-04 19:48:02 -0700 |
commit | 026860bd5652286af64a82d3d52582701af44c0b (patch) | |
tree | 93a8ee34fa4dc8d2815481507e91b5d86eabbc55 /ipawebui/templates | |
parent | 5c47261df596cc67410eb11db15bf0f8543e516f (diff) | |
download | freeipa-026860bd5652286af64a82d3d52582701af44c0b.tar.gz freeipa-026860bd5652286af64a82d3d52582701af44c0b.tar.xz freeipa-026860bd5652286af64a82d3d52582701af44c0b.zip |
Renamed ipa_webui/ to ipawebui/ and tests/test_ipa_webui/ to tests/test_ipawebui
Diffstat (limited to 'ipawebui/templates')
-rw-r--r-- | ipawebui/templates/__init__.py | 21 | ||||
-rw-r--r-- | ipawebui/templates/form.kid | 16 | ||||
-rw-r--r-- | ipawebui/templates/main.kid | 14 |
3 files changed, 51 insertions, 0 deletions
diff --git a/ipawebui/templates/__init__.py b/ipawebui/templates/__init__.py new file mode 100644 index 00000000..10d4cf8c --- /dev/null +++ b/ipawebui/templates/__init__.py @@ -0,0 +1,21 @@ +# Authors: Jason Gerard DeRose <jderose@redhat.com> +# +# Copyright (C) 2008 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 + +""" +Sub-package containing Kid templates. +""" diff --git a/ipawebui/templates/form.kid b/ipawebui/templates/form.kid new file mode 100644 index 00000000..64015700 --- /dev/null +++ b/ipawebui/templates/form.kid @@ -0,0 +1,16 @@ +<?xml version='1.0' encoding='utf-8'?> +<html xmlns:py="http://purl.org/kid/ns#"> + +<head> + <title>Hello</title> +</head> + +<body> + <table> + <tr py:for="param in command.params()"> + <td py:content="param.name"/> + </tr> + </table> +</body> + +</html> diff --git a/ipawebui/templates/main.kid b/ipawebui/templates/main.kid new file mode 100644 index 00000000..692f2b57 --- /dev/null +++ b/ipawebui/templates/main.kid @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='utf-8'?> +<html xmlns:py="http://purl.org/kid/ns#"> + +<head> + <title>FreeIPA</title> +</head> + +<body> + <p py:for="name in api.Command"> + <a href="${name}" py:content="name"/> + </p> +</body> + +</html> |