Add category and tag to pages

This commit is contained in:
Christophe Vilayphiou committed 2012-05-14 00:33:52 +08:00
1 parent e40c76bf5f
commit cf8d20dc84
6 files changed
+25 -4

No files matched your search

+3
View File
@@ -45,6 +45,9 @@
<span id="app_page_category">
<%= select('page','category', @categories.collect{|category| [category.i18n_variable[I18n.locale], category.id]}, :selected => @item[:category], :include_blank => true ) rescue ''%>
</span>
<span id="app_page_tag">
<%= select('page','tag', @tags.collect{|tag| [tag[I18n.locale], tag.id]}, :selected => @item[:tag], :include_blank => true ) rescue ''%>
</span>
<!-- <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p> -->
</div>
</div>