From 28f9854ec88fb8f4d98cda1058fb739db7113cd9 Mon Sep 17 00:00:00 2001 From: Axok Date: Thu, 31 Mar 2022 17:24:42 +0200 Subject: [PATCH] paufinage gestion entreprise --- server_static/assets/js/gestion_entreprises.js | 5 +++++ website/gestion_entreprises.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/server_static/assets/js/gestion_entreprises.js b/server_static/assets/js/gestion_entreprises.js index 671435e..9ecfee2 100644 --- a/server_static/assets/js/gestion_entreprises.js +++ b/server_static/assets/js/gestion_entreprises.js @@ -7,11 +7,15 @@ $(document).ready(function(){ $(".logo_add").click(function() { $("#modal_add_edit").show(); $(".title_modal").html("Ajout d'une entreprise"); + $("#button_add_edit").html("Ajouter"); $("input[type='hidden']").attr("value","add"); $("input[name='name']").attr("value",""); $("input[name='activity_sector']").attr("value",""); $("input[name='nb_intern_cesi']").attr("value",""); $("input[name='email']").attr("value",""); + $("#select_note").val($("#select_note option:first").val()); + $("#select_localisation").val($("#select_localisation option:first").val()); + $("#select_visibility").val($("#select_visibility option:first").val()); $(".info_message").css("display", "none"); }); @@ -39,6 +43,7 @@ $(document).ready(function(){ $("#modal_add_edit").show(); window.ID_company = $(this).attr("ID_company"); $(".title_modal").html("Modification d'une entreprise"); + $("#button_add_edit").html("Modifier"); $("input[type='hidden']").attr("value","edit"); $("input[name='name']").attr("value",$(this).attr("name")); $("input[name='activity_sector']").attr("value",$(this).attr("activity_sector")); diff --git a/website/gestion_entreprises.php b/website/gestion_entreprises.php index 13816ac..76bb73e 100644 --- a/website/gestion_entreprises.php +++ b/website/gestion_entreprises.php @@ -85,7 +85,7 @@ if (isset($_COOKIE['username']) && isset($_COOKIE['pass'])) { - +