Hydra/20: Jobset clone feature

This commit is contained in:
Rob Vermaas
2010-04-23 11:20:40 +00:00
parent 2ef90804c6
commit 85928a4222
3 changed files with 70 additions and 1 deletions

18
src/root/clone-jobset.tt Normal file
View File

@ -0,0 +1,18 @@
[% WRAPPER layout.tt title="Clone Jobset" %]
[% PROCESS common.tt %]
[% USE HTML %]
[% edit=1 %]
<form action="[% c.uri_for('/jobset' jobset.project.name jobset.name 'clone' 'submit') %]" method="post">
<h2>Cloning jobset [% jobset.project.name %]:[% jobset.name %]</h2>
<p>
Name <tt><input type="text" class="string" name="newjobset" [% HTML.attributes(value => "") %] /></tt>
</p>
<p>
<button type="submit">Next</button>
</p>
</form>
[% END %]

View File

@ -151,7 +151,13 @@
[% END %]
[% END %]
<div id="tabs-setup">
<h2>Information[% IF !edit %] <a class="smallLink" href="[% c.uri_for('/jobset' project.name jobset.name 'edit') %]">[Edit]</a>[% END %]</h2>
<h2>Information</h2>
[% IF !edit && c.user_exists %]
<p>
[ <a href="[% c.uri_for('/jobset' project.name jobset.name 'edit') %]">Edit</a> | <a href="[% c.uri_for('/jobset' project.name jobset.name 'clone') %]">Clone</a> ]
</p>
[% END %]
<table class="layoutTable">
[% IF edit %]