Mercurial > hg > soundsoftware-site
changeset 77:d9df68bf8907 luisf
Bug #57 - User Description can be entered as wiki text and is displayed as such.
author | luisf |
---|---|
date | Tue, 14 Dec 2010 16:52:12 +0000 |
parents | b9c2324779f6 |
children | f549e0ce4aad |
files | app/views/account/register.rhtml app/views/users/_form.rhtml app/views/users/show.rhtml |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/account/register.rhtml Tue Dec 14 11:03:05 2010 +0000 +++ b/app/views/account/register.rhtml Tue Dec 14 16:52:12 2010 +0000 @@ -34,7 +34,10 @@ <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> <p> - <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %> + + <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %> + <%= wikitoolbar_for 'ssamr_user_details_description' %> + <br /> <em> <%=l(:text_user_ssamr_description_info)%></em> </p>
--- a/app/views/users/_form.rhtml Tue Dec 14 11:03:05 2010 +0000 +++ b/app/views/users/_form.rhtml Tue Dec 14 16:52:12 2010 +0000 @@ -23,7 +23,8 @@ <h3><%=l(:label_ssamr_details)%></h3> <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> <p> - <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %> + <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %> + <%= wikitoolbar_for 'ssamr_user_details_description' %> <br /> <em> <%=l(:text_user_ssamr_description_info)%></em> </p>