mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Adding a partial for enterprise fees to enterprise form
This commit is contained in:
@@ -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
|
||||
|
||||
28
app/views/admin/enterprises/form/_enterprise_fees.html.haml
Normal file
28
app/views/admin/enterprises/form/_enterprise_fees.html.haml
Normal 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
|
||||
Reference in New Issue
Block a user