forked from nanego/my-dcim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added translations for card type resource
- Loading branch information
Maximilien Bausson
committed
Oct 13, 2023
1 parent
db0dd87
commit 57b0830
Showing
8 changed files
with
95 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<div class="page-header"> | ||
<%= link_to card_types_path, class: 'btn btn-default' do %> | ||
<span class="glyphicon glyphicon-list-alt"></span> | ||
Retour | ||
<%= t("action.back") %> | ||
<% end %> | ||
<h1>Nouvelle carte</h1> | ||
<h1> | ||
<%= t(".title") %> | ||
</h1> | ||
</div> | ||
|
||
<%= render 'form' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
<div class="page-header"> | ||
<%= link_to card_types_path, class: 'btn btn-default' do %> | ||
<span class="glyphicon glyphicon-list-alt"></span> | ||
Retour | ||
<%= t("action.back") %> | ||
<% end %> | ||
<%= link_to edit_card_type_path(@card_type), class: 'btn btn-primary' do %> | ||
<span class="glyphicon glyphicon-pencil"></span> | ||
Edit | ||
<%= t("action.edit") %> | ||
<% end %> | ||
<h1>Voir card type</h1> | ||
<h1> | ||
<%= t(".title") %> | ||
</h1> | ||
</div> | ||
|
||
<dl class="dl-horizontal"> | ||
<dt>Nom :</dt> | ||
<dt> | ||
<%= CardType.human_attribute_name(:name) %> : | ||
</dt> | ||
<dd><%= @card_type %></dd> | ||
|
||
<dt>Type de port :</dt> | ||
<dt> | ||
<%= CardType.model_name.human %> : | ||
</dt> | ||
<dd><%= @card_type.port_type.try(:name) %></dd> | ||
|
||
<dt>Nombre de ports :</dt> | ||
<dt> | ||
<%= CardType.human_attribute_name(:port_quantity_label) %> : | ||
</dt> | ||
<dd><%= @card_type.port_quantity %></dd> | ||
|
||
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters