Skip to content

Commit

Permalink
Use paddings instead of line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Nov 13, 2023
1 parent f95295c commit 69914a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
26 changes: 8 additions & 18 deletions app/views/annotations/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<div id="annotation-form">
<%= form_with model: @annotation do |f| %>
<b><%= t('admin.annotation.time') %></b> &nbsp <%= TimeStamp.new(total_seconds: @total_seconds).hms_colon_string %>

<br><br>
<p>
<strong><%= t('admin.annotation.time') %></strong>
&nbsp
<%= TimeStamp.new(total_seconds: @total_seconds).hms_colon_string %>
</p>

<!--- HIDDEN FIELDS -->
<%= f.hidden_field :medium_id, value: @medium_id %>
Expand All @@ -21,8 +23,6 @@
<b><%= t('admin.annotation.comment') %></b>
<%= f.text_area :comment, class: 'form-control' %>

<br>

<!--- PREVIEW TOGGLE -->
<div id="preview-toggle">
<label class="switch">
Expand All @@ -33,11 +33,9 @@
<%= t('admin.remark.preview') %>
</div>

<br>

<!--- COLOR SELECTION -->
<b><%= t('admin.annotation.color') %></b>
<div id="annotation-color-picker">
<div class="pt-3 pb-3" id="annotation-color-picker"
role="radiogroup" aria-label="Color picker">
<% colors = Annotation.colors %>
<% for i in 1..15 do %>
<%= f.radio_button :color,
Expand All @@ -52,8 +50,6 @@
<% end %>
</div>

<br>

<!--- CATEGORY RADIO BUTTON -->
<b><%= t('admin.annotation.category') %></b>
<%= helpdesk(t('admin.annotation.category_tooltip'), false) %>
Expand Down Expand Up @@ -100,14 +96,10 @@
</div>
</div>

<br>

<div id="annotation-category-specific">
<div class="pb-3" id="annotation-category-specific">
<!--- SPECIFIC CONTENT, DEPENDING ON THE SELECTED CATEGORY, IS INSERTED HERE -->
</div>

<br>

<!--- VISIBLE FOR TEACHER CHECKBOX -->
<% annotations_status = Medium.find_by(id: @medium_id).get_annotations_status %>
<% if annotations_status == 1 %>
Expand All @@ -134,8 +126,6 @@
<div class="alert alert-warning hidden" role="alert" id="annotation-comment-warning">
</div>

<br>

<div class="modal-footer">
<!-- SAVE BUTTON -->
<%= f.submit t('buttons.save'),
Expand Down
4 changes: 0 additions & 4 deletions app/views/annotations/_form_content.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<b><%= t('admin.annotation.whats_the_problem') %></b>

<br>

<div class="form-row ml-2", id="content-category-radios">
<div class="form-check form-check-inline",
title="<%= t('admin.annotation.definition_tooltip') %>">
Expand Down Expand Up @@ -41,8 +39,6 @@
</div>
</div>

<br>

<div id="content-specific">
<!--- SPECIFIC CONTENT, DEPENDING ON THE SELECTED CONTENT CATEGORY, IS INSERTED HERE -->
</div>

0 comments on commit 69914a1

Please sign in to comment.