diff --git a/app/views/admin/enterprises/_form.html.haml b/app/views/admin/enterprises/_form.html.haml index b9a897b774..87a43562f3 100644 --- a/app/views/admin/enterprises/_form.html.haml +++ b/app/views/admin/enterprises/_form.html.haml @@ -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 diff --git a/app/views/admin/enterprises/form/_enterprise_fees.html.haml b/app/views/admin/enterprises/form/_enterprise_fees.html.haml new file mode 100644 index 0000000000..c5f83b6ffe --- /dev/null +++ b/app/views/admin/enterprises/form/_enterprise_fees.html.haml @@ -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