Author: weaverryan
Date: 2010-02-07 17:32:25 +0100 (Sun, 07 Feb 2010)
New Revision: 27644

Added:
   
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_comment_form.php
Modified:
   
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_for_content.php
Log:
[1.4][sfSympalCommentsPlugin][1.0] Removing a very generic dom id attribute. 
Moving the form itself into a partial so that it can be overridden more easily. 
Activating i18n on some text (more needed but this isn't my strong point).


Added: 
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_comment_form.php
===================================================================
--- 
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_comment_form.php
                             (rev 0)
+++ 
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_comment_form.php
     2010-02-07 16:32:25 UTC (rev 27644)
@@ -0,0 +1,7 @@
+<?php echo $form->renderFormTag(url_for('@sympal_create_comment')) ?>
+  <input type="hidden" name="from_url" value="<?php echo 
$sf_request->getParameter('from_url', $sf_request->getUri()) ?>" />
+  <table id="comments_form">
+    <?php echo $form; ?>
+  </table>
+  <input type="submit" name="save_comment" value="Save Comment" />
+</form>
\ No newline at end of file

Modified: 
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_for_content.php
===================================================================
--- 
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_for_content.php
      2010-02-07 16:30:49 UTC (rev 27643)
+++ 
plugins/sfSympalCommentsPlugin/branches/1.4/modules/sympal_comments/templates/_for_content.php
      2010-02-07 16:32:25 UTC (rev 27644)
@@ -26,21 +26,19 @@
       <?php endforeach; ?>
     </ul>
   <?php else: ?>
-    <h3>No Comments Created. Be the first to <a href="#form">comment</a>.</h3>
+    <h3>No Comments Created. Be the first to <a 
href="#comments_form">comment</a>.</h3>
   <?php endif; ?>
 </div>
 
-<?php if (($sf_user->isAuthenticated() || 
!sfSympalConfig::get('sfSympalCommentsPlugin', 'requires_auth'))): ?>
-  <?php echo $form->renderFormTag(url_for('@sympal_create_comment')) ?>
-    <input type="hidden" name="from_url" value="<?php echo 
$sf_request->getParameter('from_url', $sf_request->getUri()) ?>" />
-    <table id="form">
-      <?php echo $form; ?>
-    </table>
-    <input type="submit" name="save_comment" value="Save Comment" />
-  </form>
+<?php if ($sf_user->isAuthenticated() || 
!sfSympalConfig::get('sfSympalCommentsPlugin', 'requires_auth')): ?>
+  <?php include_partial('sympal_comments/comment_form', array('form' => 
$form)); ?>
 <?php else: ?>
-  <div class="notice">
-  You must <?php echo link_to('signin', '@sympal_signin') ?> to post comments.
-  If you don't already have an account then you can <?php echo 
link_to('register', '@sympal_register') ?>.
+  <div class="notice">    
+    <?php echo __('You must %1% to post comments.', array(
+      '%1%' => link_to('signin', '@sympal_signin')
+    )) ?>
+    <?php echo __('If you don\'t already have an account then you can %1%', 
array(
+      '%1%' => link_to('register', '@sympal_register')
+    )) ?>
   </div>
 <?php endif; ?>

-- 
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