diff --git a/paramecio/citoplasma/lists.py b/paramecio/citoplasma/lists.py index 1cb3233..4ef08e3 100644 --- a/paramecio/citoplasma/lists.py +++ b/paramecio/citoplasma/lists.py @@ -36,7 +36,7 @@ class SimpleList: self.order_defaults=['ASC', 'DESC'] - self.order_class=['up', 'down'] + self.order_class=['down', 'up'] self.s=get_session() diff --git a/paramecio/citoplasma/templates/utils/list.phtml b/paramecio/citoplasma/templates/utils/list.phtml index ed604c6..9faaa2f 100644 --- a/paramecio/citoplasma/templates/utils/list.phtml +++ b/paramecio/citoplasma/templates/utils/list.phtml @@ -11,7 +11,7 @@ %def> <%def name="set_css_arrow(simplelist, field)"> % if simplelist.order_field==field: - fa fa-arrow-circle-${simplelist.order_class[simplelist.s['order']]} + % endif %def> % if simplelist.yes_search: @@ -30,7 +30,7 @@
| ${simplelist.model.fields[field].label} | +${set_css_arrow(simplelist, field)}${simplelist.model.fields[field].label} | % endfor % for extra_field in simplelist.arr_extra_fields:${ extra_field } |