Skip to content

Commit

Permalink
Merge pull request #96 from ICESI-PI1-2024A-G1/develop
Browse files Browse the repository at this point in the history
V 1.0.1
  • Loading branch information
Sebastian-411 authored May 6, 2024
2 parents 9ed92b9 + 3488c92 commit 0bbd309
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
@@ -1,5 +1,4 @@
{% load static %}
{% if actualgroup != "external" %}
<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">

<!-- Sidebar - Brand -->
Expand Down Expand Up @@ -29,10 +28,12 @@
</a>
{% endif %}

{% if actualgroup != "external" %}
<a class="nav-link" href="{% url 'hiring_app:statistics' %}">
<i class="fas fa-fw fa-file-contract"></i>
<span>Estadisticas</span>
</a>
{% endif %}
</li>

<!-- Divider -->
Expand All @@ -44,5 +45,4 @@
</div>


</ul>
{% endif %}
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,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 @@ -303,6 +303,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 @@ -34,6 +34,13 @@ 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
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,10 @@ 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 0bbd309

Please sign in to comment.