mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 07:05:57 +08:00
Merge pull request #334 from ZmagoD/zd_SCI_746
fixes bug with deleted team name
This commit is contained in:
commit
a376118cd8
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…
Add table
Reference in a new issue