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. 15
      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,10 +1,10 @@
{% extends template ~ "/layout/layout_1_col.tpl" %}
{{ actions }}
{% block content %}
{{ form_filter }}
{{ form_filter }}
{% for item in data %}
<div id="career-{{ item.id }}" class="career panel panel-default">
{% for item in data %}
<div id="career-{{ item.id }}" class="career panel panel-default">
<div class="panel-heading">
<h4><a href="{{ _p.web }}main/admin/careers.php?action=edit&id={{ item.id }}">{{ item.name }}</a></h4>
</div>
@ -55,6 +55,7 @@
{% endfor %}
</table>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
{% endblock %}

Loading…
Cancel
Save