Skip to content

Commit

Permalink
Feauture: add acronym column in the agents table in the admin page (#704
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Bilelkihal authored Jul 4, 2024
1 parent 5a78c27 commit c878ab0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/agents/_agent.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
%div{style: 'width: 250px'}
%div.text-truncate{title: agent.name}
= agent.name
%td
= agent.acronym
%td
= raw display_identifiers(agent.identifiers)
%td
Expand Down
1 change: 1 addition & 0 deletions app/views/agents/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
= render TableComponent.new(id: 'admin_agents', custom_class: 'border rounded p-1') do |t|
- t.header do |h|
- h.th {t("agents.index.first_name")}
- h.th {t("agents.index.acronym")}
- h.th {t("agents.form.identifiers")}
- h.th {t("agents.form.affiliations")}
- h.th {t("agents.form.type")}
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ en:
index:
create_new_agent: Create New Agent
first_name: First name
acronym: Acronym
usages: Usages
actions: Actions
no_agents: There are currently no agents.
Expand Down
1 change: 1 addition & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ fr:
index:
create_new_agent: Créer un nouvel agent
first_name: Prénom
acronym: Acronyme
usages: Utilisations
actions: Actions
no_agents: Il n'y a actuellement aucun agent.
Expand Down

0 comments on commit c878ab0

Please sign in to comment.