Explorar o código

Pull Request code review

TonyKurts hai 1 semana
pai
achega
a59aa4039e
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      templates/tickets/ticket_detail.html

+ 2 - 4
templates/tickets/ticket_detail.html

@@ -155,9 +155,7 @@
                 </h1>
                 </h1>
               </div>
               </div>
               <div class="modal-body">
               <div class="modal-body">
-                Are you sure you want to change the status of the ticket "{{ ticket.title }}"?
-                <br>
-                From "{{ ticket.get_status_display }}" to "<span id="selectedStatusOption">12312</span>"
+                Are you sure you want to change the status of the ticket "{{ ticket.title }}" from <b>{{ ticket.get_status_display }}</b> to <b id="selectedStatusOption"></b>?
               </div>
               </div>
               <div class="modal-footer">
               <div class="modal-footer">
                 <button type="button" class="btn btn-primary" data-bs-dismiss="modal">
                 <button type="button" class="btn btn-primary" data-bs-dismiss="modal">
@@ -271,7 +269,7 @@
       e.preventDefault();
       e.preventDefault();
 
 
       const selectValue = $('#select-ticket-status')[0].selectedOptions[0].textContent;
       const selectValue = $('#select-ticket-status')[0].selectedOptions[0].textContent;
-
+      
       $('#selectedStatusOption')[0].textContent = selectValue;
       $('#selectedStatusOption')[0].textContent = selectValue;
     })
     })
   </script>
   </script>