mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-21 12:34:39 +08:00
CSS update for protocol import screen [SCI-7394]
This commit is contained in:
parent
c4ba723998
commit
393bc03d47
5 changed files with 35 additions and 32 deletions
|
@ -25,10 +25,11 @@
|
|||
|
||||
.step {
|
||||
.panel {
|
||||
border: 0;
|
||||
margin-left: 0;
|
||||
|
||||
.panel-body {
|
||||
padding: 15px 5px;
|
||||
padding: 15px 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
<span class="has-error help-block"></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group sci-input-container">
|
||||
<%= f.label :name, t('protocols.import_export.import_modal.name_label') %>
|
||||
<%= f.text_field :name, class: 'form-control', value: protocol.name %>
|
||||
<%= f.text_field :name, class: 'form-control sci-input-field', value: protocol.name %>
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group sci-input-container">
|
||||
<%= f.label :authors, t('protocols.import_export.import_modal.authors_label') %>
|
||||
<%= f.text_field :authors, class: 'form-control', value: protocol.authors %>
|
||||
<%= f.text_field :authors, class: 'form-control sci-input-field', value: protocol.authors %>
|
||||
</div>
|
||||
|
||||
<div class="import-protocol-preview-description">
|
||||
|
|
|
@ -26,20 +26,20 @@
|
|||
<div class="modal-body">
|
||||
|
||||
<!-- General protocol info -->
|
||||
<div class="form-group">
|
||||
<div class="form-group sci-input-container">
|
||||
|
||||
<label><%= t('protocols.import_export.import_modal.name_label') %></label>
|
||||
|
||||
<%= f.text_field :name, :value => pio_eval_title_len(sanitize_input(not_null(@json_object['title']))), class:
|
||||
"form-control" %>
|
||||
"sci-input-field" %>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group sci-input-container">
|
||||
<label>
|
||||
<span class="fas fa-user">
|
||||
</span> <%= t('protocols.import_export.import_modal.authors_label') %>
|
||||
</label>
|
||||
<%= f.text_field :authors, :value => pio_eval_authors(not_null(@json_object['authors'])), class:
|
||||
"form-control" %>
|
||||
"sci-input-field" %>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -14,15 +14,15 @@
|
|||
</div>
|
||||
|
||||
<!-- General protocol info -->
|
||||
<div class="form-group">
|
||||
<div class="form-group sci-input-container">
|
||||
<label for="import_protocol_name"><%= t("protocols.import_export.import_modal.name_label") %></label>
|
||||
<input type="text" class="form-control" id="import_protocol_name">
|
||||
<input type="text" class="form-control sci-input-field" id="import_protocol_name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-group sci-input-container">
|
||||
<label for="protocol_authors">
|
||||
<span class="fas fa-user"></span> <%= t("protocols.import_export.import_modal.authors_label") %>
|
||||
</label>
|
||||
<input type="text" class="form-control" id="protocol_authors">
|
||||
<input type="text" class="form-control sci-input-field" id="protocol_authors">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="import_protocol_description"><%= t("protocols.import_export.import_modal.description_label") %></label>
|
||||
|
|
|
@ -1,23 +1,25 @@
|
|||
<div class="col-xs-12">
|
||||
<hr>
|
||||
</div>
|
||||
<div class="col-xs-12 attachments-actions">
|
||||
|
||||
<div class="title">
|
||||
<h4>
|
||||
<%= t('protocols.steps.files', count: attachments.size) %>
|
||||
</h4>
|
||||
<% if attachments.size.positive? %>
|
||||
<div class="col-xs-12">
|
||||
<hr>
|
||||
</div>
|
||||
<div>
|
||||
<div class="attachemnts-header pull-right">
|
||||
<div class="col-xs-12 attachments-actions">
|
||||
|
||||
<div class="title">
|
||||
<h4>
|
||||
<%= t('protocols.steps.files', count: attachments.size) %>
|
||||
</h4>
|
||||
</div>
|
||||
<div>
|
||||
<div class="attachemnts-header pull-right">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 attachments">
|
||||
<% attachments.each do |a| %>
|
||||
<%= render partial: 'steps/attachments/new_attachment.html.erb',
|
||||
locals: { file_url: a[:url], file_name: a[:name] } %>
|
||||
<% end %>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="col-xs-12 attachments">
|
||||
<% attachments.each do |a| %>
|
||||
<%= render partial: 'steps/attachments/new_attachment.html.erb',
|
||||
locals: { file_url: a[:url], file_name: a[:name] } %>
|
||||
<% end %>
|
||||
</div>
|
||||
<hr>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Reference in a new issue