firm.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php require_once __DIR__.DIRECTORY_SEPARATOR.'header.php';
  2. User::check_access('firm','edit');
  3. $firm = Firm::provide();
  4. ?>
  5. <form action="action.php?action=save_firm" id="firmForm" method="POST" enctype="multipart/form-data">
  6. <input id="firm" name="id" type="hidden" value="<?php echo $firm->id; ?>">
  7. <br><h3>Fiche établissement : </h3><br>
  8. <div class="row">
  9. <div class="col">
  10. <label for="label">Libellé : </label>
  11. <input id="label" name="label" class="form-control" placeholder="Nom de la société" value="<?php echo $firm->label; ?>" type="text">
  12. </div>
  13. </div><br>
  14. <div class="row">
  15. <div class="col">
  16. <label for="description">Description : </label>
  17. <input id="description" name="description" class="form-control" placeholder="Description de la société" value="<?php echo $firm->description; ?>" type="text">
  18. </div>
  19. </div><br>
  20. <div class="row">
  21. <div class="col">
  22. <label for="logo">Logo : </label><br/>
  23. <input id="logo" data-type="image" name="logo" class="form-control-file" placeholder="Choisir un logo" value="<?php echo $firm->logo(); ?>" type="file" data-delete="firm_logo_delete(this)" data-default-src="img/default-image.png">
  24. </div>
  25. </div><br>
  26. <div class="row">
  27. <div class="col">
  28. <label for="mail">E-mail : </label>
  29. <input id="mail" name="mail" class="form-control" placeholder="Adresse mail de la société" value="<?php echo $firm->mail; ?>" type="mail">
  30. </div>
  31. </div><br>
  32. <div class="row">
  33. <div class="col">
  34. <label for="phone">Téléphone Fixe : </label>
  35. <input id="phone" name="phone" class="form-control" placeholder="N° téléphone de la société" value="<?php echo $firm->phone; ?>" type="phone">
  36. </div>
  37. </div><br>
  38. <div class="row">
  39. <div class="col">
  40. <label for="fax">Fax : </label>
  41. <input id="fax" name="fax" class="form-control" placeholder="N° fax" value="<?php echo $firm->fax; ?>" type="text">
  42. </div>
  43. </div><br>
  44. <div class="row">
  45. <div class="col">
  46. <label for="street">Adresse : </label>
  47. <input id="street" name="street" class="form-control" placeholder="Adresse" value="<?php echo $firm->street; ?>" type="text">
  48. </div>
  49. </div><br>
  50. <div class="row">
  51. <div class="col">
  52. <label for="street2">Adresse (Complément) : </label>
  53. <input id="street2" name="street2" class="form-control" placeholder="Adresse (Complément)" value="<?php echo $firm->street2; ?>" type="text">
  54. </div>
  55. </div><br>
  56. <div class="row">
  57. <div class="col">
  58. <label for="zipcode">Code postal : </label>
  59. <input id="zipcode" name="zipcode" class="form-control" placeholder="Code postal" value="<?php echo $firm->zipcode; ?>" type="text">
  60. </div>
  61. </div><br>
  62. <div class="row">
  63. <div class="col">
  64. <label for="city">Ville : </label>
  65. <input id="city" name="city" class="form-control" placeholder="Nom de ville" value="<?php echo $firm->city; ?>" type="text">
  66. </div>
  67. </div><br>
  68. <div class="row">
  69. <div class="col">
  70. <label for="siret">N° Siret : </label>
  71. <input id="siret" name="siret" class="form-control" placeholder="N° Siret" value="<?php echo $firm->siret; ?>" type="text">
  72. </div>
  73. </div><br>
  74. <div class="row">
  75. <div class="col">
  76. <label for="iban">N° Iban : </label>
  77. <input id="iban" name="iban" class="form-control" placeholder="N° Iban" value="<?php echo $firm->iban; ?>" type="text">
  78. </div>
  79. </div>
  80. <hr/>
  81. <div class="row">
  82. <div class="col text-center">
  83. <div class="btn btn-success" onclick="$(this).closest('form').submit()"><i class="fas fa-check"></i> Enregistrer</div>
  84. </div>
  85. </div>
  86. </form>
  87. <br>
  88. <?php require_once __ROOT__.'footer.php' ?>