Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F905010
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, 7:09 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Aug 31, 7:09 PM (20 h, 29 m)
Engine
blob
Format
Raw Data
Handle
252393
Attached To
rARCHIVING archiving
View Options
diff --git a/app/views/hosts/_form.html.erb b/app/views/hosts/_form.html.erb
index 33af163..a3da61d 100644
--- a/app/views/hosts/_form.html.erb
+++ b/app/views/hosts/_form.html.erb
@@ -1,32 +1,32 @@
<%= bootstrap_form_for(@host, layout: :horizontal,
label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %>
<div>
<% if current_user.needs_host_list? %>
<%= f.select :fqdn, options_for_select(@hosts_of_user, @host.fqdn), {},
disabled: @host.persisted? %>
<% else %>
<%= f.text_field :fqdn, disabled: @host.persisted? %>
<% end %>
- <%= f.password_field :password, required: true %>
+ <%= f.password_field :password, required: true, value: @host.password %>
<%= f.number_field :port, min: 1 %>
<% emails = (@host.users.pluck(:email) + @host.email_recipients).uniq.select(&:present?) %>
<%= f.select :email_recipients, options_for_select(emails, @host.email_recipients), {},
multiple: true %>
</div>
<div class="form-group">
<div class="col-xs-offset-3 col-xs-2">
<%= f.submit class: 'btn btn-success' %>
</div>
<% if current_user.vima? %>
<div class="col-xs-offset-3 col-xs-2">
<%= link_to fetch_vima_hosts_path, role: :button, class: 'btn btn-default' do %>
<label class="glyphicon glyphicon-refresh text-primary"></label>
Fetch Hosts
<% end %>
</div>
<% end %>
</div>
<% end %>
Event Timeline
Log In to Comment