[% PROCESS site/mainMenu.tt.html %] [% PROCESS cms/submenu.tt.html %]
[% PROCESS cms/contacts/submenu.tt.html %]

[% Cat.cmsPick({en => 'Contacts', es => 'Contactos' }) %]

[% Cat.cmsPick({en =>'Create new', es=>'Crear nuevo'}) %]

[% css_class = "odd"; IF ascDesc == '-asc'; toAscDesc = '-desc'; ELSE; toAscDesc = '-asc'; END; %] [% IF contacts %] [% columns = c.model('cmsDB::Contact').result_source.columns; FOREACH name IN columns; IF name == 'creation_time' %] [% ELSIF name == 'update_time' %] [% ELSIF name == 'country_id' %] [% ELSE %] [% END; END; %] [% FOREACH contact IN contacts.all %] [% FOREACH name IN columns %] [% IF name == 'country_id' %] [% ELSIF name == 'creation_time' || name == 'update_time' %] [% ELSIF name == 'verified' %] [% ELSIF name == 'photo' AND contact.$name %] [% path = c.config.site_files_path _ "/contacts/" _ contact.id _ "/"; relative_path = c.config.relative_site_files_path _ "/contacts/" _ contact.id _ "/"; thumbnail = relative_path _ c.getThumb(path _ contact.$name, 75, 75, undef, 0, 1); %] [% ELSE %] [% END %] [% END %] [% IF css_class == "odd"; css_class = ""; ELSE; css_class = "odd"; END; %] [% END %]
[% c.loc('Creation time') %] [% c.loc('Update time') %] [% c.loc('Country') %] [% c.loc(name.ufirst) %]  
[% contact.country_id.name_es %][% c.dateToString(contact.$name,"datetime") %][% IF contact.$name; Cat.cmsPick({es=>"Sí",en=>"Yes"}); ELSE %]No[% END %][% contact.firstname %][% contact.$name %] [% Cat.cmsPick({en => 'Edit', es => 'Editar'}) %]
    [% IF pager.previous_page %]
  • <<
  • <
  • [% ELSE %]
  • <<
  • <
  • [% END %]
  • [% pager.current_page %]/[% pager.last_page %]
  • [% IF pager.next_page %]
  • >
  • >>
  • [% ELSE %]
  • >
  • >>
  • [% END %]
[% END %]