Skip to content

Commit

Permalink
Redesign "post as comment" checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Oct 23, 2023
1 parent 759d99c commit 8092424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 8 additions & 6 deletions app/views/annotations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,14 @@
<%= f.hidden_field :visible_for_teacher, value: false %>
<% end %>

<%= f.label :post_as_comment, class: "checkbox inline" do %>
<span, title="<%= t('admin.annotation.post_as_comment_tooltip') %>"><b>
<%= t('admin.annotation.post_as_comment') %> &nbsp
</b></span>
<%= f.check_box :post_as_comment %>
<% end %>
<!--- Post as comment? -->
<div class="form-check">
<%= f.check_box :post_as_comment, class: "form-check-input" %>
<%= f.label :post_as_comment,
t('admin.annotation.post_as_comment'),
class: "form-check-label" %>
<%= helpdesk(t('admin.annotation.post_as_comment_tooltip'), false) %>
</div>

<br>

Expand Down
2 changes: 2 additions & 0 deletions app/views/annotations/edit.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,5 @@ if (<%= @posted %>) {
postComment(true);
postAsComment.disabled = true;
}

initBootstrapPopovers();

0 comments on commit 8092424

Please sign in to comment.