Adding projectrequest files

This commit is contained in:
Nathan Adams
2013-07-30 19:50:05 -05:00
parent f62d20f0d1
commit 2f981e42e5
5 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
{extends "idf/gadmin/base.html"}
{block request} class="active"{/block}
{block body}
{if $createdtext}
{$createdtext}
<br/>
<br/>
{/if}
{if $errors}
{foreach $errors as $error}
{$error}
{/foreach}
{/if}
<table>
<tr>
<th>
Short Name
</th>
<th>
Description
</th>
<th>
Repotype
</th>
<th>
Submitter
</th>
<th>
Date
</th>
<th>
Approve
</th>
</tr>
{foreach $requests as $req}
<tr>
<td>
{$req.shortname}
</td>
<td>
{$req.desc}
</td>
<td>
{$req.repotype}
</td>
<td>
{$req.get_submitter.login}
</td>
<td>
{$req.creation_dtime}
</td>
<td>
<a href="{url 'IDF_Views_Admin::projectRequestCreate'}{$req.id}/">Approve</a>
</td>
</tr>
{/foreach}
</table>
{/block}

View File

@@ -0,0 +1,10 @@
Hello {$user},
You are receiving this email because you have requested a repository.
Your request for {$shortname|safe} was approved!
If you have any questions please feel free to email a member of the development team.
Yours faithfully,
The development team.

View File

@@ -0,0 +1,60 @@
{extends "idf/base-simple.html"}
{block body}
{if $form.errors}
<div class="px-message-error">
<p>{trans 'Oops, please check the errors on the form.'}</p>
{if $form.get_top_errors}
{$form.render_top_errors|unsafe}
{/if}
</div>
{/if}
{if $success}
<div>
<p>
Thank you - your request has been received and will be approved by an admin shortly.
</p>
</div>
{/if}
{if $error}
<div class="px-message-error">
{$error}
</div>
{/if}
<form method="post" action=".">
<table class="form" summary="">
<tr>
<th><strong>{$form.f.shortname.labelTag}:</strong></th>
<td>{if $form.f.shortname.errors}{$form.f.shortname.fieldErrors}{/if}
{$form.f.shortname|unsafe}<br />
<span class="helptext">{$form.f.shortname.help_text}</span>
</td>
</tr>
<tr>
<th><strong>{$form.f.repotype.labelTag}:</strong></th>
<td>{if $form.f.repotype.errors}{$form.f.repotype.fieldErrors}{/if}
{$form.f.repotype|unsafe}<br />
<span class="helptext">{$form.f.repotype.help_text}</span>
</td>
</tr>
<tr>
<th><strong>{$form.f.desc.labelTag}:</strong></th>
<td>{if $form.f.desc.errors}{$form.f.desc.fieldErrors}{/if}
{$form.f.desc|unsafe}<br />
<span class="helptext">{$form.f.desc.help_text}</span>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" value="Request Project" name="submit" /></td>
</tr>
</table>
</form>
{/block}
{block context}
{/block}