mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Show contact email without full permissions
This commit is contained in:
committed by
Rob Harrington
parent
676abe0ced
commit
9afb97fa0f
@@ -16,17 +16,18 @@
|
||||
|
||||
.row
|
||||
.three.columns.alpha
|
||||
=f.label :user_ids, t('.contact')
|
||||
=f.label :user_ids, t('.notifications')
|
||||
- if full_permissions
|
||||
%span.required *
|
||||
%div{'ofn-with-tip' => t('.contact_tip')}
|
||||
%a= t('admin.whats_this')
|
||||
|
||||
- if full_permissions
|
||||
.eight.columns.omega
|
||||
.eight.columns.omega
|
||||
- if full_permissions
|
||||
%select.select2.fullwidth{id: 'receives_notifications_dropdown', name: 'receives_notifications', ng: {model: 'receivesNotifications', init: "receivesNotifications = '#{@enterprise.contact.id}'"}}
|
||||
%option{ng: {repeat: 'user in Enterprise.users', selected: "user.id == #{@enterprise.contact.id}", hide: '!user.confirmed'}, value: '{{user.id}}'}
|
||||
{{user.email}}
|
||||
- else
|
||||
= @enterprise.contact.email
|
||||
|
||||
.row
|
||||
.three.columns.alpha
|
||||
|
||||
Reference in New Issue
Block a user