Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F461735
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 5:58 PM
Size
856 B
Mime Type
text/x-diff
Expires
Tue, May 20, 5:58 PM (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
220422
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/app/views/records/_form.html.erb b/app/views/records/_form.html.erb
index 6388a97..c5ef837 100644
--- a/app/views/records/_form.html.erb
+++ b/app/views/records/_form.html.erb
@@ -1,14 +1,14 @@
<%= bootstrap_form_for([@domain, @record], layout: :horizontal, label_col: 'col-sm-2', control_col: 'col-sm-4') do |f| %>
<%= f.text_field :name, value: @record.short, label: 'Record', append: ".#{@domain.name}" %>
<% if @record.persisted? %>
<%= f.static_control :type %>
<% else %>
<%= f.select :type, Record.record_types %>
<% end %>
- <%= f.text_field :prio, placeholder: 10, wrapper_class: 'hidden' %>
+ <%= f.text_field :prio, placeholder: 10, wrapper_class: @record.supports_prio? ? '' : 'hidden' %>
<%= f.text_field :content %>
<%= f.submit 'Save', class: 'btn btn-primary col-sm-offset-2' %>
<% end %>
Event Timeline
Log In to Comment