this is somewhat the 15th time it comes up..... 
Do we have to start a FAQ somewhere or simply pin a thread named "if you 
have problems with data-attributes and web2py's templates" ? 

Any other ideas to make this concept stick in old (and new) users brains 
:-P ?

On Thursday, January 3, 2013 4:01:35 PM UTC+1, Anthony wrote:
>
> 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 <[email protected]>
>>
>>> 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 <[email protected]>
>>>>
>>>> auth.settings.extra_fields['**auth_user'] = [Field('confirm_agreement', 
>>>>> 'boolean',
>>>>>
>>>>>     default=False, label=A('Accept Agreement', ...))]
>>>>
>>>>
>>>>  -- 
>>>  
>>>  
>>>  
>>>
>>
>>

-- 



Reply via email to