A('Acordo de utilização', _href=URL('acordo'), **{'_data-content': 'testing'
})

This is explained at the end of this 
section<http://web2py.com/books/default/chapter/29/05#HTML-helpers>of the book.

Anthony 

On Thursday, January 3, 2013 7:51:06 AM UTC-5, Ramos wrote:
>
> hello
> i have
>    Field('confirm_agreement', 'boolean',default=False, 
> requires=IS_NOT_EMPTY(error_message="Por favor aceite o acordo de 
> utilização"),label=A('Acordo de utilização', _href=URL('acordo'))) 
>
> in my A helper i cannot add another paramenter like in bootstrap for 
> example 
> data-content="testing"
>
> because "-" is not allowed
>
> how to do A helper  with bootstrap?
>
>
>
> 2012/12/27 Anthony <abas...@gmail.com <javascript:>>
>
>> Try:
>>
>> auth.settings.extra_fields['auth_user'] = [Field('confirm_agreement', 
>> 'boolean',
>>
>>     default=False, label=A('Accept Agreement', ...),
>>     requires=IS_NOT_EMPTY(error_message='You must accept the agreement.'
>> ))]
>>
>> Anthony
>>
>> On Thursday, December 27, 2012 9:49:57 AM UTC-5, Ramos wrote:
>>
>>> Ok, but if i add required=True does not mean that the check has to be 
>>> checked!
>>>
>>>
>>>
>>> 2012/12/27 Anthony <abas...@gmail.com>
>>>
>>> auth.settings.extra_fields['**auth_user'] = [Field('confirm_agreement', 
>>>> 'boolean',
>>>>
>>>>     default=False, label=A('Accept Agreement', ...))]
>>>
>>>
>>>  -- 
>>  
>>  
>>  
>>
>
>

-- 



Reply via email to