Changeset 198:9da279d9fd39
- Timestamp:
- 09/26/09 13:03:02 (11 months ago)
- Author:
- rgrp
- Branch:
- default
- convert_revision:
- svn:0ead1229-0713-0410-96cd-f668dbfad531/trunk@286
- Message:
-
[multi][xs]: change dropdown list on multi index page to show titles rather than names.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r197
|
r198
|
|
| 14 | 14 | |
| 15 | 15 | def index(self): |
| 16 | | names = [ m.name for m in model.Material.query.all() ] |
| | 16 | options = [ (m.title, m.name) for m in model.Material.query.all() ] |
| 17 | 17 | c.text_options = h.options_for_select( |
| 18 | | names |
| | 18 | options |
| 19 | 19 | ) |
| 20 | 20 | return render('multi/index.html') |