hydra/src/Hydra/root/edit-releaseset.tt

50 lines
1.7 KiB
Plaintext
Raw Normal View History

2008-11-27 21:08:17 +00:00
[% WRAPPER layout.tt title="Release Sets $curProject.name:$releaseSet.name" %]
[% PROCESS common.tt %]
[% USE HTML %]
<h1>Release Set <tt>[% curProject.name %]:[% releaseSet.name %]</tt></h1>
<form action="[% IF create %][% ELSE %][% c.uri_for('/releases' curProject.name releaseSet.name 'submit') %][% END %]" method="post">
<table class="layoutTable">
<tr>
<th>Identifier:</th>
<td><input type="text" class="string" name="name" [% HTML.attributes(value => releaseSet.name) %] /></td>
</tr>
<tr>
<th>Description:</th>
<td><input type="text" class="string" name="description" [% HTML.attributes(value => releaseSet.description) %] /></td>
</tr>
</table>
2008-11-27 21:40:23 +00:00
<table class="tablesorter">
<thead>
<tr>
<th>Primary job</th>
<th>Job name</th>
<th>Description</th>
<th>Constraint</th>
</tr>
</thead>
<tbody>
[% n = 0 %]
[% FOREACH job IN jobs %]
<tr>
<td><input type="radio" name="primary" [% IF job.isprimary %]
checked="checked" [% END %] [% HTML.attributes(value => "$n") %] /> [% n %]</td>
<td><input type="text" class="string" [% HTML.attributes(name => "job-$n-name", value => job.job) %] /></td>
<td><input type="text" class="string" [% HTML.attributes(name => "job-$n-description", value => job.description) %] /></td>
<td><input type="text" class="string" [% HTML.attributes(name => "job-$n-attrs", value => job.attrs) %] /></td>
</tr>
[% n = n + 1 %]
[% END %]
</tbody>
</table>
2008-11-27 21:08:17 +00:00
<p><button type="submit"><img src="/static/images/success.gif" />[%IF create %]Create[% ELSE %]Apply changes[% END %]</button></p>
</form>
[% END %]