Adding a partial for enterprise fees to enterprise form

This commit is contained in:
Rob Harrington
2014-11-28 16:11:15 +11:00
parent 468e83cef7
commit 0ea1adfdff
2 changed files with 32 additions and 0 deletions

View File

@@ -26,3 +26,7 @@
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Images'" } }
%legend Images
= render 'admin/enterprises/form/images', f: f
%fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='Enterprise Fees'" } }
%legend Enterprise Fees
= render 'admin/enterprises/form/enterprise_fees', f: f

View File

@@ -0,0 +1,28 @@
- if @enterprise_fees.count > 0
%table
%tr
%th Name
%th Fee Type
-# %th Calculator
-# %th Calculator Values
- @enterprise_fees.each do |enterprise_fee|
%tr
%td= enterprise_fee.name
%td= enterprise_fee.fee_type
-# %td= enterprise_fee.calculator.preferred_flat_percent
-# %td= enterprise_fee.fee_type
%br
%div
%a.button{ href: "#{main_app.admin_enterprise_fees_path}"}
Manage Enterprise Fees
%i.icon-arrow-right
- else
%p.text-center
You don't have any enterprise fees yet.
%br
.text-center
%a.button{ href: "#{main_app.admin_enterprise_fees_path}"}
Create One Now
%i.icon-arrow-right