couple updates
This commit is contained in:
parent
6687dc1401
commit
458ba42644
@ -19,7 +19,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<h4 class='mb-0'>{{ s.name }}</h4>
|
<h4 class='mb-0'>{{ s.name }}</h4>
|
||||||
<p class='text-sm mb-0 text-capitalize'>
|
<p class='text-sm mb-0 text-capitalize'>
|
||||||
<a href='tel:'></a>
|
<a href='mailto:{{ s.email }}'>{{ s.email }}</a><br />
|
||||||
|
{% if s.workPhone %}<a href='tel:{{ s.workPhone }}'>{{ s.getFormattedPhone() }}</a>{% endif %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="icon icon-md icon-shape bg-gradient-dark shadow-dark shadow text-center border-radius-lg">
|
<div class="icon icon-md icon-shape bg-gradient-dark shadow-dark shadow text-center border-radius-lg">
|
||||||
@ -30,8 +31,9 @@
|
|||||||
<hr class='dark horizontal my-0'>
|
<hr class='dark horizontal my-0'>
|
||||||
<div class='card-footer p-2 ps-3'>
|
<div class='card-footer p-2 ps-3'>
|
||||||
<p class='mb-0 text-sm'>
|
<p class='mb-0 text-sm'>
|
||||||
<span class='text-info font-weight-bolder'>
|
<span class='font-weight-bolder'>
|
||||||
<a href='{{ path('app_staff_cases', {staffId: s.id}) }}'>Staff Cases</a>
|
<button class='btn btn-primary bg-gradient-dark' onclick='window.location.href="{{ path('app_staff_cases', {staffId: s.id}) }}"'>Staff Cases</button>
|
||||||
|
<button class='btn btn-primary bg-gradient-dark' id='send-message' data-user-id='{{ s.id }}'>Send Message</button>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -40,5 +42,43 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class='modal fade' id='message-modal' tabindex='-1' role='dialog' aria-labelledby='message-modal-title'>
|
||||||
|
<div class='modal-dialog modal-dialog-centered' role='document'>
|
||||||
|
<div class='modal-content'>
|
||||||
|
<div class="modal-header">
|
||||||
|
<h6 class="modal-title font-weight-normal" id="message-modal-label">Message Staff</h6>
|
||||||
|
<button type="button" class="btn-close text-dark" data-bs-dismiss="modal" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class='modal-body'>
|
||||||
|
<form>
|
||||||
|
<input type='hidden' id='my-case' value=''/>
|
||||||
|
<div class='input-group input-group-outline my-3'>
|
||||||
|
<textarea name='message' id='message' style='width:100%;height:100px;'></textarea>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class='modal-footer'>
|
||||||
|
<button type='button' id='close-modal' class='btn bg-gradient-secondary' data-bs-dismiss='modal'>Close</button>
|
||||||
|
<button type='button' id='send-message' class='btn bg-gradient-primary'>Send Message</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block page_js %}
|
||||||
|
<script type='module'>
|
||||||
|
import $ from "{{ asset('vendor/jquery/jquery.index.js') }}";
|
||||||
|
import {openMessage, sendMessage} from '{{ asset("js/app/message.js") }}';
|
||||||
|
window.$ = $;
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
document.getElementById('open-message').addEventListener('click', openMessage);
|
||||||
|
document.getElementById('send-message').addEventListener('click', sendMessage);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user