mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
fixes bug with deleted team name [fixes SCI-746]
This commit is contained in:
parent
7309da9d92
commit
6274cd413e
1 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue