#14291: In django admin results list, provide the field name as a css class on
the
table cell
-----------------------------------+----------------------------------------
Reporter: vjimw | Owner: nobody
Status: new | Milestone:
Component: Contrib apps | Version: 1.2
Keywords: admin css class field | Stage: Unreviewed
Has_patch: 1 |
-----------------------------------+----------------------------------------
I have found it useful a number of times to use jQuery or other methods to
directly reference a piece of content in an admin list. This would be much
easier if I could address each table cell by the field name with a CSS
class. I have modified the admin_list.py file and attached a patch.
Here is an example of an updated table row the field names as the CSS
class on each cell.
{{{
<tr class="row1">
<td class="action_checkbox"><input type="checkbox" class="action-select"
value="13106" name="_selected_action" /></td>
<th class="offer_code"><a href="13106/">CJTAKE10</a></th>
<td class="legal_site">DealsPl.us</td>
<td class="created_by">User: medv12 (Medv12 Legal)</td>
<td class="copyright_or_trademark">CP</td><td class="store">Halloween
Express</td>
<td class="current_state">Found - 2010-09-14</td><td
class="overdue">(None)</td>
</tr>
}}}
By adding the CSS class, I can easily extend the admin functionality with
Javascript (or a JS library)
--
Ticket URL: <http://code.djangoproject.com/ticket/14291>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.