Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBS-3803: Store the old barcode in edit barcode edits
- Loading branch information
Oliver Charles
committed
Jun 12, 2012
1 parent
ad52de5
commit ba11b61
Showing
4 changed files
with
80 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
[% PROCESS 'edit/details/macros.tt' %] | ||
<table class="details edit-barcodes"> | ||
[% FOR submission=edit.display_data.submissions %] | ||
<tr> | ||
<th>[% l('Release:') %]</th> | ||
<td>[% descriptive_link(submission.release) %]</td> | ||
</tr> | ||
<tr> | ||
<th>[% l('Barcode:') %]</th> | ||
<td>[% submission.barcode | html %]</td> | ||
<td colspan="2">[% descriptive_link(submission.release) %]</td> | ||
</tr> | ||
[% IF !submission.exists('old_barcode') %] | ||
<tr> | ||
<th>[% l('Barcode:') %]</th> | ||
<td colspan="2">[% submission.barcode | html %]</td> | ||
</tr> | ||
[% ELSE %] | ||
[% display_diff(l('Barcode:'), submission.old_barcode.format, submission.new_barcode.format) %] | ||
[% END %] | ||
[% END %] | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters