Author: tkoomzaaskz
Date: 2010-02-21 18:13:53 +0100 (Sun, 21 Feb 2010)
New Revision: 28165

Modified:
   
plugins/tdAudioPlugin/trunk/lib/form/doctrine/PlugintdTrackAlbumForm.class.php
   plugins/tdAudioPlugin/trunk/package.xml
   plugins/tdAudioPlugin/trunk/web/css/td_audio.css
Log:
[td][audio] release 0.1.4 - updated css to use background images, updated form 
to handle embedded relation form

Modified: 
plugins/tdAudioPlugin/trunk/lib/form/doctrine/PlugintdTrackAlbumForm.class.php
===================================================================
--- 
plugins/tdAudioPlugin/trunk/lib/form/doctrine/PlugintdTrackAlbumForm.class.php  
    2010-02-21 17:12:34 UTC (rev 28164)
+++ 
plugins/tdAudioPlugin/trunk/lib/form/doctrine/PlugintdTrackAlbumForm.class.php  
    2010-02-21 17:13:53 UTC (rev 28165)
@@ -13,27 +13,14 @@
   public function setup()
   {
     parent::setup();
-
     $this->removeFields();
-
     $this->manageWidgets();
-
     $this->manageValidators();
-
     $this->embedRelation('Tracks');
 
     $new_track_form = new tdTrackForm();
     $new_track_form->setDefault('td_track_album_id', $this->object->id);
     $this->embedForm('new', $new_track_form);
-
-//    $this->setValidator('author',
-//      new sfValidatorString(array(), array('required' => 'Musisz podać 
autora wpisu.')));
-//
-//    $this->setValidator('text',
-//      new sfValidatorString(array(), array('required' => 'Musisz podać treść 
wpisu.')));
-//
-//    $this->setValidator('email',
-//      new sfValidatorEmail(array('required' => false), array('invalid' => 
'Musisz podać poprawny adres E-mail')));
   }
 
   protected function removeFields()
@@ -68,11 +55,16 @@
     ), array(
       'required' => 'Musisz wybrać plik',
     )));
+
+//    $this->setValidator('text',
+//      new sfValidatorString(array(), array('required' => 'Musisz podać treść 
wpisu.')));
+//
+//    $this->setValidator('email',
+//      new sfValidatorEmail(array('required' => false), array('invalid' => 
'Musisz podać poprawny adres E-mail')));
   }
 
   protected function doBind(array $values)
   {
-//    var_dump($values['new']); exit;
     if ($this->isValid()
             && '' === trim($values['new']['file']['name'])
             && '' === trim($values['new']['title'])
@@ -84,11 +76,11 @@
 
     if (isset($values['Tracks']))
     {
-      foreach ($values['Tracks'] as $i => $bookmarkValues)
+      foreach ($values['Tracks'] as $i => $trackValues)
       {
-        if (isset($bookmarkValues['delete']) && $bookmarkValues['id'])
+        if (isset($trackValues['delete']) && $trackValues['id'])
         {
-          $this->scheduledForDeletion[$i] = $bookmarkValues['id'];
+          $this->scheduledForDeletion[$i] = $trackValues['id'];
         }
       }
     }
@@ -141,7 +133,7 @@
     {
       if ($form instanceof sfFormObject)
       {
-        if (!in_array($form->getObject()->getId(), 
$this->scheduledForDeletion))
+        if (!isset($this->scheduledForDeletion) || 
!in_array($form->getObject()->getId(), $this->scheduledForDeletion))
         {
           $form->saveEmbeddedForms($con);
           $form->getObject()->save($con);

Modified: plugins/tdAudioPlugin/trunk/package.xml
===================================================================
--- plugins/tdAudioPlugin/trunk/package.xml     2010-02-21 17:12:34 UTC (rev 
28164)
+++ plugins/tdAudioPlugin/trunk/package.xml     2010-02-21 17:13:53 UTC (rev 
28165)
@@ -10,7 +10,7 @@
   <email>[email protected]</email>
   <active>yes</active>
  </lead>
- <date>2010-02-08</date>
+ <date>2010-02-21</date>
  <time>11:00:00</time>
  <version>
    <release>0.1.4</release>
@@ -86,6 +86,18 @@
      </dir>
 
      <dir name="modules">
+       <dir name="tdSampleAudio">
+         <dir name="actions">
+           <file name="actions.class.php" role="data" />
+         </dir>
+         <dir name="i18n">
+           <file name="td.pl.xml" role="data" />
+         </dir>
+         <dir name="templates">
+           <file name="indexSuccess.php" role="data" />
+           <file name="showSuccess.php" role="data" />
+         </dir>
+       </dir>
        <dir name="td_track_album">
          <dir name="actions">
            <file name="actions.class.php" role="data" />
@@ -102,18 +114,6 @@
          </dir>
          <dir name="templates" />
        </dir>
-       <dir name="tdSampleAudio">
-         <dir name="actions">
-           <file name="actions.class.php" role="data" />
-         </dir>
-         <dir name="i18n">
-           <file name="td.pl.xml" role="data" />
-         </dir>
-         <dir name="templates">
-           <file name="indexSuccess.php" role="data" />
-           <file name="showSuccess.php" role="data" />
-         </dir>
-       </dir>
      </dir>
 
      <dir name="web">
@@ -165,7 +165,7 @@
 
    <release>
     <version>
-     <release>0.1.3</release>
+     <release>0.1.4</release>
      <api>0.1.0</api>
     </version>
     <stability>
@@ -173,11 +173,12 @@
      <api>beta</api>
     </stability>
     <license uri="http://www.symfony-project.org/license";>MIT license</license>
-    <date>2010-02-08</date>
+    <date>2010-02-21</date>
     <license>MIT</license>
     <notes>
-     * NOT RELEASED YET
      * removed web/images directory containing sample album cover files
+     * audio list/play templates use background image
+     * model updated to handle embedded relation form
     </notes>
    </release>
 

Modified: plugins/tdAudioPlugin/trunk/web/css/td_audio.css
===================================================================
--- plugins/tdAudioPlugin/trunk/web/css/td_audio.css    2010-02-21 17:12:34 UTC 
(rev 28164)
+++ plugins/tdAudioPlugin/trunk/web/css/td_audio.css    2010-02-21 17:13:53 UTC 
(rev 28165)
@@ -6,7 +6,7 @@
     border: 1px solid #bbb;
     margin: 10px;
     padding: 5px;
-    background-color: #eee;
+    background-image: url('/images/background.jpg');
 }
 
 #audio li.list {

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to