firm.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. require_once('header.php');
  3. User::check_access('firm','read');
  4. $firm = Firm::provide();
  5. ?>
  6. <div class="plugin-core">
  7. <div id="firm-form" class="row justify-content-md-center firm-form" data-action="core_firm_save" data-id="<?php echo $firm->id; ?>">
  8. <div class="col-md-6 shadow-sm bg-white p-3">
  9. <h3>Etablissement
  10. <div onclick="core_firm_save();" class="btn btn-small btn-success right"><i class="fas fa-check"></i> Enregistrer</div>
  11. <a href="setting.php?section=firm" class="btn btn-small btn-dark right mr-2">Retour</a></h3>
  12. <label for="label">Raison sociale</label>
  13. <input value="<?php echo $firm->label; ?>" class="form-control" type="text" id="label" >
  14. <label for="description">Description</label>
  15. <textarea class="mt-0" type="text" data-type="wysiwyg" id="description"><?php echo $firm->description; ?></textarea>
  16. <label for="logo">Logo</label>
  17. <input value="" class="component-file-cover bg-light shadow-sm rounded-sm" type="text" data-type="file" data-limit="1" data-extension="jpg,png,bmp,jpeg,gif,svg,webp" data-action="core_firm_logo" data-id="logo" data-data='{"id":"<?php echo $firm->id; ?>"}' id="logo" >
  18. <label for="mail">E-mail</label>
  19. <input value="<?php echo $firm->mail; ?>" class="form-control" type="mail" data-type="mail" pattern=".+@.+" id="mail" >
  20. <label for="phone">N° Téléphone</label>
  21. <input value="<?php echo $firm->phone; ?>" class="form-control" type="text" data-type="phone" id="phone" >
  22. <label for="fax">N° FAX</label>
  23. <input value="<?php echo $firm->fax; ?>" class="form-control" type="text" data-type="phone" id="fax" >
  24. <label for="street">Rue</label>
  25. <textarea class="form-control" type="text" id="street"><?php echo $firm->street; ?></textarea>
  26. <label for="street2">Complément d'adresse</label>
  27. <textarea class="form-control" type="text" id="street2"><?php echo $firm->street2; ?></textarea>
  28. <label for="city">Ville</label>
  29. <input value="<?php echo $firm->city; ?>" class="form-control" type="text" id="city" >
  30. <label for="zipcode">Code postal</label>
  31. <input value="<?php echo $firm->zipcode; ?>" class="form-control" type="text" id="zipcode" >
  32. <label for="siret">N° SIRET</label>
  33. <input value="<?php echo $firm->siret; ?>" class="form-control" type="text" id="siret" >
  34. <label for="iban">N° IBAN</label>
  35. <input value="<?php echo $firm->iban; ?>" class="form-control" type="text" id="iban" >
  36. <br/>
  37. </div>
  38. </div>
  39. </div>
  40. <?php
  41. require_once('footer.php');
  42. ?>