r10413 - mb_server/branches/TemplateToolkit/root/track

View: New views
1 Messages — Rating Filter:   Alert me  

r10413 - mb_server/branches/TemplateToolkit/root/track

by root-97 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Author: acid2
Date: 2008-10-02 11:37:02 +0000 (Thu, 02 Oct 2008)
New Revision: 10413

Modified:
   mb_server/branches/TemplateToolkit/root/track/edit.tt
Log:
Fix up the edit track form to display using the form templating system

Modified: mb_server/branches/TemplateToolkit/root/track/edit.tt
===================================================================
--- mb_server/branches/TemplateToolkit/root/track/edit.tt 2008-10-02 11:36:47 UTC (rev 10412)
+++ mb_server/branches/TemplateToolkit/root/track/edit.tt 2008-10-02 11:37:02 UTC (rev 10413)
@@ -2,23 +2,7 @@
 [% WRAPPER 'components/box.tt' header="Edit track number, name and duration" %]
 
 [% WRAPPER 'forms/form.tt' %]
-  [% IF form.has_error %]
-  <ul>
-    [% FOREACH bad_field=form.error_fields %]
-      [% FOREACH error=bad_field.errors %]
-        <li>[% "${bad_field.name}: ${error}" %]</li>
-      [% END %]
-    [% END %]
-  </ul>
-  [% END %]
-
-  <p>
-  <label>New:</label>
-  [% INCLUDE 'forms/input.tt' widget=form.field('number') %]
-  [% INCLUDE 'forms/input.tt' widget=form.field('name') %]
-  [% INCLUDE 'forms/input.tt' widget=form.field('duration') %]
-  </p>
-
+  [% INCLUDE 'forms/widget.tt' widget=form.field('track') label="Track:" %]
   [% INCLUDE 'forms/edit-note.tt' %]
   [% INCLUDE 'forms/submit.tt' label="Save edit" %]
 [% END %]


_______________________________________________
MusicBrainz-commits mailing list
MusicBrainz-commits@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-commits
LightInTheBox - Buy quality products at wholesale price!
 
Creative Commons EFF GPL LGPL
Original Design|vacubomb.com Contact Details Server Version: RELEASE-20060712