biovision-base 0.11.180127 → 0.14.180326
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -0
- data/app/assets/javascripts/biovision/base/biovision-sliders.js +12 -9
- data/app/assets/javascripts/biovision/base/biovision.js +187 -2
- data/app/assets/stylesheets/biovision/base/admin.scss +84 -40
- data/app/assets/stylesheets/biovision/base/biovision.scss +104 -44
- data/app/assets/stylesheets/biovision/base/buttons/buttons-common.scss +95 -0
- data/app/assets/stylesheets/biovision/base/buttons/buttons-rounded.scss +26 -0
- data/app/assets/stylesheets/biovision/base/default.scss +2 -2
- data/app/assets/stylesheets/biovision/base/default_admin.scss +1 -1
- data/app/assets/stylesheets/biovision/base/default_application.scss +1 -1
- data/app/assets/stylesheets/biovision/base/themes/simple-layout.scss +115 -0
- data/app/assets/stylesheets/biovision/base/users.scss +15 -0
- data/app/controllers/agents_controller.rb +3 -3
- data/app/controllers/authentication_controller.rb +4 -4
- data/app/controllers/browsers_controller.rb +3 -3
- data/app/controllers/codes_controller.rb +2 -2
- data/app/controllers/editable_pages_controller.rb +6 -5
- data/app/controllers/index_controller.rb +1 -1
- data/app/controllers/media_files_controller.rb +3 -3
- data/app/controllers/media_folders_controller.rb +3 -3
- data/app/controllers/metrics_controller.rb +1 -1
- data/app/controllers/my/index_controller.rb +2 -0
- data/app/controllers/my/profiles_controller.rb +15 -9
- data/app/controllers/privilege_groups_controller.rb +2 -2
- data/app/controllers/privileges_controller.rb +3 -3
- data/app/controllers/stored_values_controller.rb +2 -2
- data/app/controllers/tokens_controller.rb +2 -2
- data/app/controllers/users_controller.rb +26 -10
- data/app/helpers/biovision_helper.rb +13 -2
- data/app/helpers/biovision_users_helper.rb +20 -5
- data/app/helpers/codes_helper.rb +1 -1
- data/app/helpers/editable_pages_helper.rb +1 -1
- data/app/helpers/languages_helper.rb +18 -0
- data/app/helpers/media_helper.rb +2 -2
- data/app/helpers/privileges_helper.rb +2 -2
- data/app/helpers/stored_values_helper.rb +1 -1
- data/app/helpers/tracking_helper.rb +2 -2
- data/app/models/editable_page.rb +10 -1
- data/app/models/user.rb +17 -23
- data/app/services/user_manager.rb +15 -18
- data/app/services/user_profile_handler.rb +28 -0
- data/app/uploaders/avatar_uploader.rb +1 -5
- data/app/uploaders/editable_page_image_uploader.rb +1 -1
- data/app/views/admin/agents/entity/_in_list.html.erb +3 -3
- data/app/views/admin/agents/show.html.erb +10 -2
- data/app/views/admin/browsers/entity/_in_list.html.erb +3 -3
- data/app/views/admin/browsers/show.html.erb +2 -2
- data/app/views/admin/codes/entity/_in_list.html.erb +1 -1
- data/app/views/admin/codes/show.html.erb +1 -1
- data/app/views/admin/editable_pages/entity/_in_list.html.erb +7 -1
- data/app/views/admin/editable_pages/show.html.erb +26 -19
- data/app/views/admin/feedback_requests/entity/_in_list.html.erb +1 -1
- data/app/views/admin/index/_biovision_base.html.erb +1 -0
- data/app/views/admin/media_files/entity/_in_list.html.erb +1 -1
- data/app/views/admin/media_files/show.html.erb +2 -2
- data/app/views/admin/media_folders/entity/_in_list.html.erb +2 -2
- data/app/views/admin/media_folders/files.html.erb +1 -1
- data/app/views/admin/media_folders/show.html.erb +6 -4
- data/app/views/admin/metrics/_list.html.erb +2 -2
- data/app/views/admin/metrics/show.html.erb +2 -2
- data/app/views/admin/privilege_groups/entity/_in_list.html.erb +1 -1
- data/app/views/admin/privilege_groups/show.html.erb +1 -1
- data/app/views/admin/privileges/entity/_in_list.html.erb +4 -4
- data/app/views/admin/privileges/show.html.erb +4 -4
- data/app/views/admin/privileges/users.html.erb +1 -1
- data/app/views/admin/stored_values/entity/_in_list.html.erb +1 -1
- data/app/views/admin/stored_values/show.html.erb +1 -1
- data/app/views/admin/tokens/entity/_in_list.html.erb +2 -2
- data/app/views/admin/tokens/show.html.erb +2 -2
- data/app/views/admin/users/codes.html.erb +1 -1
- data/app/views/admin/users/entity/_in_list.html.erb +3 -2
- data/app/views/admin/users/entity/_privilege.html.erb +1 -1
- data/app/views/admin/users/entity/_profile.html.erb +17 -0
- data/app/views/admin/users/privileges.html.erb +1 -1
- data/app/views/admin/users/search.jbuilder +2 -2
- data/app/views/admin/users/show.html.erb +34 -49
- data/app/views/admin/users/tokens.html.erb +1 -1
- data/app/views/agents/_agent.jbuilder +1 -1
- data/app/views/agents/edit.html.erb +1 -1
- data/app/views/authentication/_form.html.erb +1 -1
- data/app/views/authentication/create.jbuilder +10 -0
- data/app/views/browsers/edit.html.erb +1 -1
- data/app/views/codes/edit.html.erb +1 -1
- data/app/views/editable_pages/_form.html.erb +116 -61
- data/app/views/editable_pages/edit.html.erb +1 -1
- data/app/views/index/index.html.erb +8 -6
- data/app/views/index/index/_custom_dashboard.html.erb +0 -0
- data/app/views/index/index/_default_dashboard.html.erb +2 -0
- data/app/views/index/index/_editable.html.erb +9 -0
- data/app/views/layouts/admin/_header.html.erb +1 -1
- data/app/views/layouts/application/_header.html.erb +1 -1
- data/app/views/layouts/application/header/authentication/_links.html.erb +3 -3
- data/app/views/layouts/application/header/authentication/_plate.html.erb +1 -1
- data/app/views/layouts/profile.html.erb +23 -0
- data/app/views/layouts/profile/_footer.html.erb +11 -0
- data/app/views/layouts/profile/_header.html.erb +9 -0
- data/app/views/layouts/profile/header/_navigation.html.erb +0 -0
- data/app/views/media_files/edit.html.erb +1 -1
- data/app/views/media_folders/_form.html.erb +0 -2
- data/app/views/media_folders/edit.html.erb +1 -1
- data/app/views/media_folders/new.html.erb +1 -1
- data/app/views/metrics/edit.html.erb +2 -2
- data/app/views/my/index/index.html.erb +9 -14
- data/app/views/my/index/index/_dashboard.html.erb +12 -0
- data/app/views/my/index/index/_sidebar.html.erb +11 -0
- data/app/views/my/login_attempts/index.html.erb +1 -1
- data/app/views/my/profiles/_nav_item.html.erb +1 -1
- data/app/views/my/profiles/edit.js.erb +1 -0
- data/app/views/my/profiles/edit/_form.html.erb +130 -116
- data/app/views/my/profiles/edit/form/_profile_data.html.erb +53 -0
- data/app/views/my/profiles/new.js.erb +1 -0
- data/app/views/my/profiles/new/_form.html.erb +100 -53
- data/app/views/my/tokens/_toggleable.html.erb +1 -1
- data/app/views/my/tokens/index.html.erb +1 -1
- data/app/views/privilege_groups/edit.html.erb +1 -1
- data/app/views/privileges/edit.html.erb +1 -1
- data/app/views/profiles/_profile.html.erb +5 -6
- data/app/views/shared/_pagination.jbuilder +4 -0
- data/app/views/shared/admin/_list_with_priority.html.erb +6 -1
- data/app/views/shared/forms/_list_of_errors.js.erb +2 -0
- data/app/views/shared/forms/_wysiwyg.html.erb +11 -0
- data/app/views/shared/forms/errors.js.erb +5 -0
- data/app/views/stored_values/edit.html.erb +1 -1
- data/app/views/tokens/edit.html.erb +1 -1
- data/app/views/users/_form.html.erb +141 -83
- data/app/views/users/check.jbuilder +4 -0
- data/app/views/users/edit.html.erb +1 -1
- data/app/views/users/form/_profile_data.html.erb +53 -0
- data/app/views/users/new.html.erb +1 -1
- data/config/locales/common-en.yml +2 -0
- data/config/locales/common-ru.yml +2 -0
- data/config/locales/editable-pages-en.yml +5 -4
- data/config/locales/editable-pages-ru.yml +5 -4
- data/config/locales/users-en.yml +388 -0
- data/config/locales/users-ru.yml +8 -3
- data/config/routes.rb +127 -103
- data/db/migrate/20170302000001_create_users.rb +2 -0
- data/db/migrate/20170320000000_create_editable_pages.rb +1 -1
- data/db/migrate/20180321000000_add_profile_data_to_users.rb +31 -0
- data/lib/biovision/base/base_methods.rb +37 -7
- data/lib/biovision/base/engine.rb +1 -1
- data/lib/biovision/base/privilege_methods.rb +1 -1
- data/lib/biovision/base/version.rb +1 -1
- metadata +27 -6
- data/app/assets/stylesheets/biovision/base/buttons.scss +0 -195
- data/app/assets/stylesheets/biovision/base/layout.scss +0 -193
- data/app/views/editable_pages/form/_ckeditor.html.erb +0 -11
- data/db/migrate/20170302000002_create_user_profiles.rb +0 -21
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="toggleable" data-url="<%= toggle_my_token_path(entity.id) %>">
|
1
|
+
<div class="toggleable" data-url="<%= toggle_my_token_path(id: entity.id) %>">
|
2
2
|
<% Token.toggleable_attributes.each do |flag| %>
|
3
3
|
<span class="<%= entity.attributes[flag.to_s] ? 'active' : 'inactive' %>" data-flag="<%= flag %>">
|
4
4
|
<%= t("activerecord.attributes.token.#{flag}") %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% content_for :meta_title, t('.title', page: current_page) %>
|
2
2
|
<% content_for :breadcrumbs do %>
|
3
|
-
<%= link_to(t('my.profiles.nav_item.text'),
|
3
|
+
<%= link_to(t('my.profiles.nav_item.text'), my_path) %>
|
4
4
|
<span><%= t('my.tokens.nav_item.text') %></span>
|
5
5
|
<% end %>
|
6
6
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<h1><%= t('.heading') %></h1>
|
10
10
|
|
11
11
|
<ul class="actions">
|
12
|
-
<li><%= return_icon(admin_privilege_group_path(@entity.id)) %></li>
|
12
|
+
<li><%= return_icon(admin_privilege_group_path(id: @entity.id)) %></li>
|
13
13
|
<li class="danger"><%= destroy_icon(@entity) %></li>
|
14
14
|
</ul>
|
15
15
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<article>
|
12
12
|
<h1><%= t('.title') %></h1>
|
13
13
|
<ul class="actions">
|
14
|
-
<li><%= back_icon(admin_privilege_path(@entity.id)) %></li>
|
14
|
+
<li><%= back_icon(admin_privilege_path(id: @entity.id)) %></li>
|
15
15
|
<% if @entity.can_be_deleted? %>
|
16
16
|
<li class="danger"><%= destroy_icon(@entity) %></li>
|
17
17
|
<% end %>
|
@@ -3,13 +3,13 @@
|
|
3
3
|
|
4
4
|
<% if current_user_has_privilege?(:administrator) %>
|
5
5
|
<ul class="actions">
|
6
|
-
<li><%= gear_icon(admin_user_path(user)) %></li>
|
6
|
+
<li><%= gear_icon(admin_user_path(id: user.id)) %></li>
|
7
7
|
</ul>
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
<% if current_user == user %>
|
11
11
|
<nav>
|
12
|
-
<%= link_to t(:edit), edit_my_profile_path %>
|
12
|
+
<%= link_to t(:edit), edit_my_profile_path, class: 'button-action' %>
|
13
13
|
</nav>
|
14
14
|
<% end %>
|
15
15
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<dt><%= t('activerecord.attributes.user.last_seen') %></dt>
|
26
26
|
<dd><%= time_tag user.last_seen %></dd>
|
27
27
|
<% end %>
|
28
|
-
<% unless user.
|
28
|
+
<% unless user.profile_data['name'].blank? %>
|
29
29
|
<dt><%= t('activerecord.attributes.user_profile.name') %></dt>
|
30
30
|
<dd><%= user.full_name %></dd>
|
31
31
|
<% end %>
|
@@ -33,10 +33,9 @@
|
|
33
33
|
<dt><%= t('activerecord.attributes.user.email') %></dt>
|
34
34
|
<dd><%= user.email %></dd>
|
35
35
|
<% end %>
|
36
|
-
<% unless user.
|
36
|
+
<% unless user.profile_data['gender'].blank? %>
|
37
37
|
<dt><%= t('activerecord.attributes.user_profile.gender') %></dt>
|
38
|
-
<dd><%=
|
38
|
+
<dd><%= gender_name(user.profile_data['gender']) %></dd>
|
39
39
|
<% end %>
|
40
40
|
</dl>
|
41
|
-
|
42
41
|
</article>
|
@@ -1,6 +1,10 @@
|
|
1
1
|
if collection.respond_to?(:current_page)
|
2
2
|
json.links do
|
3
3
|
json.self url_for(page: collection.current_page, format: :json)
|
4
|
+
json.first url_for(page: 1, format: :json)
|
5
|
+
unless collection.prev_page.nil?
|
6
|
+
json.prev url_for(page: collection.prev_page, format: :json)
|
7
|
+
end
|
4
8
|
unless collection.next_page.nil?
|
5
9
|
json.next url_for(page: collection.next_page, format: :json)
|
6
10
|
end
|
@@ -2,7 +2,12 @@
|
|
2
2
|
<ol class="list-of-entities">
|
3
3
|
<% collection.each do |entity| %>
|
4
4
|
<li data-id="<%= entity.id %>" data-number="<%= entity.priority %>">
|
5
|
-
<%=
|
5
|
+
<%=
|
6
|
+
render(
|
7
|
+
partial: "admin/#{entity.class.table_name}/entity/in_list",
|
8
|
+
locals: { entity: entity }
|
9
|
+
)
|
10
|
+
%>
|
6
11
|
</li>
|
7
12
|
<% end %>
|
8
13
|
</ol>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<script src="//cdn.ckeditor.com/4.8.0/full/ckeditor.js"></script>
|
2
|
+
<script>
|
3
|
+
document.addEventListener('DOMContentLoaded', function () {
|
4
|
+
document.querySelectorAll('form [data-wysiwyg]').forEach(function(editor) {
|
5
|
+
CKEDITOR.replace(editor, {
|
6
|
+
filebrowserUploadUrl: '/media_files/ckeditor',
|
7
|
+
removePlugins: 'forms,save,preview,flash,bidi,language,print,templates,newpage,iframe,about,scayt,wsc',
|
8
|
+
});
|
9
|
+
});
|
10
|
+
});
|
11
|
+
</script>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<h1><%= t('.heading') %></h1>
|
10
10
|
|
11
11
|
<ul class="actions">
|
12
|
-
<li><%= return_icon(admin_stored_value_path(@entity.id)) %></li>
|
12
|
+
<li><%= return_icon(admin_stored_value_path(id: @entity.id)) %></li>
|
13
13
|
<li class="danger"><%= destroy_icon(@entity) %></li>
|
14
14
|
</ul>
|
15
15
|
|
@@ -1,89 +1,147 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<%=
|
4
|
-
|
5
|
-
|
6
|
-
<
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
</
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
1
|
+
<% entity_type = entity.class.to_s.underscore %>
|
2
|
+
<%= form_with(model: entity, html: { id: "#{entity_type}-form" }) do |f| %>
|
3
|
+
<%= render partial: 'shared/list_of_errors', locals: { entity: entity } %>
|
4
|
+
|
5
|
+
<dl>
|
6
|
+
<dt><%= f.label :image %></dt>
|
7
|
+
<dd>
|
8
|
+
<figure id="<%= entity_type %>-image" role="group" class="preview">
|
9
|
+
<%= f.label(:image, image_tag(entity.image.profile.url)) %>
|
10
|
+
<figcaption>
|
11
|
+
<%=
|
12
|
+
f.file_field(
|
13
|
+
:image,
|
14
|
+
id: :user_image,
|
15
|
+
accept: 'image/jpeg,image/png',
|
16
|
+
data: { image: "#{entity_type}-image" }
|
17
|
+
)
|
18
|
+
%>
|
19
|
+
</figcaption>
|
20
|
+
</figure>
|
21
|
+
</dd>
|
22
|
+
|
23
|
+
<dt><%= f.label :screen_name %></dt>
|
24
|
+
<dd>
|
25
|
+
<%=
|
26
|
+
f.text_field(
|
27
|
+
:screen_name,
|
28
|
+
maxlength: User::SCREEN_NAME_LIMIT,
|
29
|
+
pattern: User::SCREEN_NAME_PATTERN_HTML,
|
30
|
+
title: t('.guidelines.screen_name'),
|
31
|
+
required: true
|
32
|
+
)
|
33
|
+
%>
|
34
|
+
<div class="guideline"><%= t('.guidelines.screen_name') %></div>
|
35
|
+
</dd>
|
36
|
+
|
37
|
+
<dt><%= f.label :email %></dt>
|
38
|
+
<dd>
|
39
|
+
<%=
|
40
|
+
f.email_field(
|
41
|
+
:email,
|
42
|
+
id: :user_email,
|
43
|
+
size: nil,
|
44
|
+
maxlength: User::EMAIL_LIMIT,
|
45
|
+
readonly: entity.super_user?
|
46
|
+
)
|
47
|
+
%>
|
48
|
+
</dd>
|
49
|
+
|
50
|
+
<dt><%= f.label :phone %></dt>
|
51
|
+
<dd>
|
52
|
+
<%=
|
53
|
+
f.phone_field(
|
54
|
+
:phone,
|
55
|
+
id: :user_phone,
|
56
|
+
size: 15,
|
57
|
+
maxlength: User::PHONE_LIMIT,
|
58
|
+
readonly: entity.super_user?
|
59
|
+
)
|
60
|
+
%>
|
61
|
+
</dd>
|
62
|
+
|
63
|
+
<dt><%= f.label :birthday %></dt>
|
64
|
+
<dd>
|
65
|
+
<%=
|
66
|
+
f.date_field(
|
67
|
+
:birthday,
|
68
|
+
id: :user_birthday,
|
69
|
+
size: 10
|
70
|
+
)
|
71
|
+
%>
|
72
|
+
</dd>
|
73
|
+
|
74
|
+
<% if entity.id.blank? || !entity.super_user? %>
|
75
|
+
<dt><%= f.label :password %></dt>
|
45
76
|
<dd>
|
46
|
-
<%=
|
77
|
+
<%=
|
78
|
+
f.text_field(
|
79
|
+
:password,
|
80
|
+
id: :user_password,
|
81
|
+
size: nil,
|
82
|
+
maxlength: 70,
|
83
|
+
required: entity.id.nil?
|
84
|
+
)
|
85
|
+
%>
|
47
86
|
</dd>
|
48
87
|
|
49
|
-
<dt><%=
|
88
|
+
<dt><%= f.label :password_confirmation %></dt>
|
50
89
|
<dd>
|
51
|
-
<%=
|
90
|
+
<%=
|
91
|
+
f.text_field(
|
92
|
+
:password_confirmation,
|
93
|
+
id: :user_password_confirmation,
|
94
|
+
size: nil,
|
95
|
+
maxlength: 70,
|
96
|
+
required: entity.id.nil?
|
97
|
+
)
|
98
|
+
%>
|
52
99
|
</dd>
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
100
|
+
<% end %>
|
101
|
+
|
102
|
+
<%= render partial: 'users/form/profile_data', locals: { data: entity.profile_data } %>
|
103
|
+
|
104
|
+
<dt><%= f.label :notice %></dt>
|
105
|
+
<dd>
|
106
|
+
<%=
|
107
|
+
f.text_field(
|
108
|
+
:notice,
|
109
|
+
id: :user_notice,
|
110
|
+
size: nil,
|
111
|
+
maxlength: User::NOTICE_LIMIT
|
112
|
+
)
|
113
|
+
%>
|
114
|
+
<div class="guideline"><%= t('.guidelines.notice') %></div>
|
115
|
+
</dd>
|
116
|
+
|
117
|
+
<dt><%= t(:flags) %></dt>
|
118
|
+
<dd>
|
119
|
+
<ul>
|
120
|
+
<li>
|
121
|
+
<%= f.check_box :bot, id: :user_bot %>
|
122
|
+
<%= f.label :bot %>
|
123
|
+
</li>
|
124
|
+
<li>
|
125
|
+
<%= f.check_box :allow_login, id: :user_allow_login %>
|
126
|
+
<%= f.label :allow_login %>
|
127
|
+
</li>
|
128
|
+
<li>
|
129
|
+
<%= f.check_box :email_confirmed, id: :user_email_confirmed %>
|
130
|
+
<%= f.label :email_confirmed %>
|
131
|
+
</li>
|
132
|
+
<li>
|
133
|
+
<%= f.check_box :phone_confirmed, id: :user_phone_confirmed %>
|
134
|
+
<%= f.label :phone_confirmed %>
|
135
|
+
</li>
|
136
|
+
<li>
|
137
|
+
<%= f.check_box :allow_mail, id: :user_allow_mail %>
|
138
|
+
<%= f.label :allow_mail %>
|
139
|
+
</li>
|
140
|
+
</ul>
|
141
|
+
</dd>
|
142
|
+
</dl>
|
143
|
+
|
144
|
+
<div class="buttons">
|
145
|
+
<%= f.button t(:save), type: :submit, class: 'button-save' %>
|
146
|
+
</div>
|
89
147
|
<% end %>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<article>
|
9
9
|
<h1><%= t('.heading') %></h1>
|
10
10
|
<ul class="actions">
|
11
|
-
<li><%= back_icon(admin_user_path(@entity.id)) %></li>
|
11
|
+
<li><%= back_icon(admin_user_path(id: @entity.id)) %></li>
|
12
12
|
<% unless @entity.deleted? %>
|
13
13
|
<li class="danger"><%= destroy_icon @entity %></li>
|
14
14
|
<% end %>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<dt>
|
2
|
+
<%= label_tag :user_profile_name, t('activerecord.attributes.user_profile.name') %>
|
3
|
+
</dt>
|
4
|
+
<dd>
|
5
|
+
<%=
|
6
|
+
text_field_tag(
|
7
|
+
'user_profile[name]',
|
8
|
+
data['name'],
|
9
|
+
size: nil,
|
10
|
+
maxlength: 50
|
11
|
+
)
|
12
|
+
%>
|
13
|
+
</dd>
|
14
|
+
|
15
|
+
<dt>
|
16
|
+
<%= label_tag :user_profile_patronymic, t('activerecord.attributes.user_profile.patronymic') %>
|
17
|
+
</dt>
|
18
|
+
<dd>
|
19
|
+
<%=
|
20
|
+
text_field_tag(
|
21
|
+
'user_profile[patronymic]',
|
22
|
+
data['patronymic'],
|
23
|
+
size: nil,
|
24
|
+
maxlength: 50
|
25
|
+
)
|
26
|
+
%>
|
27
|
+
</dd>
|
28
|
+
|
29
|
+
<dt>
|
30
|
+
<%= label_tag :user_profile_surname, t('activerecord.attributes.user_profile.surname') %>
|
31
|
+
</dt>
|
32
|
+
<dd>
|
33
|
+
<%=
|
34
|
+
text_field_tag(
|
35
|
+
'user_profile[surname]',
|
36
|
+
data['surname'],
|
37
|
+
size: nil,
|
38
|
+
maxlength: 50
|
39
|
+
)
|
40
|
+
%>
|
41
|
+
</dd>
|
42
|
+
|
43
|
+
<dt>
|
44
|
+
<%= label_tag :user_profile_gender, t('activerecord.attributes.user_profile.gender') %>
|
45
|
+
</dt>
|
46
|
+
<dd>
|
47
|
+
<%=
|
48
|
+
select_tag(
|
49
|
+
'user_profile[gender]',
|
50
|
+
options_for_select(genders_for_select, data['gender'])
|
51
|
+
)
|
52
|
+
%>
|
53
|
+
</dd>
|