Skip to content

Instantly share code, notes, and snippets.

@fadlystwn
Created December 30, 2014 04:44
Show Gist options
  • Save fadlystwn/5de250cd16a954ca7551 to your computer and use it in GitHub Desktop.
Save fadlystwn/5de250cd16a954ca7551 to your computer and use it in GitHub Desktop.
.container-fluid
.col-md-12.thumbnail
.page-header
h3.text-header Include Master Cut Variables
.col-md-6
= form_tag include_variables_company_payrolls_path(company_id: current_user.company_id), method: :post do
.table-responsive
table.user-access.table.table-bordered
thead
tr
th Variable
th Percentation
th Time group
th Maximum Value
th include to payroll?
tbody
- @master_tax_variables.each do |variable|
tr
td = variable.explanation
td = variable.percentation
td = variable.time_group
td = variable.maximum_value
td = check_box_tag "include[#{variable.id}]", true, checked = current_user.company.master_cut_variables.present? && current_user.company.master_cut_variables.keys.include?("#{variable.id}") ? true : false
= submit_tag "Include Variables", class: "btn btn-default"
hr
.col-md-12.thumbnail
.page-header
h3.text-header Include BPJS Variable
.col-md-6
= form_tag include_bpjs_variables_company_payrolls_path(company_id: current_user.company_id), method: :post do
<<<<<<< HEAD
.table-responsive
table.user-access.table.table-bordered
thead
=======
table.user-access.table.table-bordered
thead
tr
th Variable
th Explanation
th Percentation
th Maximun Value
th Applied To
th include to payroll?
tbody
- @bpjs_variables.each do |variable|
tr
td = variable.variable_name
td = variable.explanation
td = variable.precentation
td = variable.maximum_value
td = variable.applied_to
td = check_box_tag "include_bpjs[#{variable.id}]", true, checked = current_user.company.company_bpjs_variables.present? && current_user.company.company_bpjs_variables.keys.include?("#{variable.id}") ? true : false
= submit_tag "Include BPJS Variables", class: "btn btn-default"
hr
.row
= link_to 'Manage Category', company_payroll_categories_path(company_id: current_user.company_id), class: "btn btn-default"
.row
- @payroll_categories.each do |payroll|
.col-md-12
h4 = "Category: #{payroll.explanation}"
h5 = "Type: #{payroll.variable_group}"
h5 = "Time Group: #{payroll.time_group}"
table.table.table-striped
thead
tr
th Explanation
th Formula Code
th Condition
th
th
th
tbody
- payroll.tax_parameters.each do |variable|
>>>>>>> 5676cb4e4c32c4fa620e8925c86ee533aed5276e
tr
th Variable
th Explanation
th Percentation
th Maximun Value
th Applied To
th include to payroll?
tbody
- @bpjs_variables.each do |variable|
tr
td = variable.variable_name
td = variable.explanation
td = variable.precentation
td = variable.maximum_value
td = variable.applied_to
td = check_box_tag "include_bpjs[#{variable.id}]", true, checked = current_user.company.company_bpjs_variables.present? && current_user.company.company_bpjs_variables.keys.include?("#{variable.id}") ? true : false
= submit_tag "Include BPJS Variables", class: "btn btn-default"
hr
.row
= link_to 'Manage Category', include_variables_company_payrolls_path(company_id: current_user.company_id), class: "btn btn-default"
.row
- @payroll_categories.each do |payroll|
.col-md-12
h4 = "Category: #{payroll.explanation}"
h5 = "Type: #{payroll.variable_group}"
h5 = "Time Group: #{payroll.time_group}"
.table-responsive
table.table.table-striped
thead
tr
th Explanation
th Formula Code
th Condition
th
th
th
tbody
- payroll.tax_parameters.each do |variable|
tr
td = variable.explanation
td = variable.formula_code
td = variable.special_formula
= link_to "Manage Variables", company_payroll_category_tax_parameters_path(current_user.company.slug, payroll_category_id: payroll.id), class: "btn btn-default"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment