web/views/formrenderers.py
changeset 4181 c79135c217df
parent 4164 119a374c5eb4
parent 4097 bc387c49e02b
child 4224 5998df006968
equal deleted inserted replaced
4173:cfd5d3270f99 4181:c79135c217df
   439                   % (row[1], row[4], xml_escape(row[5])))
   439                   % (row[1], row[4], xml_escape(row[5])))
   440                 w(u'</td>')
   440                 w(u'</td>')
   441                 w(u'</tr>')
   441                 w(u'</tr>')
   442         w(u'<tr id="relationSelectorRow_%s" class="separator">' % eid)
   442         w(u'<tr id="relationSelectorRow_%s" class="separator">' % eid)
   443         w(u'<th class="labelCol">')
   443         w(u'<th class="labelCol">')
   444         w(u'<span>%s</span>' % _('add relation'))
       
   445         w(u'<select id="relationSelector_%s" tabindex="%s" '
   444         w(u'<select id="relationSelector_%s" tabindex="%s" '
   446           'onchange="javascript:showMatchingSelect(this.options[this.selectedIndex].value,%s);">'
   445           'onchange="javascript:showMatchingSelect(this.options[this.selectedIndex].value,%s);">'
   447           % (eid, req.next_tabindex(), xml_escape(dumps(eid))))
   446           % (eid, req.next_tabindex(), xml_escape(dumps(eid))))
   448         w(u'<option value="">%s</option>' % _('select a relation'))
   447         w(u'<option value="">%s</option>' % _('select a relation'))
   449         for i18nrtype, rschema, target in srels_by_cat:
   448         for i18nrtype, rschema, target in srels_by_cat: