mirror-management/mirrors/templates login.kid, NONE, 1.1 master.kid, NONE, 1.1 register.kid, NONE, 1.1 welcome.kid, NONE, 1.1
Farshad Khoshkhui (farshad)
fedora-extras-commits at redhat.com
Tue Jan 2 08:32:37 UTC 2007
Author: farshad
Update of /cvs/fedora/mirror-management/mirrors/templates
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31057/mirrors/templates
Added Files:
login.kid master.kid register.kid welcome.kid
Log Message:
Added Rest of files
--- NEW FILE login.kid ---
<!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>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>
<br />
<p>
You can <a href="${tg.url('/register')}">register</a>
online and create a user to manage your fedora mirrors.
</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>
--- NEW FILE master.kid ---
<!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">
#pageLogin
{
font-size: 10px;
font-family: verdana;
text-align: right;
}
</style>
<style type="text/css" media="screen">
@import "/static/css/style.css";
</style>
</head>
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'" py:attrs="item.items()">
<div class="page_body">
<div id="header"></div>
<div id="menu">
<div id="welcome">
<span py:if="tg.config('identity.on',False) and not 'logging_in' in locals()">
<span py:if="not tg.identity.anonymous">
Welcome ${tg.identity.user.display_name}.
</span>
</span>
</div>
<div id="menu_links" >
<a href="${tg.url('/')}">Main</a>
<span py:if="tg.config('identity.on',False) and not 'logging_in' in locals()">
<span py:if="tg.identity.anonymous">
<a href="/login">Login</a>
</span>
<span py:if="not tg.identity.anonymous">
<a href="/logout">Logout</a>
</span>
</span>
</div>
</div>
<div py:if="tg_flash" class="notice">
<div py:if="not tg_flash.startswith('Error:')" py:replace="tg_flash" />
<div py:if="tg_flash.startswith('Error:')" py:content="tg_flash" class="error_flash">
</div>
</div>
<div id="main_content" py:content="[item.text]+item[:]"/>
<!-- End of main_content -->
<script>
elements = getElementsByTagAndClassName("a", "delete_link");
connect_func = function(element) {
connect(element, 'onclick', function (event) { if (!confirm("Are you sure?")) event.stop(); });
}
map(connect_func, elements);
</script>
<div id="footer"> <img src="/static/images/under_the_hood_blue.png" /></div>
</div>
</body>
</html>
--- NEW FILE register.kid ---
<!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>User Registeration</title>
</head>
<body>
<form action="/doRegister" method="post">
<fieldset >
<legend>Register New User</legend>
<div>
<label for="username">Username: </label>
<span><input id="username" name="username" value="${username}" /></span>
</div>
<div>
<label for="display_name">Display Name: </label>
<span><input id="display_name" name="display_name" value="${display_name}" /></span>
</div>
<div>
<label for="email_address">Email: </label>
<span><input id="email_address" name="email_address" value="${email_address}" /></span>
</div>
<div>
<label for="password1">Password: </label>
<span><input id="password1" name="password1" type="password" value="" /></span>
</div>
<div>
<label for="password2">Password(Confirm): </label>
<span><input id="password2" name="password2" type="password" value="" /></span>
</div>
<div>
<button> Add </button>
</div>
</fieldset>
</form>
</body>
</html>
--- NEW FILE welcome.kid ---
<!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 to Fedora Mirrors</title>
</head>
<body>
<div id="main_content">
<div id="getting_started">
<ul id="getting_started_steps">
<li class="getting_started">
<h3>Mirrors</h3>
<ul>
<li>
<a href="${tg.url('/mirror/myMirrors')}"> My Mirrors </a>
</li>
<li>
<a href="${tg.url('/mirror/newMirror')}"> Add New Mirror </a>
</li>
</ul>
</li>
<li class="getting_started" py:if="'admin' in tg.identity.groups">
<h3>Releases</h3>
<ul>
<li>
<a href="${tg.url('/release/listReleases')}"> List Releases </a>
</li>
<li>
<a href="${tg.url('/release/newRelease')}"> Add New Release </a>
</li>
</ul>
</li>
<li class="getting_started" py:if="'admin' in tg.identity.groups">
<h3>Architectures</h3>
<ul>
<li>
<a href="${tg.url('/arch/listArchs')}"> List Archs </a>
</li>
<li>
<a href="${tg.url('/arch/newArch')}"> Add New Arch </a>
</li>
</ul>
</li>
</ul>
</div>
<!-- End of getting_started -->
</div>
</body>
</html>
More information about the scm-commits
mailing list