Dotclear

source: inc/admin/default-templates/posts_cols.html.twig @ 1152:fbd922f6ed09

Revision 1152:fbd922f6ed09, 1.0 KB checked in by Dsls <dsls@…>, 12 years ago (diff)

form filters reloaded, first try for lists (to be completed)
form fields now support multiple values.

Line 
1
2{% block col_ref %}
3     {{form_field('entries',{'offset':offset})}}
4{% endblock %}
5
6{% block col_title %}
7     {{block('col_ref')}}
8     {{e.post_title}}
9{% endblock %}
10
11{% block col_cat -%}
12     {% if e.exists('cat_title') %}
13          <a href="category.php?id={{e.cat_id}}">{{e.cat_title}}</a>
14     {% else %}
15          {{__('None')}}
16     {% endif %}
17{%- endblock %}
18
19{% block col_date -%}
20     {{e.post_dt|date('Y-m-d')}}
21{%- endblock %}
22
23{% block col_datetime -%}
24     {{e.post_dt|date('Y-m-d h:i')}}
25{%- endblock %}
26
27{% block col_author -%}
28     {{e.user_id}}
29{%- endblock %}
30
31{% block col_status %}
32{% set statuses = {
33     "0": {'img' : 'check-off.png', 'name':__('unpublished')},
34     "1": {'img' : 'check-on.png', 'name':__('published')},
35     "-1": {'img' : 'scheduled.png', 'name':__('scheduled')},
36     "-2": {'img' : 'check-wrn.png', 'name':__('pending')}}
37%}
38<img alt="{{statuses[e.post_status].name}}" src="images/{{statuses[e.post_status].img}}" />
39{% endblock %}
40
41{% block list_line_start %}
42<tr class="line" id="p{{e.post_id}}">
43{% endblock %}
Note: See TracBrowser for help on using the repository browser.

Sites map