|
13 | 13 | <div class="border py-1 px-2 rounded mb-3">
|
14 | 14 | <div class="d-flex gap-1">
|
15 | 15 | <%= image_tag 'person-fill', width: '28rem', class: 'mb-2' %>
|
16 |
| - <h3><%= PersonalInfo.model_name.human %></h3> |
| 16 | + <h3><%= PersonalInfo.model_name.human %></h3> |
17 | 17 | </div>
|
18 | 18 | <%= render 'personal_info', personal_info: personal_info, user_is_owner: user_is_owner %>
|
19 | 19 | <%= link_to 'Editar Informações Pessoais', edit_user_profile_path, class:'btn btn-secondary mx-4 mb-3' if user_is_owner %>
|
|
27 | 27 | <h3><%= ProfessionalInfo.model_name.human %></h3>
|
28 | 28 | </div>
|
29 | 29 | <% end %>
|
30 |
| - |
| 30 | + |
31 | 31 | <p>
|
32 | 32 | <%= link_to 'Adicionar Experiência Profissional', new_user_profile_professional_info_path, class:'btn btn-primary' if user_is_owner %>
|
33 | 33 | </p>
|
|
64 | 64 | </p>
|
65 | 65 | <% end %>
|
66 | 66 | </div>
|
67 |
| - |
| 67 | + |
68 | 68 | <div class="border py-1 px-2 rounded mb-3">
|
69 | 69 | <% if profile.education_infos.visibles_list.any? || user_is_owner %>
|
70 | 70 | <div class="d-flex gap-2">
|
|
77 | 77 | </p>
|
78 | 78 | <% profile.education_infos.each do |education_info| %>
|
79 | 79 | <% if education_info.visibility || user_is_owner %>
|
80 |
| - <h4> |
| 80 | + <h4> |
81 | 81 | <%= EducationInfo.human_attribute_name(:institution) %>: <%= education_info.institution %>
|
82 | 82 | </h4>
|
83 | 83 | <ul>
|
|
104 | 104 | </div>
|
105 | 105 | </div>
|
106 | 106 | <div id='profile-job-categories' class="border py-1 px-2 rounded mb-3">
|
107 |
| - <% if profile.profile_job_categories.any? || user_is_owner %> |
| 107 | + <% if profile.profile_job_categories.any? || user_is_owner %> |
108 | 108 | <div class="d-flex gap-1">
|
109 | 109 | <%= image_tag 'person-working', width: '28rem', class: 'mb-2 mx-1' %>
|
110 | 110 | <h3><%= t('content.section_title') %></h3>
|
111 | 111 | </div>
|
112 |
| - <% end %> |
| 112 | + <% end %> |
113 | 113 |
|
114 | 114 | <%= link_to t('links.new_profile_job_category_path'), new_profile_job_category_path, class:'btn btn-primary' if user_is_owner %>
|
115 | 115 | <div class='mt-2'>
|
116 | 116 | <% profile.profile_job_categories.each do |profile_job_category| %>
|
117 | 117 | <p><strong><%= profile_job_category.job_category.name %></strong></p>
|
118 |
| - <% if profile_job_category.description.present? %> |
119 |
| - <p><%= profile_job_category.description %></p> |
120 |
| - <% else %> |
121 |
| - <p><%= t('content.profile_job_category_without_description') %></p> |
122 |
| - <% end %> |
| 118 | + <div class='d-flex row'> |
| 119 | + <div class='d-flex column col-6 align-text-top'> |
| 120 | + <% if profile_job_category.description.present? %> |
| 121 | + <p><%= profile_job_category.description %></p> |
| 122 | + <% else %> |
| 123 | + <p><%= t('content.profile_job_category_without_description') %></p> |
| 124 | + <% end %> |
| 125 | + </div> |
| 126 | + <% if profile.user == current_user %> |
| 127 | + <div class='d-flex column col-6'> |
| 128 | + <%= button_to edit_profile_job_category_path(profile_job_category), method: :get, class:'btn btn-sm btn-edit-category' do %> |
| 129 | + <%= image_tag 'edit-icon', width: '20rem', height: '20rem' %> |
| 130 | + <% end %> |
| 131 | + <%= button_to profile_job_category_path(profile_job_category), method: :delete, class:'btn btn-sm btn-delete-category' do %> |
| 132 | + <%= image_tag 'x-icon', width: '20rem', height: '20rem' %> |
| 133 | + <% end %> |
| 134 | + </div> |
| 135 | + <% end %> |
| 136 | + </div> |
123 | 137 | <% end %>
|
124 | 138 | </div>
|
125 | 139 | </div>
|
0 commit comments