Changeset 190
- Timestamp:
- 02/09/10 13:54:02 (3 years ago)
- Location:
- trunk/clinicaltrials/registry
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/clinicaltrials/registry/models.py
r186 r190 3 3 4 4 from django.utils.translation import ugettext_lazy as _ 5 from django.utils.html import linebreaks 5 6 6 7 from datetime import datetime … … 41 42 if field.rel and hasattr(value, 'html_dump'): 42 43 content = '<table>%s</table>' % value.html_dump(seen) 43 else: 44 else: 44 45 content = unicode(value) 46 if u'\n' in content: 47 content = linebreaks(content) 45 48 html.append('<tr><th>%s</th><td>%s</td></tr>' % (field.name, content)) 46 49 for field_name in dir(self): … … 59 62 #else: 60 63 content = unicode(rel_value) 64 if u'\n' in content: 65 content = linebreaks(content) 61 66 inner_html.append('<tr><th>%s</th><td>%s</td></tr>' % (id, content)) 62 67 content = '<table>%s</table>' % '\n\t'.join(inner_html) -
trunk/clinicaltrials/registry/views.py
r189 r190 24 24 25 25 EXTRA_FORMS = 2 26 TRIAL_FORMS = ['Trial Identification Form',27 'Sponsors Form',28 'Health Conditions Form',29 'Interventions Form',30 'Recruitment Form',31 'Study Type Form',32 'Outcomes Form',33 ' Descriptor Form']26 TRIAL_FORMS = ['Trial Identification', 27 'Sponsors', 28 'Health Conditions', 29 'Interventions', 30 'Recruitment', 31 'Study Type', 32 'Outcomes', 33 'Contacts'] 34 34 35 35 … … 65 65 return HttpResponse(t.render(c)) 66 66 67 68 67 @login_required 69 68 def step_1(request, trial_pk):
