mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 13:59:56 +08:00
Visual fixes for edit/add step on protocol
This commit is contained in:
parent
60296419e8
commit
7be151bd2d
5 changed files with 4 additions and 9 deletions
|
@ -14,7 +14,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.my-modules-protocols-index {
|
.module-header {
|
||||||
padding-top: 15px !important;
|
padding-top: 15px !important;
|
||||||
|
|
||||||
.first-row {
|
.first-row {
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
margin-bottom: 10px;
|
|
||||||
|
|
||||||
& > div > span.pull-left {
|
& > div > span.pull-left {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
@ -388,4 +386,3 @@
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
} %>
|
} %>
|
||||||
|
|
||||||
<div class="content-pane my-modules-protocols-index">
|
<div class="content-pane my-modules-protocols-index">
|
||||||
|
<span class="module-header">
|
||||||
<%= render partial: "module_header" %>
|
<%= render partial: "module_header" %>
|
||||||
|
</span>
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
<%= t('Protocol') %>
|
<%= t('Protocol') %>
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<%= bootstrap_form_for(@step, url: step_path(id: @step.id, format: :json), remote: true, authenticity_token: true, multipart: true, data: { role: "edit-step-form", type: :json }) do |f| %>
|
<%= bootstrap_form_for(@step, url: step_path(id: @step.id, format: :json), remote: true, authenticity_token: true, multipart: true, data: { role: "edit-step-form", type: :json }) do |f| %>
|
||||||
<h4><%= t("protocols.steps.edit.edit_step_title") %></h4>
|
<h4><%= t("protocols.steps.edit.edit_step_title") %></h4>
|
||||||
<hr>
|
|
||||||
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
||||||
<hr>
|
|
||||||
<div class="align-right">
|
<div class="align-right">
|
||||||
<a type="button" data-action="cancel-edit" class="btn btn-default" href="<%= step_path(id: @step, format: :json) %>" data-remote="true">
|
<a type="button" data-action="cancel-edit" class="btn btn-default" href="<%= step_path(id: @step, format: :json) %>" data-remote="true">
|
||||||
<%= t("general.cancel")%>
|
<%= t("general.cancel")%>
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<%= bootstrap_form_for(@step, url: protocol_steps_path(@protocol, format: :json), authenticity_token: true, multipart: true, data: { role: "new-step-form", type: :json }) do |f| %>
|
<%= bootstrap_form_for(@step, url: protocol_steps_path(@protocol, format: :json), authenticity_token: true, multipart: true, data: { role: "new-step-form", type: :json }) do |f| %>
|
||||||
<h4><%= t("protocols.steps.new.add_step_title") %></h4>
|
<h4><%= t("protocols.steps.new.add_step_title") %></h4>
|
||||||
<hr>
|
|
||||||
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
||||||
<hr>
|
|
||||||
<div class="align-right">
|
<div class="align-right">
|
||||||
<button type="button" data-action="cancel-new" class="btn btn-default">
|
<button type="button" data-action="cancel-new" class="btn btn-default">
|
||||||
<%= t("general.cancel")%>
|
<%= t("general.cancel")%>
|
||||||
|
|
Loading…
Add table
Reference in a new issue