Fix wrong use of templates, avoid mix use of template and display::header

pull/2487/head
jmontoyaa 8 years ago
parent 201cf11bb7
commit d702205891
  1. 4
      main/admin/career_dashboard.php
  2. 5
      main/template/default/admin/career_dashboard.tpl

@ -28,8 +28,6 @@ $interbreadcrumb[] = array(
);
$tpl = new Template(get_lang('CareersAndPromotions'));
Display :: display_header(null);
$html = null;
$form = new FormValidator('filter_form', 'GET', api_get_self());
@ -150,5 +148,3 @@ $tpl->assign('form_filter', $html);
$tpl->assign('data', $careers);
$layout = $tpl->get_template('admin/career_dashboard.tpl');
$tpl->display($layout);
Display::display_footer();

@ -1,6 +1,6 @@
{% extends template ~ "/layout/layout_1_col.tpl" %}
{{ actions }}
{% block content %}
{{ form_filter }}
{% for item in data %}
@ -58,3 +58,4 @@
</div>
{% endfor %}
{% endblock %}

Loading…
Cancel
Save