Add thank you note frontend
This commit is contained in:
@ -2,4 +2,18 @@
|
||||
margin-top: 2rem;
|
||||
height: 600px;
|
||||
background-color:#f9f9f9
|
||||
}
|
||||
}
|
||||
|
||||
#thank-you-container {
|
||||
display: none;
|
||||
margin-top: 20px;
|
||||
padding: 5px;
|
||||
border: solid lightgrey 1px;
|
||||
background-color: rgba(20, 180, 20, 0.2);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#thank-you-note {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
}
|
||||
|
@ -22,7 +22,18 @@
|
||||
</h5>
|
||||
|
||||
<% if (policy(@request_for_comment).mark_as_solved? and not @request_for_comment.solved?) %>
|
||||
<button class="btn btn-primary" id="mark-as-solved-button"><%= t('request_for_comments.mark_as_solved') %></button>
|
||||
<button class="btn btn-primary" id="mark-as-solved-button">
|
||||
<%= t('request_for_comments.mark_as_solved') %>
|
||||
</button>
|
||||
<div id="thank-you-container">
|
||||
<p>
|
||||
<%= t('request_for_comments.write_a_thank_you_node') %>
|
||||
</p>
|
||||
<textarea id="thank-you-note"></textarea>
|
||||
<button class="btn btn-default" id="send-thank-you-note">
|
||||
<%= t('request_for_comments.send_thank_you_note') %>
|
||||
</button>
|
||||
</div>
|
||||
<% elsif (@request_for_comment.solved?) %>
|
||||
<button type="button" class="btn btn-success"><%= t('request_for_comments.solved') %></button>
|
||||
<% else %>
|
||||
|
Reference in New Issue
Block a user