From: Chris W. <la...@us...> - 2005-03-03 13:04:55
|
Update of /cvsroot/openinteract/OpenInteract2/pkg/comments/template In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4457/template Modified Files: comment_form.tmpl Log Message: OIN-112: change the subscribe/unsubscribe to a dropdown with choices that reflect whether you're currently subscribed Index: comment_form.tmpl =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/template/comment_form.tmpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** comment_form.tmpl 17 May 2004 14:21:53 -0000 1.3 --- comment_form.tmpl 3 Mar 2005 13:04:38 -0000 1.4 *************** *** 61,65 **** <tr [% PROCESS row_color %]> <td colspan="2" align="center"> ! [% MSG( 'comments.form.no_html' ) %] </td> </tr> --- 61,65 ---- <tr [% PROCESS row_color %]> <td colspan="2" align="center"> ! <font size="-1">[% MSG( 'comments.form.no_html' ) %]</font> </td> </tr> *************** *** 70,83 **** [% INCLUDE form_checkbox( name = 'remember_poster', value = 'yes', ! picked = form_settings.remember_poster ) %] </td> </tr> ! [% count = count + 1 %] <tr [% PROCESS row_color %]> <td colspan="2">[% MSG( 'comments.form.notify' ) %] ! [% INCLUDE form_checkbox( name = 'comment_notify', ! value = 'yes', ! picked = form_settings.comment_notify ) %] </td> </tr> --- 70,92 ---- [% INCLUDE form_checkbox( name = 'remember_poster', value = 'yes', ! picked = remember_poster ) %] </td> </tr> ! [%- count = count + 1; ! notify_list = [ { value = 'yes', label = MSG( 'comments.form.notify_no_sub' ) }, ! { value = 'no', label = MSG( 'comments.form.notify_no_unsub' ) } ] ! -%] ! [% IF is_subscribed == 'yes'; ! notify_list = [ { value = 'yes', label = MSG( 'comments.form.notify_yes_sub' ) }, ! { value = 'no', label = MSG( 'comments.form.notify_yes_unsub' ) } ]; ! END -%] <tr [% PROCESS row_color %]> <td colspan="2">[% MSG( 'comments.form.notify' ) %] ! [% INCLUDE form_select( name = 'is_subscribed', ! list = notify_list, ! value_field = 'value', ! label_field = 'label', ! picked = is_subscribed ) %] </td> </tr> |