Visual fixes for edit/add step on protocol

This commit is contained in:
Mojca Lorber 2019-04-30 14:57:50 +02:00
parent 60296419e8
commit 7be151bd2d
5 changed files with 4 additions and 9 deletions

View file

@ -14,7 +14,7 @@
}
}
.my-modules-protocols-index {
.module-header {
padding-top: 15px !important;
.first-row {

View file

@ -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%;
}

View file

@ -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') %>

View file

@ -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")%>

View file

@ -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")%>