مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
admin UI for managing ip pools & ip addresses
هذا الالتزام موجود في:
19
app/views/ip_addresses/_form.html.haml
Normal file
19
app/views/ip_addresses/_form.html.haml
Normal file
@@ -0,0 +1,19 @@
|
||||
= form_for [@ip_pool, @ip_address], :remote => true do |f|
|
||||
= f.error_messages
|
||||
%fieldset.fieldSet
|
||||
.fieldSet__field
|
||||
= f.label :ipv4, :class => 'fieldSet__label'
|
||||
.fieldSet__input= f.text_field :ipv4, :autofocus => true, :class => 'input input--text'
|
||||
.fieldSet__field
|
||||
= f.label :ipv6, :class => 'fieldSet__label'
|
||||
.fieldSet__input= f.text_field :ipv6, :class => 'input input--text'
|
||||
.fieldSet__field
|
||||
= f.label :hostname, :class => 'fieldSet__label'
|
||||
.fieldSet__input= f.text_field :hostname, :class => 'input input--text'
|
||||
|
||||
.fieldSetSubmit.buttonSet
|
||||
= f.submit :class => 'button button--positive js-form-submit'
|
||||
.fieldSetSubmit__delete
|
||||
- if @ip_address.persisted?
|
||||
= link_to "Delete IP address", [@ip_pool, @ip_address], :class => 'button button--danger', :method => :delete, :remote => true, :data => {:confirm => "Are you sure you wish to remove this IP from the pool?"}
|
||||
|
||||
17
app/views/ip_addresses/edit.html.haml
Normal file
17
app/views/ip_addresses/edit.html.haml
Normal file
@@ -0,0 +1,17 @@
|
||||
- page_title << "IP Pools"
|
||||
- page_title << @ip_pool.name
|
||||
- page_title << "Edit IP address"
|
||||
.pageHeader
|
||||
%h1.pageHeader__title
|
||||
%span.pageHeader__titlePrevious
|
||||
= link_to "IP Pools", :ip_pools
|
||||
→
|
||||
= @ip_pool.name
|
||||
→
|
||||
Edit
|
||||
→
|
||||
Edit IP address
|
||||
|
||||
.pageContent.pageContent--compact
|
||||
= render 'form'
|
||||
|
||||
17
app/views/ip_addresses/new.html.haml
Normal file
17
app/views/ip_addresses/new.html.haml
Normal file
@@ -0,0 +1,17 @@
|
||||
- page_title << "IP Pools"
|
||||
- page_title << @ip_pool.name
|
||||
- page_title << "Add new IP address"
|
||||
.pageHeader
|
||||
%h1.pageHeader__title
|
||||
%span.pageHeader__titlePrevious
|
||||
= link_to "IP Pools", :ip_pools
|
||||
→
|
||||
= @ip_pool.name
|
||||
→
|
||||
Edit
|
||||
→
|
||||
Add new IP address
|
||||
|
||||
.pageContent.pageContent--compact
|
||||
= render 'form'
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم