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; padding-top: 15px !important;
.first-row { .first-row {

View file

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

View file

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

View file

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

View file

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