mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Update inventory modals
This commit is contained in:
parent
6726a19cbe
commit
6352a4ba9b
|
@ -11,3 +11,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#rename-repo-modal {
|
||||||
|
.modal-footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#create-repo-modal {
|
||||||
|
.modal-footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#new_repository {
|
||||||
|
.modal-footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -8,23 +8,23 @@
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title"><%= t("repositories.index.modal_copy.title_html", name: @repository.name ) %></h4>
|
<h3 class="modal-title"><%= t("repositories.index.modal_copy.title_html", name: @repository.name ) %></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||||||
<div class="form-group">
|
<div class="form-group sci-input-container">
|
||||||
<%= f.text_field :name,
|
<%= f.text_field :name,
|
||||||
label: t("repositories.index.modal_copy.name"),
|
label: t("repositories.index.modal_copy.name"),
|
||||||
help: t("repositories.index.modal_copy.description"),
|
help: t("repositories.index.modal_copy.description"),
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
class: "sci-input-field",
|
||||||
placeholder: t("repositories.index.modal_copy.name_placeholder") %>
|
placeholder: t("repositories.index.modal_copy.name_placeholder") %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t "general.cancel" %></button>
|
|
||||||
<%= f.submit t("repositories.index.modal_copy.copy"), class: "btn btn-success" %>
|
<%= f.submit t("repositories.index.modal_copy.copy"), class: "btn btn-success" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,18 +4,20 @@
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title" id="create-repo-modal-label">
|
<h3 class="modal-title" id="create-repo-modal-label">
|
||||||
<%= t("repositories.index.modal_create.title") %>
|
<%= t("repositories.index.modal_create.title") %>
|
||||||
</h4>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
<div class="form-group sci-input-container">
|
||||||
<%= f.text_field :name,
|
<%= f.text_field :name,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
label: t("repositories.index.modal_create.name_label"),
|
label: t("repositories.index.modal_create.name_label"),
|
||||||
|
class: "sci-input-field",
|
||||||
placeholder: t("repositories.index.modal_create.name_placeholder") %>
|
placeholder: t("repositories.index.modal_create.name_placeholder") %>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t("general.cancel") %></button>
|
|
||||||
<%= f.submit t("repositories.index.modal_create.submit"), class: "btn btn-success" %>
|
<%= f.submit t("repositories.index.modal_create.submit"), class: "btn btn-success" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,22 +8,22 @@
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title"><%= t("repositories.index.modal_rename.title_html", name: @repository.name ) %></h4>
|
<h3 class="modal-title"><%= t("repositories.index.modal_rename.title_html", name: @repository.name ) %></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||||||
<div class="form-group">
|
<div class="form-group sci-input-container">
|
||||||
<%= f.text_field :name,
|
<%= f.text_field :name,
|
||||||
label: t("repositories.index.modal_rename.name"),
|
label: t("repositories.index.modal_rename.name"),
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
class: "sci-input-field",
|
||||||
placeholder: t("repositories.index.modal_rename.name_placeholder") %>
|
placeholder: t("repositories.index.modal_rename.name_placeholder") %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%=t "general.cancel" %></button>
|
|
||||||
<%= f.submit t("repositories.index.modal_rename.rename"), class: "btn btn-success" %>
|
<%= f.submit t("repositories.index.modal_rename.rename"), class: "btn btn-success" %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1089,17 +1089,17 @@ en:
|
||||||
archive: 'Archive inventory'
|
archive: 'Archive inventory'
|
||||||
restore: 'Restore inventory'
|
restore: 'Restore inventory'
|
||||||
modal_delete:
|
modal_delete:
|
||||||
title_html: "Delete inventory <em>%{name}</em>"
|
title_html: "Delete inventory: %{name}"
|
||||||
message_html: "Are you sure you want to delete inventory <em>%{name}</em>? This action is irreversible."
|
message_html: "Are you sure you want to delete inventory <em>%{name}</em>? This action is irreversible."
|
||||||
alert_heading: "Deleting inventory has following consequences:"
|
alert_heading: "Deleting inventory has following consequences:"
|
||||||
alert_line_1: "all data inside the inventory will be lost;"
|
alert_line_1: "all data inside the inventory will be lost;"
|
||||||
alert_line_2: "all references to inventory items will be rendered as invalid."
|
alert_line_2: "all references to inventory items will be rendered as invalid."
|
||||||
delete: "Delete"
|
delete: "Delete"
|
||||||
modal_rename:
|
modal_rename:
|
||||||
title_html: "Rename inventory <em>%{name}</em>"
|
title_html: "Edit inventory: %{name}"
|
||||||
name: "New inventory name"
|
name: "Inventory name"
|
||||||
name_placeholder: "My inventory"
|
name_placeholder: "My inventory"
|
||||||
rename: "Rename"
|
rename: "Save"
|
||||||
modal_copy:
|
modal_copy:
|
||||||
title_html: "Copy inventory <em>%{name}</em>"
|
title_html: "Copy inventory <em>%{name}</em>"
|
||||||
name: "New inventory name"
|
name: "New inventory name"
|
||||||
|
|
Loading…
Reference in a new issue