.contextual
  = link_to t_action('new', Salary), select_employee_salaries_path(:salary => {:employee_id => @employee.id}), :class => "icon icon-add"
%h2= t_model SalaryTemplate

- @salary_template = @employee.salary_templates.first
= render 'salary_templates/form'

.contextual
  = link_to t_action('new', Salary), select_employee_salaries_path(:salary => {:employee_id => @employee.id}), :class => "icon icon-add"
%h2= t_model SalaryTemplate

- @salary_template = @employee.salary_templates.first
= render 'salary_templates/form' if @salary_template

Fix employee view if currently no salary template is assigned.
Fix employee view if currently no salary template is assigned.
