2015-08-20 11:03:44 +00:00
|
|
|
<div class="ticket-query-wrap">
|
|
|
|
<div class="query ticket-query">
|
2021-02-18 03:09:59 +00:00
|
|
|
<span class="query-created-date t-label t-label-primary">
|
|
|
|
<i class="icon-time"></i>
|
|
|
|
<% dt = query.created_at %> <%= dt.strftime("%d %B %Y - %H:%M") %>
|
|
|
|
</span>
|
|
|
|
<div style="clear: both;"></div>
|
2015-08-20 11:03:44 +00:00
|
|
|
<%= smart_links_parser(query.query, @ticket.registered_site).html_safe %>
|
|
|
|
</div>
|
|
|
|
<div class="ticket-response t-depth-1">
|
|
|
|
<h4 class="ticket-response-heading">
|
|
|
|
<i class="ticket-response-heading-icon fa fa-commenting"></i>
|
|
|
|
Response
|
|
|
|
</h4>
|
|
|
|
<div <%= @ticket.ticket_queries.count == (query_counter + 1) ? "id=response-container" : "" %>>
|
2015-08-25 11:49:26 +00:00
|
|
|
<%= render :partial => "response", :collection => query.ticket_query_responses.asc(:created_at) %>
|
2015-08-20 11:03:44 +00:00
|
|
|
</div>
|
|
|
|
<% if params[:reopen] != "true" && @ticket.ticket_queries.count == (query_counter + 1) %>
|
|
|
|
<div id="form_container" class="ticket-editor">
|
2021-07-15 11:51:44 +00:00
|
|
|
<form method="post" action="/admin/tickets_manage/submit_response" id="reopen-form" for="query-response">
|
2015-08-20 11:03:44 +00:00
|
|
|
<textarea class="ckeditor" name="ticket_query_response" data-fv-validation="required;" data-fv-messages="Cannot be empty;"></textarea>
|
2015-09-02 10:16:01 +00:00
|
|
|
<div class="ticket-internal-response-wrap">
|
|
|
|
<div class="ticket-internal-response">
|
|
|
|
<input type="hidden" name="ticket_query_id" value="<%= query.id.to_s %>" />
|
2015-09-03 18:37:56 +00:00
|
|
|
<input type="checkbox" checked="checked" name="internal_response" value="1">
|
2015-09-02 10:16:01 +00:00
|
|
|
<span class="ticket-internal-response">Internal Response</span>
|
|
|
|
</div>
|
|
|
|
<div class="ticket-tag-member">
|
|
|
|
<!-- <h4 class="ticket-tag-mebmer-heading">Tag member</h4> -->
|
|
|
|
<select class="member_tags" multiple="multiple" name="user_tags[]">
|
|
|
|
<% @members.each do |member| %>
|
|
|
|
<%
|
|
|
|
name = member["name"][I18n.locale.to_s] == "" ? member["name"]["zh_tw"] : member["name"][I18n.locale.to_s]
|
|
|
|
name = "" if name.nil?
|
|
|
|
user_name = "(#{member["user_name"]})"
|
|
|
|
text = " #{name} #{user_name}"
|
|
|
|
%>
|
|
|
|
<option value="<%= member["id"] %>" data-member="<%= member.to_json %>"><%= text %></option>
|
|
|
|
<% end %>
|
|
|
|
</select>
|
|
|
|
</div>
|
2015-08-25 10:49:47 +00:00
|
|
|
</div>
|
2015-09-02 10:16:01 +00:00
|
|
|
|
2015-08-20 11:03:44 +00:00
|
|
|
</form>
|
2015-09-02 10:16:01 +00:00
|
|
|
<input type="submit" id="reopen-form-submit" class="ticket-submit-btn btn btn-primary" value=" Submit" />
|
2015-08-20 11:03:44 +00:00
|
|
|
</div>
|
|
|
|
<div id="ticket_loader" style="display:none;">
|
|
|
|
<%= image_tag("preloader.gif", size: "50") %>
|
|
|
|
<div>Posting your response.</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2015-09-02 10:16:01 +00:00
|
|
|
</div>
|
2021-02-18 03:09:59 +00:00
|
|
|
<style type="text/css">
|
|
|
|
.query-created-date{
|
|
|
|
background-color: cyan;
|
|
|
|
}
|
|
|
|
.ticket-query{
|
|
|
|
border: 0.1em solid gray;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
</style>
|