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.
- Loading branch information
Maximilien Bausson
committed
Oct 10, 2023
1 parent
eb73e2c
commit 45f9137
Showing
16 changed files
with
280 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<li class="list-group-item"> | ||
<fieldset> | ||
<div class="col-sm-4"> | ||
<%= f.number_field :quantity, class: "form-control", placeholder: 'quantité' %> | ||
<%= f.number_field :quantity, class: "form-control", placeholder: t(".quantity") %> | ||
</div> | ||
<div class="col-sm-4"> | ||
<%= f.collection_select :disk_type_id, DiskType.order(:quantity), :id, :to_s, class: "form-control" %> | ||
</div> | ||
<span> | ||
<%= f.hidden_field :_destroy %> | ||
<%= link_to "Supprimer", '#', class: "remove_fields pull-right" %> | ||
<%= link_to t("actions.delete"), '#', class: "remove_fields pull-right" %> | ||
</span> | ||
</fieldset> | ||
</li> |
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,14 +1,14 @@ | ||
<li class="list-group-item"> | ||
<fieldset> | ||
<div class="col-sm-4"> | ||
<%= f.number_field :quantity, class: "form-control", placeholder: 'quantité' %> | ||
<%= f.number_field :quantity, class: "form-control", placeholder: t(".quantity") %> | ||
</div> | ||
<div class="col-sm-4"> | ||
<%= f.collection_select :memory_type_id, MemoryType.order(:quantity), :id, :to_s, class: "form-control" %> | ||
</div> | ||
<span> | ||
<%= f.hidden_field :_destroy %> | ||
<%= link_to "Supprimer", '#', class: "remove_fields pull-right" %> | ||
<%= link_to t("actions.delete"), '#', class: "remove_fields pull-right" %> | ||
</span> | ||
</fieldset> | ||
</li> |
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,21 +1,23 @@ | ||
<% provide(:title, "#{@server.modele.try(:category).try(:name)} #{@server.name} - Edition") %> | ||
<% provide(:title, t(".page_title", modele: @server.modele.try(:category).try(:name), name: @server.name)) %> | ||
<%= render 'layouts/breadcrumb', breadcrumb_variables: { "Salles" => overview_rooms_path, | ||
<%= render 'layouts/breadcrumb', breadcrumb_variables: { t("breadcrumbs.rooms") => overview_rooms_path, | ||
@server.frame.room.name => room_path(@server.frame.room, view: params[:view]), | ||
"Ilot #{@server.frame.islet.name}" => room_path(@server.frame.room, islet: @server.frame.islet.name, :view => params[:view], bg: params[:bg]), | ||
"Double baie #{@server.frame.bay}" => room_path(@server.frame.room, islet: @server.frame.islet.name, 'bay-id': @server.frame.bay_id, view: params[:view]), | ||
"Baie #{@server.frame.name}" => frame_path(@server.frame, view: params[:view]), | ||
t("breadcrumbs.islet", name: @server.frame.islet.name) => room_path(@server.frame.room, islet: @server.frame.islet.name, :view => params[:view], bg: params[:bg]), | ||
t("breadcrumbs.bays.double", name: @server.frame.bay) => room_path(@server.frame.room, islet: @server.frame.islet.name, 'bay-id': @server.frame.bay_id, view: params[:view]), | ||
t("breadcrumbs.bays.simple", name: @server.frame.name) => frame_path(@server.frame, view: params[:view]), | ||
@server.name => server_path(@server), | ||
'Edition' => '' } %> | ||
t("breadcrumbs.editing") => '' } %> | ||
<div class="page-header"> | ||
<%= link_to(server_path(@server.slug), | ||
method: :delete, | ||
data: { confirm: 'Toutes les données concernant ce matériel seront supprimées, ainsi que toutes les connexions associées. Souhaitez-vous confirmer ?' }, | ||
data: { confirm: t(".delete_confirmation") }, | ||
class: 'btn btn-danger') do %> | ||
<span class="glyphicon glyphicon-alert"></span> | ||
Supprimer | ||
<%= t("actions.delete") %> | ||
<% end %> | ||
<h1>Matériel : <%= @server.name %></h1> | ||
<h1> | ||
<%= t(".title", name: @server.name) %> | ||
</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,8 +1,12 @@ | ||
<h3>Users Report</h3> | ||
<h3> | ||
<%= t(".title") %> | ||
</h3> | ||
|
||
<%= datagrid_form_for @servers %> | ||
|
||
|
||
<div class='total'>Total: <%= @servers.assets.total_count %></div> | ||
<div class='total'> | ||
<%= t(".total", count: @servers.assets.total_count) %> | ||
</div> | ||
<%= datagrid_table(@servers) %> | ||
<%= paginate @servers.assets %> |
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
Oops, something went wrong.