Ignore:
Timestamp:
Apr 8, 2010 3:39:31 PM (14 years ago)
Author:
kroman0
Message:

Rewrited kss to jquery and added some features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecomments/branches/jquery/quintagroup/plonecomments/skins/quintagroup_plonecomments/report_abuse_form.cpt

    r1631 r2087  
    2121                        Iterator python:modules['Products.CMFPlone'].IndexIterator; 
    2222                        tabindex python:Iterator(mainSlot=False); 
    23                         isAnon context/@@plone_portal_state/anonymous; 
     23                        isAnon context/@@plone_portal_state/anonymous|string:False; 
    2424                        member context/@@plone_portal_state/member; 
    2525                        thread python:putils.getDiscussionThread(here); 
     
    8080                                comment_id context/id"> 
    8181                    <metal:macro define-macro="form" 
    82                             tal:define="isAjaxReportAbuseEnabled view/ajax_report_abuse_enabled|python:portal.portal_properties.qPloneComments.enable_ajax_report_abuse; 
     82                            tal:define="isAjaxReportAbuseEnabled view/ajax_report_abuse_enabled|python:here.portal_properties.qPloneComments.enable_ajax_report_abuse; 
    8383                                        visible show_form|request/show_form|nothing; 
    8484                                        portal_url portal_url|view/portal_url; 
    85                                         tabindex tabindex|request/tabindex|view/tabindex; 
    86                                         member member|request/member|view/member;"> 
     85                                        isAnon isAnon|context/@@plone_portal_state/anonymous; 
     86                                        member member|context/@@plone_portal_state/member;"> 
    8787 
    8888                        <span tal:define="email_from_address portal/email_from_address|view/email_from_address; 
     
    198198                                                value="Send" 
    199199                                                type="submit" 
    200                                                 tal:attributes="comment_id comment_id; 
    201                                                                 class python:isAjaxReportAbuseEnabled  and 'context input-report-abuse-send' or 'context'" 
     200                                                class="context" 
     201                                                name="form.button.Send" 
     202                                                tal:attributes="comment_id comment_id" 
    202203                                                i18n:attributes="value label_send;" 
    203204                                                /> 
     
    207208                                                class="destructive" 
    208209                                                value="Cancel" 
    209                                                 type="button" 
    210                                                 tal:condition="isAjaxReportAbuseEnabled" 
    211                                                 tal:attributes="onclick string:javascript:remove_abuse_report_form(${comment_id})" 
     210                                                type="submit" 
     211                                                name="form.button.Cancel" 
    212212                                                i18n:attributes="value label_cancel;" 
    213213                                                /> 
Note: See TracChangeset for help on using the changeset viewer.