mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 06:32:07 +08:00
Merge pull request #1719 from mlorb/ml-sci-3399
Visual fixes for edit/add step on protocol [SCI-3399]
This commit is contained in:
commit
df16b54be0
5 changed files with 4 additions and 9 deletions
|
@ -14,7 +14,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.my-modules-protocols-index {
|
||||
.module-header {
|
||||
padding-top: 15px !important;
|
||||
|
||||
.first-row {
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
list-style: none;
|
||||
|
||||
li {
|
||||
margin-bottom: 10px;
|
||||
|
||||
& > div > span.pull-left {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
@ -388,4 +386,3 @@
|
|||
margin-top: 20px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,9 @@
|
|||
} %>
|
||||
|
||||
<div class="content-pane my-modules-protocols-index">
|
||||
<%= render partial: "module_header" %>
|
||||
<span class="module-header">
|
||||
<%= render partial: "module_header" %>
|
||||
</span>
|
||||
|
||||
<h2>
|
||||
<%= t('Protocol') %>
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
<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| %>
|
||||
<h4><%= t("protocols.steps.edit.edit_step_title") %></h4>
|
||||
<hr>
|
||||
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
||||
<hr>
|
||||
<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">
|
||||
<%= t("general.cancel")%>
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
<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| %>
|
||||
<h4><%= t("protocols.steps.new.add_step_title") %></h4>
|
||||
<hr>
|
||||
<%= render partial: "empty_step.html.erb", locals: {step: @step, f: f} %>
|
||||
<hr>
|
||||
<div class="align-right">
|
||||
<button type="button" data-action="cancel-new" class="btn btn-default">
|
||||
<%= t("general.cancel")%>
|
||||
|
|
Loading…
Reference in a new issue