Skip to content

Commit

Permalink
Added help text
Browse files Browse the repository at this point in the history
  • Loading branch information
imajit committed Mar 10, 2021
1 parent 64dd30d commit dc445d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jQuery(document).ready(function($) {
if(eventDate!== null)
{
addTag("date:"+eventDate.val());
alert("Event date has been added");
//$('.toast').toast('show');
}
});
});
12 changes: 10 additions & 2 deletions app/views/notes/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script src="/assets/notes.js" type="text/javascript"></script>

<div class="col-lg-9 note-show<% if @node.status == 4 || @node.status == 0 %> moderated<% end %>">
<% if @preview %><div class="alert alert-info"><%= raw translation('notes.show.preview') %></div><% end %>
<% if current_user && @node.tags.size == 0 && !@preview %><div class="alert alert-warning"><%= raw translation('notes.show.note_no_tags', url: 'javascript: document.getElementById("tags-open").click();') %></div><% end %>
Expand Down Expand Up @@ -91,8 +90,17 @@
<hr/>
<p>This looks like an event. <span><button id="date-toggle" class="btn-outline-secondary btn-sm" data-toggle="tooltip" data-placement="right" title="Add Date"><i class="fa fa-calendar" aria-hidden="true"></i></button></span></p>
<div id="event-datepicker">
<input type="text" class="datepicker"/>
<input type="text" class="datepicker" aria-describedby="DatePickerGuide"/>

<span><button id="save-event-date" class="btn-outline-secondary btn-sm">Save Date</button></span>
<small id="DatePickerGuide" class="form-text text-muted">
Add date to your awesome event in this box
</small>

<!-- <div class="toast" role="alert" aria-live="assertive" aria-atomic="true">
Date added successfully
</div> -->

</div>
<% end %>

Expand Down

0 comments on commit dc445d2

Please sign in to comment.