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'])) { - +