2009-10-23 09:58:23 +00:00
|
|
|
|
[% WRAPPER layout.tt title=(create ? "New Release" : "Edit Release") %]
|
|
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
[% USE HTML %]
|
|
|
|
|
|
2009-10-23 12:42:50 +00:00
|
|
|
|
<h1>[% IF create %]New Release[% ELSE %]Release <tt>[% release.name %]</tt>[% END %]</h1>
|
2009-10-23 09:58:23 +00:00
|
|
|
|
|
2009-10-23 12:42:50 +00:00
|
|
|
|
<form action="[% IF create %][% c.uri_for('/project' project.name 'create-release/submit') %][% ELSE %][% c.uri_for('/release' project.name release.name 'submit') %][% END %]" method="post">
|
2009-10-23 09:58:23 +00:00
|
|
|
|
|
|
|
|
|
<table class="layoutTable">
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Identifier:</th>
|
|
|
|
|
<td><input type="text" class="string" name="name" [% HTML.attributes(value => release.name) %] /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Description:</th>
|
|
|
|
|
<td><input type="text" class="string" name="description" [% HTML.attributes(value => release.description) %] /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
2009-10-26 10:35:59 +00:00
|
|
|
|
<h3>Release Members</h3>
|
|
|
|
|
|
|
|
|
|
<p><button type="button" class="add-member">Add a build</button></p>
|
|
|
|
|
|
|
|
|
|
<p><em>Note:</em> to add a build to this release, you can also go to
|
|
|
|
|
the build’s information page and click on “Add to release”.</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<button type="submit"><img alt="Apply" src="/static/images/success.gif" />[%IF create %]Create[% ELSE %]Apply changes[% END %]</button>
|
|
|
|
|
[% IF !create %]
|
|
|
|
|
<button id="delete-release" type="submit" name="action" value="delete"><img alt="Delete" src="/static/images/failure.gif" />Delete this release</button>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$("#delete-release").click(function() {
|
|
|
|
|
return confirm("Are you sure you want to delete this release?");
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
[% END %]
|
|
|
|
|
</p>
|
2009-10-23 09:58:23 +00:00
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
[% END %]
|