ajout une option de config pour activer le retaillage des images
This commit is contained in:
parent
a8f439967e
commit
5d21b9b8f3
2 changed files with 17 additions and 0 deletions
|
@ -31,6 +31,7 @@ function bigform_post_edition($flux){
|
|||
and $id_document = intval($flux['args']['id_objet'])
|
||||
and $flux['args']['action'] === 'ajouter_document'
|
||||
and in_array($flux['data']['extension'], ['jpg', 'png', 'webm'])
|
||||
and lire_config('bigform/retailler_image') === 'oui'
|
||||
) {
|
||||
$url = generer_url_public("retailler_img", [
|
||||
"id_document" =>intval($id_document),
|
||||
|
|
|
@ -9,6 +9,22 @@
|
|||
<div>
|
||||
#ACTION_FORMULAIRE
|
||||
|
||||
<div class="editer_groupe">
|
||||
#SET{name,retailler_image}
|
||||
#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
|
||||
<div class="editer editer_[(#GET{name})][ (#GET{erreurs}|oui)erreur]">
|
||||
<label>Activer le rataillage des images après televersement</label>
|
||||
<div class="choix">
|
||||
<input type="radio" class="radio" name="#GET{name}" value="" id="#GET{name}_non"[ (#ENV{#GET{name}}|!={oui}|?{checked="checked"})] >
|
||||
<label for="#GET{name}_non">Non</label>
|
||||
</div>
|
||||
<div class="choix">
|
||||
<input type="radio" class="radio" name="#GET{name}" value="oui" id="#GET{name}_oui"[ (#ENV{#GET{name}}|=={oui}|?{checked="checked"})] >
|
||||
<label for="#GET{name}_oui">Oui</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="_meta_casier" value="bigform" />
|
||||
<p class="boutons"><span class="image_loading"> </span><input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue