diff --git a/app/views/extranet/account/show.html.erb b/app/views/extranet/account/show.html.erb index f6b90236610617d51317a1b0dfe7031021a90be2..94c129d7fd2c1cb295128e1f5e0f96f98db65cd9 100644 --- a/app/views/extranet/account/show.html.erb +++ b/app/views/extranet/account/show.html.erb @@ -11,7 +11,7 @@ <%= link_to University::Person::Experience.human_attribute_name('new'), new_experience_path, class: 'btn btn-sm btn-secondary float-end mb-4' %> - <p class="mb-4">Parcours professionel</p> + <p class="mb-4"><%= t('extranet.experiences.title') %></p> <br> <% if @person&.experiences.any? %> <ul> diff --git a/app/views/extranet/application/_nav.html.erb b/app/views/extranet/application/_nav.html.erb index 58e9bcb70542ef89bdb8a15e2e4e65ea81719153..a1588bd37b929e9ecd8335bd50819941ef187abf 100644 --- a/app/views/extranet/application/_nav.html.erb +++ b/app/views/extranet/application/_nav.html.erb @@ -4,7 +4,7 @@ <%= render 'logo' %> </a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#menu" aria-controls="menu" aria-expanded="false" aria-label="Toggle menu"> - menu <span class="navbar-toggler-icon"></span> + <%= t('extranet.menu') %> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="menu"> <%= render_navigation %> diff --git a/app/views/extranet/experiences/_form.html.erb b/app/views/extranet/experiences/_form.html.erb index 1c90372f669d745c6eab6da415be9e77eeec0736..a778a5f40eeba0ce8775193905023b98e453517c 100644 --- a/app/views/extranet/experiences/_form.html.erb +++ b/app/views/extranet/experiences/_form.html.erb @@ -13,7 +13,6 @@ </div> <div class="col-lg-6"> <%= f.association :organization, include_blank: false %> - <%= link_to 'Créer une nouvelle organisation', '', class: 'btn btn-sm btn-secondary mb-4' %> </div> </div> <%= submit f %> diff --git a/app/views/extranet/home/index.html.erb b/app/views/extranet/home/index.html.erb index 7d9c5114a1207408cd0248a5b0db374b85022f2a..66347c280c99ea3a83f0a8fd537285be59e008fd 100644 --- a/app/views/extranet/home/index.html.erb +++ b/app/views/extranet/home/index.html.erb @@ -2,7 +2,7 @@ <div class="row"> <div class="col-md-8"> - <h2>Mouvements récents</h2> + <h2><%= t('extranet.home.recent_experiences') %></h2> <div class="experiences"> <ul> <% @experiences.ordered.each do |experience| %> @@ -25,7 +25,7 @@ <%= experience.person.first_name %> <%= experience.person.last_name %> <br> <%= experience.description %> - <%= '—' if experience.description.present? && experience.organization.present? %> + <%= '—' if experience.description.present? && experience.organization.present? %> <%= experience.organization %> </p> <small><%= l experience.created_at.to_date, format: :long %></small> @@ -46,7 +46,7 @@ <div class="col-md-4 mt-5 mt-md-0"> - <h2>Promotions récentes</h2> + <h2><%= t('extranet.home.recent_cohorts') %></h2> <ul class="promotions"> <% @cohorts.each do |cohort| %> <li> diff --git a/app/views/extranet/organizations/show.html.erb b/app/views/extranet/organizations/show.html.erb index 67d044f7d9422422cebad5a343c9b20bf882274f..c32ad0d8e8ec1c7fd8a35a1bd53b452a91670d9b 100644 --- a/app/views/extranet/organizations/show.html.erb +++ b/app/views/extranet/organizations/show.html.erb @@ -22,7 +22,7 @@ <p><%= @organization.text %></p> </div> <div class="experiences"> - <p class="mb-4">Alumni dans cette organisation (<%= @organization.experiences.count %>)</p> + <p class="mb-4"><%= t('extranet.organization.experiences', count: @organization.experiences.count) %></p> <ul> <% @organization.experiences.ordered.each do |experience| %> <li class="mb-3"> diff --git a/app/views/extranet/persons/show.html.erb b/app/views/extranet/persons/show.html.erb index ad3730db9f88516722aaf8f7cc3eef93837b44d1..fa86bd2198825d6a93d2eafac9480391abb890ce 100644 --- a/app/views/extranet/persons/show.html.erb +++ b/app/views/extranet/persons/show.html.erb @@ -9,7 +9,7 @@ </div> <% if @person&.experiences.any? %> <div class="experiences"> - <p class="mb-4">Parcours professionel</p> + <p class="mb-4"><%= t('extranet.experiences.title') %></p> <ul> <% @person.experiences.ordered.each do |experience| %> <%= render 'extranet/experiences/experience', experience: experience %> diff --git a/config/locales/extranet/en.yml b/config/locales/extranet/en.yml index 0311a59b03224c55d0871cc6620a9a61a3886229..44d243513f633d0754e9d00d4f410cea0dd1eb40 100644 --- a/config/locales/extranet/en.yml +++ b/config/locales/extranet/en.yml @@ -5,5 +5,15 @@ en: edit: Edit updated: Updated logout: Log out + errors: + email_not_allowed: is not authorized to access this extranet. + email_not_allowed_with_contact: is not authorized to access this extranet. Contact %{contact} for more information. experiences: new: Add experience + title: Professional path + home: + recent_cohorts: Recent cohorts + recent_experiences: Recent experiences + menu: Menu + organization: + experiences: Alumni in this organization (%{count}) diff --git a/config/locales/extranet/fr.yml b/config/locales/extranet/fr.yml index 91e718ba30fa6c7bbb038dfd3c05589112b0442d..ad237f29afc03f1e3ee2c6f3f27264a08f1a596d 100644 --- a/config/locales/extranet/fr.yml +++ b/config/locales/extranet/fr.yml @@ -10,3 +10,10 @@ fr: email_not_allowed_with_contact: n'est pas autorisé à accéder à cet extranet. Contactez %{contact} pour en savoir plus. experiences: new: Ajouter une expérience + title: Parcours professionnel + home: + recent_cohorts: Promotions récentes + recent_experiences: Mouvements récents + menu: Menu + organization: + experiences: Alumni dans cette organisation (%{count})