<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,7 +37,21 @@
             array('class' =&gt; 'add', 'escape' =&gt; false)); ?&gt;
     &lt;/li&gt;
     &lt;li class=&quot;main_sidebar category_sidebar&quot;&gt;
-        &lt;?php echo $form-&gt;input('category_id', array('type' =&gt; 'select', 'options' =&gt; $categories, 'label' =&gt; __('Category', true), 'empty' =&gt; '(no category)', 'value' =&gt; $categoryId)); ?&gt;
+        &lt;h4&gt;&lt;?php __('Category'); ?&gt;&lt;/h4&gt;
+        &lt;?php if (empty($this-&gt;data['Category'])): ?&gt;
+            &lt;span&gt;Not assigned under any categories.&lt;/span&gt;
+        &lt;?php else: ?&gt;
+        &lt;ul&gt;
+        &lt;?php foreach ($this-&gt;data['Category'] as $category): ?&gt;
+            &lt;li&gt;&lt;?php echo $category['name']; ?&gt;&lt;/li&gt;
+        &lt;?php endforeach; ?&gt;
+        &lt;/ul&gt;
+        &lt;?php endif; ?&gt;
+        
+        &lt;?php 
+            echo $form-&gt;input('category_id', array('type' =&gt; 'select', 'options' =&gt; $categories, 'label' =&gt; false, 'empty' =&gt; __('select a category...', true), 'value' =&gt; $categoryId)); 
+            echo $form-&gt;submit('Assign');
+        ?&gt;
     &lt;/li&gt;
     &lt;li class=&quot;main_sidebar&quot;&gt;
         &lt;ul class=&quot;sidebar-menu-alt edit-sections-menu&quot;&gt;</diff>
      <filename>wildflower/views/posts/admin_edit.ctp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6e187640cc91dd2652362a7974d1a737d44ea15a</id>
    </parent>
  </parents>
  <author>
    <name>klevo</name>
    <email>klevo@klevo.sk</email>
  </author>
  <url>http://github.com/klevo/wildflower/commit/15a5a779325af9053dbc0381406c6f8d6501835c</url>
  <id>15a5a779325af9053dbc0381406c6f8d6501835c</id>
  <committed-date>2009-10-15T15:10:48-07:00</committed-date>
  <authored-date>2009-10-15T15:10:48-07:00</authored-date>
  <message>Post category assigning rf</message>
  <tree>3bcc79a67400283a754c5e8ad358af06ce997fba</tree>
  <committer>
    <name>klevo</name>
    <email>klevo@klevo.sk</email>
  </committer>
</commit>
