Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F905070
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
Fri, Aug 29, 8:38 PM
Size
856 B
Mime Type
text/x-diff
Expires
Sun, Aug 31, 8:38 PM (19 h, 25 m)
Engine
blob
Format
Raw Data
Handle
252434
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