Skip to content

Commit

Permalink
REF:BUILD: Fixed UI elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Mendo6472 committed May 6, 2024
1 parent 64e3c58 commit 8033628
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ <h1 style="font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem;">Solicitude
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="notificationTitle">Título de la notificación</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p id="notificationMessage">Mensaje de notificación</p>
Expand Down Expand Up @@ -187,6 +186,10 @@ <h5 class="modal-title" id="notificationTitle">Título de la notificación</h5>
notificationModal.hide();
}

notificationCloseBtn.addEventListener('click', function () {
hideNotification();
});

form.addEventListener('submit', function (event) {
event.preventDefault();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ <h1 style="font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem;">Solicitude
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="notificationTitle">Título de la notificación</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p id="notificationMessage">Mensaje de notificación</p>
Expand Down Expand Up @@ -177,6 +176,10 @@ <h5 class="modal-title" id="notificationTitle">Título de la notificación</h5>
notificationModal.hide();
}

notificationCloseBtn.addEventListener('click', function () {
hideNotification();
});

form.addEventListener('submit', function (event) {
event.preventDefault();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ <h4>Course schedules:</h4>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="notificationTitle">Título de la notificación</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p id="notificationMessage">Mensaje de notificación</p>
Expand Down Expand Up @@ -303,6 +302,10 @@ <h5 class="modal-title" id="notificationTitle">Título de la notificación</h5>
notificationModal.hide();
}

notificationCloseBtn.addEventListener('click', function () {
hideNotification();
});

form.addEventListener('submit', function (event) {
event.preventDefault();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
<form id="reasonForm" method="post" action="{% url 'hiring_app:change_state' idContract=contract_request.id %}">
{% csrf_token %}
<input type="hidden" id="state" name="state">
<div class="modal-header">
<button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button>
</div>

<div class="modal-body">
<label id="reasonLabel" for="reason" style="margin-bottom: 10px; color: #4a5568; font-weight: bold; display: block;">Motivo:</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ def form_valid(self, form):
def form_invalid(self, form):
return self.render_to_response(self.get_context_data(form=form))

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['actualgroup'] = 'external'
return context

def download_rut_file(request, idContract, *args, **kwargs):
# Get the rut and send it as a file
model_instance = get_object_or_404(CEXContractRequest, id=idContract)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ def form_valid(self, form):
return super().form_valid(form)

def form_invalid(self, form):
return self.render_to_response(self.get_context_data(form=form))
return self.render_to_response(self.get_context_data(form=form))

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['actualgroup'] = 'external'
return context
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def form_valid(self, form):
def form_invalid(self, form):
return self.render_to_response(self.get_context_data(form=form))

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['actualgroup'] = 'external'
return context



def download_rut_file(request, idContract, *args, **kwargs):
Expand Down

0 comments on commit 8033628

Please sign in to comment.