مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
UI for admins to assign ip pools to servers
هذا الالتزام موجود في:
@@ -10,29 +10,44 @@
|
||||
|
||||
= render 'organizations/nav', :active_nav => :ips
|
||||
= render 'nav', :active_nav => :ips
|
||||
|
||||
.pageContent.pageContent--compact
|
||||
- if @ip_pools.empty?
|
||||
.noData.noData--koala.noData--clean
|
||||
- if @server.nil?
|
||||
%h2.noData__title You don't have any dedicated IP addresses.
|
||||
%p.noData__text
|
||||
Once you've been assigned dedicated IP addresses they will appear here. You can then use them in rules and
|
||||
for servers. To request dedicated IP addresses please contact our team.
|
||||
- if current_user.admin?
|
||||
%p.pageContent__intro.u-margin
|
||||
Choose which IP pools this organization will have access to send mail using. Organization
|
||||
users will be able to choose from any of the pools chosen below. Admins can override on a per
|
||||
server basis if required.
|
||||
= form_tag [:assignments, @organization, :ip_pools], :method => :put do
|
||||
%ul.checkboxList.u-margin
|
||||
- for ip_pool in IPPool.order(:name)
|
||||
%li.checkboxList__item
|
||||
.checkboxList__checkbox= check_box_tag "ip_pools[]", ip_pool.id, @organization.ip_pools.include?(ip_pool), :id => "ip_pool_#{ip_pool.id}"
|
||||
.checkboxList__label
|
||||
= label_tag "ip_pool_#{ip_pool.id}", ip_pool.name, :class => 'checkboxList__actualLabel'
|
||||
%p= submit_tag "Save IP pool assignment", :class => 'button button--positive'
|
||||
- else
|
||||
.ipList
|
||||
- for ip_pool in @ip_pools
|
||||
.ipList__item
|
||||
%p.ipList__name= ip_pool.name
|
||||
%ul.ipList__addressList
|
||||
%li.ipList__address.ipList__address--header
|
||||
%p.ipList__ipv4 IPv4 Address
|
||||
%p.ipList__ipv6 IPv6 Address
|
||||
%p.ipList__hostname Hostname
|
||||
- if @ip_pools.empty?
|
||||
.noData.noData--koala.noData--clean
|
||||
- if @server.nil?
|
||||
%h2.noData__title You don't have any dedicated IP addresses.
|
||||
%p.noData__text
|
||||
Once you've been assigned dedicated IP addresses they will appear here. You can then use them in rules and
|
||||
for servers. To request dedicated IP addresses please contact our team.
|
||||
- else
|
||||
.ipList
|
||||
- for ip_pool in @ip_pools
|
||||
.ipList__item
|
||||
%p.ipList__name= ip_pool.name
|
||||
%ul.ipList__addressList
|
||||
%li.ipList__address.ipList__address--header
|
||||
%p.ipList__ipv4 IPv4 Address
|
||||
%p.ipList__ipv6 IPv6 Address
|
||||
%p.ipList__hostname Hostname
|
||||
|
||||
- for address in ip_pool.ip_addresses
|
||||
%li.ipList__address
|
||||
%p.ipList__ipv4= address.ipv4
|
||||
%p.ipList__ipv6= address.ipv6
|
||||
%p.ipList__hostname= address.hostname
|
||||
- for address in ip_pool.ip_addresses
|
||||
%li.ipList__address
|
||||
%p.ipList__ipv4= address.ipv4
|
||||
%p.ipList__ipv6= address.ipv6
|
||||
%p.ipList__hostname= address.hostname
|
||||
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
e-mail will be routed normally to the intended recipients. When in <b>Development</b> mode,
|
||||
outgoing & incoming mail will be held and only visible in the web interface and will not be
|
||||
sent to any recipients or HTTP endpoints.
|
||||
|
||||
.fieldSet__field
|
||||
= f.label :ip_pool_id, :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
.fieldSet__field
|
||||
= f.label :raw_message_retention_size, :class => 'fieldSet__label'
|
||||
.fieldSet__input= f.text_field :raw_message_retention_size, :class => 'input input--text'
|
||||
.fieldSet__field
|
||||
= f.label :ip_pool_id, :class => 'fieldSet__label'
|
||||
.fieldSet__input= f.collection_select :ip_pool_id, IPPool.order(:name), :id, :name, {}, :class => 'input input--select'
|
||||
|
||||
.fieldSetSubmit.fieldSetSubmit--wide.buttonSet
|
||||
= f.submit "Save server", :class => 'button button--positive js-form-submit'
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم