charger_plugin.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <div class="formulaire_spip formulaire_charger_plugin" id="formulaire_charger_plugin">
  2. <h3 class="titrem">[(#CHEMIN_IMAGE{plugin-add-24.png}|balise_img{icone ajouter_plugin-24,cadre-icone})]<:svp:titre_form_charger_plugin:></h3>
  3. [<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
  4. [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
  5. <BOUCLE_depot_existe(DEPOTS) {0,1}>
  6. <form method="post" action="#ENV{action}">
  7. <INCLURE{fond=formulaires/inc-confirmer_actions, env} />
  8. [(#REM) <!-- declarer les hidden qui declencheront le service du formulaire
  9. parametre : url d'action --> ]
  10. #ACTION_FORMULAIRE{#ENV{action}}
  11. <input type="hidden" name="exclusion" class='hidden' value="oui" />
  12. <div class="liste-recherche">
  13. <fieldset>
  14. <legend><:svp:legende_rechercher_plugins:></legend>
  15. <p class="explication"><:svp:info_charger_plugin{version=#SPIP_VERSION}:></p>
  16. <ul>
  17. <li class="editer_phrase obligatoire[(#ENV{erreurs}|table_valeur{phrase}|oui) erreur]">
  18. <label for="phrase"><:svp:label_critere_phrase:></label>
  19. <p class="explication"><:svp:info_critere_phrase:></p>
  20. [<span class="erreur_message">(#ENV{erreurs}|table_valeur{phrase})</span>]
  21. <input type="text" name="phrase" id="phrase" value="#ENV{phrase}" class="text" placeholder="<:svp:placeholder_phrase:>" />
  22. </li>
  23. <li class="editer_categorie obligatoire[(#ENV{erreurs}|table_valeur{categorie}|oui) erreur]">
  24. <label for="categorie"><:svp:label_critere_categorie:></label>
  25. [<span class="erreur_message">(#ENV{erreurs}|table_valeur{categorie})</span>]
  26. <INCLURE{fond=formulaires/inc-select_categorie, categorie=#ENV{categorie}, env} />
  27. </li>
  28. <li class="editer_etat obligatoire[(#ENV{erreurs}|table_valeur{etat}|oui) erreur]">
  29. <label for="etat"><:svp:label_critere_etat:></label>
  30. [<span class="erreur_message">(#ENV{erreurs}|table_valeur{etat})</span>]
  31. <select name="etat" id="etat">
  32. <option value="tout_etat"[ (#ENV{etat,tout_etat}|=={tout_etat}|oui)selected="selected"]><:svp:option_etat_tout:></option>
  33. <option value="stable"[ (#ENV{etat,tout_etat}|=={stable}|oui)selected="selected"]><:plugin_etat_stable|ucfirst:></option>
  34. <option value="test"[ (#ENV{etat,tout_etat}|=={test}|oui)selected="selected"]><:plugin_etat_test|ucfirst:></option>
  35. <option value="dev"[ (#ENV{etat,tout_etat}|=={dev}|oui)selected="selected"]><:plugin_etat_developpement|ucfirst:></option>
  36. <option value="experimental"[ (#ENV{etat,tout_etat}|=={experimental}|oui)selected="selected"]><:plugin_etat_experimental|ucfirst:></option>
  37. </select>
  38. </li>
  39. <li class="editer_depot obligatoire[(#ENV{erreurs}|table_valeur{depot}|oui) erreur]">
  40. <label for="depot"><:svp:label_critere_depot:></label>
  41. [<span class="erreur_message">(#ENV{erreurs}|table_valeur{depot})</span>]
  42. <INCLURE{fond=formulaires/inc-select_depot, env} />
  43. </li>
  44. <li class="editer_doublon obligatoire[(#ENV{erreurs}|table_valeur{doublon}|oui) erreur]">
  45. <label for="doublon"><:svp:label_critere_doublon:></label>
  46. [<span class="erreur_message">(#ENV{erreurs}|table_valeur{doublon})</span>]
  47. <select name="doublon" id="doublon">
  48. <option value="non"[ (#ENV{doublon}|=={non}|oui)selected="selected"]><:svp:option_doublon_non:></option>
  49. <option value="oui"[ (#ENV{doublon}|=={oui}|oui)selected="selected"]><:svp:option_doublon_oui:></option>
  50. </select>
  51. </li>
  52. </ul>
  53. </fieldset>
  54. <p class="boutons recherche"><input type="submit" name="rechercher" class="submit" value="<:info_rechercher:>" /></p>
  55. </div>
  56. [(#ENV{phrase}|ou{#ENV{depot}}|ou{#ENV{categorie}}|ou{#ENV{etat}|ou{#ENV{doublon}}}|oui)
  57. <div class="liste-plugins">
  58. <fieldset>
  59. <legend><:svp:legende_installer_plugins:></legend>
  60. <INCLURE{fond=formulaires/inc-plugins_trouves, plugins=#ENV*{message_ok}|table_valeur{plugins}, env} />
  61. </fieldset>
  62. <p class="boutons actions"[(#ENV{ids_paquet}|non) style="display:none"]><input type="submit" name="installer" class="submit" value="<:svp:bouton_installer:>" /></p>
  63. </div>]
  64. </form>
  65. </BOUCLE_depot_existe>
  66. #BOITE_OUVRIR{'','notice'}
  67. <p><:svp:message_nok_aucun_depot_disponible:></p>
  68. #BOITE_FERMER
  69. <//B_depot_existe>
  70. </div>