return ''' <div class='clearfix'> <label for="%s">%s: </label> <div class="input"> <select> {{for i in db().select(db.News.ALL):}} <option value="{{=i.id}}">{{i.EnglishTitle}}</option> {{pass}} </select> </div> </div>
''' % (column,table[column].label,) On Wed, Sep 26, 2012 at 11:30 AM, Hassan Alnatour < halna...@gardeniatelco.com> wrote: > Dear ALL, > > I am trying to return a div that has a select with option from table , but > am getting an error , and i still cant figure it out , any help please ? > > return DIV( > LABEL('%s: ' % table[column].label,_for=column), > DIV(SELECT( > #OPTION('None',_value=''), > for i in db().select(db.News.ALL): > OPTION('%s'%(i.id),_value='%s'%(i.EnglishTitle)), > > _name=column,_id=column),_class='input'), > _class='clearfix') > > > Best Regards, > > -- > > > > --