1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00
الملفات
postal/app/views/ip_pool_rules/_form.html.haml
Adam Cooke 698b580db4 remove types from ip pools
closes #24
2017-04-28 16:40:53 +01:00

36 أسطر
1.9 KiB
Plaintext

.pageContent.pageContent--compact
= form_for [organization, @server, @ip_pool_rule], :remote => true do |f|
= f.error_messages
%fieldset.fieldSet
%h2.fieldSet__title.fieldSet__title--noMargin Rule match conditions
.fieldSet__field
= f.label :to_text, "To Addresses", :class => 'fieldSet__label'
.fieldSet__input
~ f.text_area :to_text, :autofocus => true, :class => 'input input--text input--smallArea'
%p.fieldSet__text
This is a list of addresses or domains which should be matched. This
applies to e-mail address of the recipient of a message.
.fieldSet__field
= f.label :from_text, "From Addresses", :class => 'fieldSet__label'
.fieldSet__input
~ f.text_area :from_text, :class => 'input input--text input--smallArea'
%p.fieldSet__text
This is a list of addresses or domains which should be matched. This
applies to value <code>From</code> in the From header of the message
that is being delivered.
%fieldset.fieldSet
%h2.fieldSet__title Selected IP Pool
.fieldSet__field
= f.label :ip_pool_id, "IP Pool", :class => 'fieldSet__label'
.fieldSet__input
= f.collection_select :ip_pool_id, organization.ip_pools.includes(:ip_addresses).order("`default` desc, name asc"), :id, :name, {}, :class => 'input input--select'
%p.fieldSet__text
This is the IP pool that this message should be delivered from.
.fieldSetSubmit
= f.submit "Save Rule", :class => "button button--positive js-form-submit"
.fieldSetSubmit__delete
- if f.object.persisted?
= link_to "Delete Rule", [organization, @server, @ip_pool_rule], :remote => true, :class => 'button button--danger', :method => :delete, :data => {:confirm => "Are you sure you wish to delete this rule?"}