[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-203-gc73df98

Thomas Sibley trs at bestpractical.com
Wed Aug 4 10:07:11 EDT 2010


The branch, 3.9-trunk has been updated
       via  c73df98e53258766f25ae49fee44c9176037d484 (commit)
      from  dfe8018c8af543ab3b4399195810c7f2eaacbd0e (commit)

Summary of changes:
 share/html/Ticket/Elements/AddAttachments |   14 ++++++++++++++
 share/html/Ticket/Update.html             |   14 +-------------
 2 files changed, 15 insertions(+), 13 deletions(-)
 create mode 100644 share/html/Ticket/Elements/AddAttachments

- Log -----------------------------------------------------------------
commit c73df98e53258766f25ae49fee44c9176037d484
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Aug 4 10:08:52 2010 -0400

    Refactor the add attachment widget into it's own component

diff --git a/share/html/Ticket/Elements/AddAttachments b/share/html/Ticket/Elements/AddAttachments
new file mode 100644
index 0000000..8e79918
--- /dev/null
+++ b/share/html/Ticket/Elements/AddAttachments
@@ -0,0 +1,14 @@
+% if (exists $session{'Attachments'}) {
+<tr><td class="label"><&|/l&>Attached file</&>:</td>
+<td>
+<&|/l&>Check box to delete</&><br />
+% foreach my $attach_name (keys %{$session{'Attachments'}}) {
+<input type="checkbox" class="checkbox" name="DeleteAttach-<%$attach_name%>" value="1" /><%$attach_name%><br />
+% } # end of foreach
+</td>
+</tr>
+% } # end of if
+
+<tr><td class="label"><&|/l&>Attach</&>:</td><td><input name="Attach" type="file" /><input type="submit" class="button" name="AddMoreAttach" value="<&|/l&>Add More Files</&>" /><input type="hidden" class="hidden" name="UpdateAttach" value="1" />
+</td></tr>
+
diff --git a/share/html/Ticket/Update.html b/share/html/Ticket/Update.html
index dac9430..7ea7475 100755
--- a/share/html/Ticket/Update.html
+++ b/share/html/Ticket/Update.html
@@ -108,19 +108,7 @@
 
 <& /Ticket/Elements/EditTransactionCustomFields, %ARGS, TicketObj => $TicketObj &>
 
-% if (exists $session{'Attachments'}) {
-<tr><td><&|/l&>Attached file</&>:</td>
-<td>
-<&|/l&>Check box to delete</&><br />
-% foreach my $attach_name (keys %{$session{'Attachments'}}) {
-<input type="checkbox" class="checkbox" name="DeleteAttach-<%$attach_name%>" value="1" /><%$attach_name%><br />
-% } # end of foreach
-</td>
-</tr>
-% } # end of if
-
-<tr><td class="label"><&|/l&>Attach</&>:</td><td><input name="Attach" type="file" /><input type="submit" class="button" name="AddMoreAttach" value="<&|/l&>Add More Files</&>" /><input type="hidden" class="hidden" name="UpdateAttach" value="1" />
-</td></tr>
+<& /Ticket/Elements/AddAttachments, %ARGS, TicketObj => $TicketObj &>
 
 % if ( $gnupg_widget ) {
 <tr><td>&nbsp;</td><td>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list