fixes bug with deleted team name [fixes SCI-746]

This commit is contained in:
zmagod 2016-12-02 16:07:00 +01:00
parent 7309da9d92
commit 6274cd413e

View file

@ -10,7 +10,10 @@
<div class="form-group">
<%= f.label :full_name %>
<%= f.text_field :full_name, value: '', autofocus: true, class: "form-control" %>
<%= f.text_field :full_name,
value: (params[:user] ? params[:user][:full_name] : ''),
autofocus: true,
class: 'form-control' %>
</div>
<div class="form-group">
@ -31,7 +34,10 @@
<% if @org %>
<%= text_field :organization, :name, class: "form-control", value: @org.name %>
<% else %>
<%= text_field :organization, :name, class: "form-control" %>
<%= text_field :organization,
:name,
class: 'form-control',
value: (params[:organization] ? params[:organization][:name] : '') %>
<% end %>
<span><small><%= t 'users.registrations.new.team_name_help' %></small></span>
</div>