Skip to content

Commit

Permalink
Revert "REF:BUILD: Fixed UI elements"
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-411 authored May 6, 2024
1 parent 28c1eaf commit 628cae7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ <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 @@ -186,10 +187,6 @@ <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,6 +146,7 @@ <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 @@ -176,10 +177,6 @@ <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,6 +272,7 @@ <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 @@ -302,10 +303,6 @@ <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,6 +12,9 @@
<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,11 +35,6 @@ 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,9 +32,4 @@ 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))

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['actualgroup'] = 'external'
return context
return self.render_to_response(self.get_context_data(form=form))
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ 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 628cae7

Please sign in to comment.