PageRenderTime 45ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/metnav/skins/metnav_controlpanel/prefs_manage_metadata_nav_global.cpt

https://bitbucket.org/pratic/metnav
Unknown | 658 lines | 508 code | 150 blank | 0 comment | 0 complexity | dc1dfdad5d1f0dd3164b9709a700c131 MD5 | raw file
  1. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  2. lang="en"
  3. metal:use-macro="here/prefs_main_template/macros/master"
  4. i18n:domain="metnav">
  5. <metal:block metal:fill-slot="top_slot"
  6. tal:define="dummy python:request.set('disable_border',1)" />
  7. <body>
  8. <div metal:fill-slot="prefs_configlet_main"
  9. tal:define="errors python:request.get('errors', {});
  10. metnav_properties here/portal_properties/metnav_properties">
  11. <h1 i18n:translate="legend_prefs_metadata_nav">Configuration de MetNav</h1>
  12. <a href=""
  13. class="link-parent"
  14. tal:attributes="href string:${portal_url}/plone_control_panel"
  15. i18n:translate="label_up_to_plone_setup"
  16. i18n:domain="plone">
  17. Up to Site Setup
  18. </a>
  19. <form action=""
  20. name=""
  21. method="post"
  22. tal:attributes="action string:${portal_url}/${template/id}">
  23. <fieldset>
  24. <legend i18n:translate="legend_prefs_metadata_nav">Configuration de MetNav</legend>
  25. <p i18n:translate="description_prefs_metadata_nav">
  26. Vous permet de configurer les propri&eacute;t&eacute;s de navigation sur les m&eacute;tadonn&eacute;es XML du site.
  27. </p>
  28. <fieldset>
  29. <legend i18n:translate="legend_metnav_general">Configuration g&eacute;n&eacute;rale</legend>
  30. <p i18n:translate="description_metnav_general">
  31. Vous pouvez configurer dans cette partie les &eacute;l&eacute;ments g&eacute;n&eacute;raux de MetNav
  32. </p>
  33. <div class="field"
  34. tal:define="EXIST_DA request/EXIST_DA | metnav_properties/EXIST_DA;
  35. error errors/EXIST_DA | nothing;"
  36. tal:attributes="class python:test(error, 'field error', 'field')">
  37. <label i18n:translate="label_exist_da" for="exist_da">Identifiant du connecteur eXistDA &agrave; utiliser</label>
  38. <span class="fieldRequired" title="Required"
  39. i18n:attributes="title title_required;"
  40. i18n:translate="label_required">(Required)</span>
  41. <div class="formHelp" i18n:translate="help_exist_da">
  42. Identifiant du connecteur eXistDA &agrave; utiliser pour toutes les connexions &agrave; la base. Le connecteur doit se trouver dans portal_skins/custom ou &agrave; la racine du site Plone.
  43. </div>
  44. <div tal:content="error">Validation error output</div>
  45. <input size="80"
  46. name="EXIST_DA"
  47. id="exist_da"
  48. value=""
  49. tal:attributes="value EXIST_DA" />
  50. </div>
  51. <div class="field"
  52. tal:define="BATCH_LENGTH request/BATCH_LENGTH | metnav_properties/BATCH_LENGTH;
  53. error errors/BATCH_LENGTH | nothing;"
  54. tal:attributes="class python:test(error, 'field error', 'field')">
  55. <label i18n:translate="label_batch_length" for="batch_length">Nombre d'&eacute;l&eacute;ments par page</label>
  56. <span class="fieldRequired" title="Required"
  57. i18n:attributes="title title_required;"
  58. i18n:translate="label_required">(Required)</span>
  59. <div class="formHelp" i18n:translate="help_batch_length">
  60. Nombre d'&eacute;l&eacute;ments affich&eacute;s par page lors des recherches (dans les nouvelles, archives, etc.).
  61. </div>
  62. <div tal:content="error">Validation error output</div>
  63. <input size="3"
  64. name="BATCH_LENGTH"
  65. id="batch_length"
  66. value=""
  67. tal:attributes="value BATCH_LENGTH" />
  68. </div>
  69. <div class="field"
  70. tal:define="LIMIT_RELATED request/LIMIT_RELATED | metnav_properties/LIMIT_RELATED;
  71. error errors/LIMIT_RELATED | nothing;"
  72. tal:attributes="class python:test(error, 'field error', 'field')">
  73. <label i18n:translate="label_limit_related" for="limit_related">Nombre maximums de documents connexes</label>
  74. <span class="fieldRequired" title="Required"
  75. i18n:attributes="title title_required;"
  76. i18n:translate="label_required">(Required)</span>
  77. <div class="formHelp" i18n:translate="help_limit_related">
  78. Nombre maximum de documents connexes affich&eacute;s dans le portlet "Voir aussi".
  79. </div>
  80. <div tal:content="error">Validation error output</div>
  81. <input size="3"
  82. name="LIMIT_RELATED"
  83. id="limit_related"
  84. value=""
  85. tal:attributes="value LIMIT_RELATED" />
  86. </div>
  87. <div class="field"
  88. tal:define="SCORE_CONNEXE request/SCORE_CONNEXE | metnav_properties/SCORE_CONNEXE;
  89. error errors/SCORE_CONNEXE | nothing;"
  90. tal:attributes="class python:test(error, 'field error', 'field')">
  91. <label i18n:translate="label_score_connexe" for="score_connexe">Score minimum de documents connexes</label>
  92. <span class="fieldRequired" title="Required"
  93. i18n:attributes="title title_required;"
  94. i18n:translate="label_required">(Required)</span>
  95. <div class="formHelp" i18n:translate="help_score_connexe">
  96. Score minimum des documents connexes affich&eacute;s dans le portlet "Voir aussi".
  97. </div>
  98. <div tal:content="error">Validation error output</div>
  99. <input size="3"
  100. name="SCORE_CONNEXE"
  101. id="score_connexe"
  102. value=""
  103. tal:attributes="value SCORE_CONNEXE" />
  104. </div>
  105. <div class="field"
  106. tal:define="OBJECTS request/OBJECTS | python:'\n'.join(metnav_properties.OBJECTS);
  107. error errors/OBJECTS | nothing;"
  108. tal:attributes="class python:test(error, 'field error', 'field')">
  109. <label i18n:translate="label_objects" for="objects">Objets pédagogiques</label>
  110. <span class="fieldRequired" title="Required"
  111. i18n:attributes="title title_required;"
  112. i18n:translate="label_required">(Required)</span>
  113. <div class="formHelp" i18n:translate="help_objects">
  114. Correspondance des objets et de leurs noms affich&eacute;s. De la forme nom affich&eacute;=nom dans le lom.
  115. </div>
  116. <div tal:content="error">Validation error output</div>
  117. <textarea rows="10"
  118. name="OBJECTS"
  119. id="objects"
  120. tal:content="OBJECTS">
  121. </textarea>
  122. </div>
  123. <div class="field"
  124. tal:define="MEDIAS request/MEDIAS=S | python:'\n'.join(metnav_properties.MEDIAS);
  125. error errors/MEDIAS | nothing;"
  126. tal:attributes="class python:test(error, 'field error', 'field')">
  127. <label i18n:translate="label_medias" for="medias">Objets médias</label>
  128. <span class="fieldRequired" title="Required"
  129. i18n:attributes="title title_required;"
  130. i18n:translate="label_required">(Required)</span>
  131. <div class="formHelp" i18n:translate="help_medias">
  132. Correspondance des objets médias et de leurs noms affich&eacute;s. De la forme nom affich&eacute;=nom dans le lom.
  133. </div>
  134. <div tal:content="error">Validation error output</div>
  135. <textarea rows="10"
  136. name="MEDIAS"
  137. id="medias"
  138. tal:content="MEDIAS">
  139. </textarea>
  140. </div>
  141. </fieldset>
  142. <fieldset>
  143. <legend i18n:translate="legend_metadata">M&eacute;tadonn&eacute;es</legend>
  144. <p i18n:translate="description_metadata">
  145. Vous pouvez configurer dans cette partie tout ce qui concerne les m&eacute;tadonn&eacute;es utilis&eacute;es pour indexer vos contenus.
  146. </p>
  147. <div class="field"
  148. tal:define="COLLECTIONS request/COLLECTIONS | python:'\n'.join(metnav_properties.getProperty('COLLECTIONS', []));
  149. error errors/COLLECTIONS | nothing;"
  150. tal:attributes="class python:test(error, 'field error', 'field')">
  151. <label i18n:translate="label_collections" for="COLLECTIONS">Configuration des classifications et chemins</label>
  152. <span class="fieldRequired" title="Required"
  153. i18n:attributes="title title_required;"
  154. i18n:translate="label_required">(Required)</span>
  155. <div class="formHelp" i18n:translate="help_collections">
  156. Indiquez la configuration dans cet ordre : chemin portail|nom de classification|url de classification|collection des m&eacute;tadonn&eacute;es.<br/>
  157. Le chemin / est <b>obligatoire</b>, il indique le chemin par d&eacute;faut.
  158. Le premier chemin r&eacute;pondant au contexte actuel sera utilis&eacute;. Attention &agrave; l'ordre dans lequel vous les placez.
  159. </div>
  160. <div tal:content="error">Validation error output</div>
  161. <textarea rows="10"
  162. cols="30"
  163. name="COLLECTIONS"
  164. id="collections"
  165. tal:content="COLLECTIONS">
  166. </textarea>
  167. </div>
  168. <div class="field"
  169. tal:define="COLLECTION_METADATA request/COLLECTION_METADATA | metnav_properties/COLLECTION_METADATA;
  170. error errors/COLLECTION_METADATA | nothing;"
  171. tal:attributes="class python:test(error, 'field error', 'field')">
  172. <label>Chemin relatif de la collection des m&eacute;tadonn&eacute;es</label>
  173. <span class="fieldRequired" title="Required"
  174. i18n:attributes="title title_required;"
  175. i18n:translate="label_required">(Required)</span>
  176. <div class="formHelp">
  177. Indiquez le chemin de collection des m&eacute;tadonn&eacute;es. Ex: '/db/csphysique/metadata'.<br/>
  178. </div>
  179. <div tal:content="error">Validation error output</div>
  180. <input size="80"
  181. name="COLLECTION_METADATA"
  182. id="collection_metadata"
  183. value=""
  184. tal:attributes="value python:COLLECTION_METADATA.strip(' ');" />
  185. </div>
  186. </fieldset>
  187. <fieldset>
  188. <legend i18n:translate="legend_templates_url">URL des templates</legend>
  189. <p i18n:translate="description_templates_url">
  190. Vous pouvez configurer dans cette partie les URL o&ugrave; sont situ&eacute;es les diff&eacute;rents templates d'affichage des donn&eacute;es XML.
  191. </p>
  192. <div class="field"
  193. tal:define="URL_DOC request/URL_DOC | metnav_properties/URL_DOC;
  194. error errors/URL_DOC | nothing;"
  195. tal:attributes="class python:test(error, 'field error', 'field')">
  196. <label i18n:translate="label_url_doc" for="url_doc">Chemin et template pour les documents</label>
  197. <span class="fieldRequired" title="Required"
  198. i18n:attributes="title title_required;"
  199. i18n:translate="label_required">(Required)</span>
  200. <div class="formHelp" i18n:translate="help_url_doc">
  201. Chemin et template pour les documents.
  202. </div>
  203. <div tal:content="error">Validation error output</div>
  204. <input size="80"
  205. name="URL_DOC"
  206. id="url_doc"
  207. value=""
  208. tal:attributes="value URL_DOC" />
  209. </div>
  210. </fieldset>
  211. <fieldset>
  212. <legend i18n:translate="legend_xsl">XSL</legend>
  213. <p i18n:translate="description_xsl">
  214. Vous pouvez configurer dans cette partie les chemins vers les XSL ainsi que les options &agrave; passer pour la transformation de Docbook vers HTML.
  215. </p>
  216. <div class="field"
  217. tal:define="DB_XSL request/DB_XSL | metnav_properties/DB_XSL;
  218. error errors/DB_XSL | nothing;"
  219. tal:attributes="class python:test(error, 'field error', 'field')">
  220. <label i18n:translate="label_db_xsl" for="db_xsl">Chemin vers la XSL DocBook</label>
  221. <span class="fieldRequired" title="Required"
  222. i18n:attributes="title title_required;"
  223. i18n:translate="label_required">(Required)</span>
  224. <div class="formHelp" i18n:translate="help_db_xsl">
  225. Chemin vers la XSL DocBook &agrave; utiliser pour les transformations. Pr&eacute;ciser le type d'URI (file://, xmldb:exist://, etc.).
  226. Attention, s'il s'agit d'un type 'file://', c'est la localisation sur la machine qui h&eacute;berge le serveur eXist qui doit &ecirc;tre donn&eacute;e.
  227. </div>
  228. <div tal:content="error">Validation error output</div>
  229. <input size="80"
  230. name="DB_XSL"
  231. id="db_xsl"
  232. value=""
  233. tal:attributes="value DB_XSL" />
  234. </div>
  235. <div class="field"
  236. tal:define="DB_XSL_OPTS request/DB_XSL_OPTS | python:'\n'.join(metnav_properties.DB_XSL_OPTS);
  237. error errors/DB_XSL_OPTS | nothing;"
  238. tal:attributes="class python:test(error, 'field error', 'field')">
  239. <label i18n:translate="label_db_xsl_opts" for="db_xsl_opts">Options &agrave; passer &agrave; la XSL DocBook</label>
  240. <span class="fieldRequired" title="Required"
  241. i18n:attributes="title title_required;"
  242. i18n:translate="label_required">(Required)</span>
  243. <div class="formHelp" i18n:translate="help_db_xsl_opts">
  244. Options &agrave; passer &agrave; la XSL DocBook lors de la transformation (voir la documentation de la XSL). Une option par ligne, de la forme :
  245. param=value
  246. </div>
  247. <div tal:content="error">Validation error output</div>
  248. <textarea
  249. name="DB_XSL_OPTS"
  250. rows="10"
  251. cols="30"
  252. id="db_xsl_opts"
  253. tal:content="DB_XSL_OPTS">
  254. </textarea>
  255. </div>
  256. <div class="field"
  257. tal:define="XSL_CLASS_LIST request/XSL_CLASS_LIST | metnav_properties/XSL_CLASS_LIST;
  258. error errors/XSL_CLASS_LIST | nothing;"
  259. tal:attributes="class python:test(error, 'field error', 'field')">
  260. <label i18n:translate="label_xsl_class_list" for="xsl_class_list">Chemin vers la XSL qui transforme la classification en liste</label>
  261. <span class="fieldRequired" title="Required"
  262. i18n:attributes="title title_required;"
  263. i18n:translate="label_required">(Required)</span>
  264. <div class="formHelp" i18n:translate="help_xsl_class_list">
  265. Chemin vers la XSL qui transforme la classification en liste (portlet th&egrave;mes). Pr&eacute;ciser le type d'URI (file://, xmldb:exist://, etc.).
  266. </div>
  267. <div tal:content="error">Validation error output</div>
  268. <input size="80"
  269. name="XSL_CLASS_LIST"
  270. id="xsl_class_list"
  271. value=""
  272. tal:attributes="value XSL_CLASS_LIST" />
  273. </div>
  274. </fieldset>
  275. <fieldset>
  276. <legend i18n:translate="legend_xpath">Mod&egrave;les XPath</legend>
  277. <p i18n:translate="description_xpath">
  278. Vous pouvez configurer dans cette partie les xquery utilis&eacute;es pour la navigation sur les m&eacute;tadonn&eacute;es afin de personnaliser les r&eacute;sultats renvoy&eacute;s.
  279. </p>
  280. <div class="field"
  281. tal:define="RESOURCE_URL request/RESOURCE_URL | metnav_properties/RESOURCE_URL;
  282. error errors/RESOURCE_URL | nothing;"
  283. tal:attributes="class python:test(error, 'field error', 'field')">
  284. <label>Path for resource URL</label>
  285. <span class="fieldRequired" title="Required"
  286. i18n:attributes="title title_required;"
  287. i18n:translate="label_required">(Required)</span>
  288. <div class="formHelp">
  289. Define the path for extract the resource URL. Ex: '/lom:technical/lom:location[2]/text()' or '/lom:technical/lom:location[1]/text()' or '//lom:location[2]/text()'.<br/>
  290. </div>
  291. <div tal:content="error">Validation error output</div>
  292. <input size="80"
  293. name="RESOURCE_URL"
  294. id="resource_url"
  295. value=""
  296. tal:attributes="value python:RESOURCE_URL.strip(' ');" />
  297. </div>
  298. <div class="field"
  299. tal:define="CONDITION_BASE request/CONDITION_BASE | metnav_properties/CONDITION_BASE;
  300. error errors/CONDITION_BASE | nothing;"
  301. tal:attributes="class python:test(error, 'field error', 'field')">
  302. <label i18n:translate="label_condition_base" for="condition_base">Condition de base XQuery</label>
  303. <span class="fieldRequired" title="Required"
  304. i18n:attributes="title title_required;"
  305. i18n:translate="label_required">(Required)</span>
  306. <div class="formHelp" i18n:translate="help_condition_base">
  307. Un morceau valide de XQuery exprimant une condition qui sera appliqu&eacute;e &agrave; toutes les XQueries.
  308. </div>
  309. <div tal:content="error">Validation error output</div>
  310. <input size="80"
  311. name="CONDITION_BASE"
  312. id="condition_base"
  313. value=""
  314. tal:attributes="value CONDITION_BASE" />
  315. </div>
  316. <div class="field"
  317. tal:define="DEFAULT_COLLATION request/DEFAULT_COLLATION | metnav_properties/DEFAULT_COLLATION;
  318. error errors/DEFAULT_COLLATION | nothing;"
  319. tal:attributes="class python:test(error, 'field error', 'field')">
  320. <label i18n:translate="label_default_collation" for="default_collation">Collation par d&eacute;faut</label>
  321. <div class="formHelp" i18n:translate="help_default_collation">
  322. Formulation XQuery de la collation (langue et r&egrave;gles de langages) utilis&eacute;e par d&eacute;faut.
  323. </div>
  324. <div tal:content="error">Validation error output</div>
  325. <input size="80"
  326. name="DEFAULT_COLLATION"
  327. id="default_collation"
  328. value=""
  329. tal:attributes="value DEFAULT_COLLATION" />
  330. </div>
  331. <div class="field"
  332. tal:define="HEAD_SUP request/HEAD_SUP | python:'\n'.join(metnav_properties.HEAD_SUP);
  333. error errors/HEAD_SUP | nothing;"
  334. tal:attributes="class python:test(error, 'field error', 'field')">
  335. <label i18n:translate="label_head_sup" for="head_sup">Options suppl&eacute;mentaires du header</label>
  336. <div class="formHelp" i18n:translate="help_head_sup">
  337. Options suppl&eacute;mentaires &agrave; placer dans le header des XQueries.
  338. </div>
  339. <div tal:content="error">Validation error output</div>
  340. <textarea rows="5"
  341. name="HEAD_SUP"
  342. id="head_sup"
  343. value=""
  344. tal:content="HEAD_SUP">
  345. </textarea>
  346. </div>
  347. <div class="field"
  348. tal:define="TEMPLATE_SEARCH request/TEMPLATE_SEARCH | metnav_properties/TEMPLATE_SEARCH;
  349. error errors/TEMPLATE_SEARCH | nothing;"
  350. tal:attributes="class python:test(error, 'field error', 'field')">
  351. <label i18n:translate="label_template_search" for="template_search">Expression de recherche par d&eacute;faut</label>
  352. <span class="fieldRequired" title="Required"
  353. i18n:attributes="title title_required;"
  354. i18n:translate="label_required">(Required)</span>
  355. <div class="formHelp" i18n:translate="help_template_search">
  356. Expression de recherche. Deux %s sont accept&eacute;s : le premier est le noeud XML dans lequel chercher, le deuxi&egrave;me est l'expression &agrave; rechercher.
  357. </div>
  358. <div tal:content="error">Validation error output</div>
  359. <input size="80"
  360. name="TEMPLATE_SEARCH"
  361. id="template_search"
  362. value=""
  363. tal:attributes="value TEMPLATE_SEARCH" />
  364. </div>
  365. <div class="field"
  366. tal:define="XPATH_SEARCH_EXPR request/XPATH_SEARCH_EXPR | python:'\n'.join(metnav_properties.XPATH_SEARCH_EXPR);
  367. error errors/XPATH_SEARCH_EXPR | nothing;"
  368. tal:attributes="class python:test(error, 'field error', 'field')">
  369. <label i18n:translate="label_xpath_search_expr" for="xpath_search_expr">Variables pour les recherches XPath</label>
  370. <span class="fieldRequired" title="Required"
  371. i18n:attributes="title title_required;"
  372. i18n:translate="label_required">(Required)</span>
  373. <div class="formHelp" i18n:translate="help_xpath_search_expr">
  374. Variables qui seront utilis&eacute;es dans les recherches XPath avec leur correspondance XPath. De la forme variable=valeur. Une par ligne.
  375. </div>
  376. <div tal:content="error">Validation error output</div>
  377. <textarea rows="5"
  378. name="XPATH_SEARCH_EXPR"
  379. id="xpath_search_expr"
  380. value=""
  381. tal:content="XPATH_SEARCH_EXPR">
  382. </textarea>
  383. </div>
  384. <div class="field"
  385. tal:define="OBJET_SEMAINE request/OBJET_SEMAINE | metnav_properties/OBJET_SEMAINE;
  386. error errors/OBJET_SEMAINE | nothing;"
  387. tal:attributes="class python:test(error, 'field error', 'field')">
  388. <label i18n:translate="label_objet_semaine" for="objet_semaine">D&eacute;finition d'un type "ressource de la semaine"</label>
  389. <span class="fieldRequired" title="Required"
  390. i18n:attributes="title title_required;"
  391. i18n:translate="label_required">(Required)</span>
  392. <div class="formHelp" i18n:translate="help_objet_semaine">
  393. Un morceau valide de XQuery exprimant une fa&ccedil;on de filtrer les types d'objets pour cr&eacute;er une ressource de la semaine.
  394. </div>
  395. <div tal:content="error">Validation error output</div>
  396. <input size="80"
  397. name="OBJET_SEMAINE"
  398. id="objet_semaine"
  399. value=""
  400. tal:attributes="value OBJET_SEMAINE" />
  401. </div>
  402. </fieldset>
  403. <fieldset>
  404. <legend>Archives</legend>
  405. <p>
  406. Vous pouvez configurer dans cette partie tout ce qui concerne les archives des ressources.
  407. </p>
  408. <div class="field"
  409. tal:define="INIT_ANNEE request/INIT_ANNEE | metnav_properties/INIT_ANNEE;
  410. error errors/INIT_ANNEE | nothing;"
  411. tal:attributes="class python:test(error, 'field error', 'field')">
  412. <label for="INIT_ANNEE">Année initiale</label>
  413. <span class="fieldRequired" title="Required"
  414. i18n:attributes="title title_required;"
  415. i18n:translate="label_required">(Required)</span>
  416. <div class="formHelp">
  417. Saisissez l'année initiale des archives.
  418. </div>
  419. <div tal:content="error">Validation error output</div>
  420. <input size="80"
  421. name="INIT_ANNEE"
  422. id="init_annee"
  423. value=""
  424. tal:attributes="value INIT_ANNEE" />
  425. </div>
  426. <div class="field"
  427. tal:define="ARCHIVE_MOIS request/ARCHIVE_MOIS | metnav_properties/ARCHIVE_MOIS;
  428. error errors/ARCHIVE_MOIS | nothing;"
  429. tal:attributes="class python:test(error, 'field error', 'field')">
  430. <label>Archives classées par mois ou par année</label>
  431. <span class="fieldRequired" title="Required"
  432. i18n:attributes="title title_required;"
  433. i18n:translate="label_required">(Required)</span>
  434. <div class="formHelp">
  435. Les archives seront classées par mois ?
  436. </div>
  437. <div tal:content="error">Validation error output</div>
  438. <div tal:condition="python:ARCHIVE_MOIS==False or ARCHIVE_MOIS=='False'">
  439. <input name="ARCHIVE_MOIS"
  440. id="archive_mois"
  441. value="True"
  442. type="radio" /> Oui
  443. <input name="ARCHIVE_MOIS"
  444. id="archive_moisbis"
  445. value="False"
  446. type="radio"
  447. checked="checked" />Non, par année </div>
  448. <div tal:condition="python:ARCHIVE_MOIS==True or ARCHIVE_MOIS=='True'">
  449. <input name="ARCHIVE_MOIS"
  450. id="archive_mois"
  451. value="True"
  452. checked="checked"
  453. type="radio" /> Oui
  454. <input name="ARCHIVE_MOIS"
  455. id="archive_moisbis"
  456. value="False"
  457. type="radio" />Non, par année </div>
  458. </div>
  459. <div class="field"
  460. tal:define="HREF_BLANK request/HREF_BLANK | metnav_properties/HREF_BLANK;
  461. error errors/HREF_BLANK | nothing;"
  462. tal:attributes="class python:test(error, 'field error', 'field')">
  463. <label>Les liens avec "http:// ..." s'ouvre dans une nouvelle fenêtre (target="_blank")</label>
  464. <span class="fieldRequired" title="Required"
  465. i18n:attributes="title title_required;"
  466. i18n:translate="label_required">(Required)</span>
  467. <div class="formHelp">
  468. Les liens vers les pages de ressources commençant par "http://" s'ouvre dans une nouvelle fenêtre ?
  469. </div>
  470. <div tal:content="error">Validation error output</div>
  471. <div tal:condition="python:HREF_BLANK==False or HREF_BLANK=='False'">
  472. <input name="HREF_BLANK"
  473. id="href_blank"
  474. value="True"
  475. type="radio" /> Oui
  476. <input name="HREF_BLANK"
  477. id="href_balnkbis"
  478. value="False"
  479. type="radio"
  480. checked="checked" />Non
  481. </div>
  482. <div tal:condition="python:HREF_BLANK==True or HREF_BLANK=='True'">
  483. <input name="HREF_BLANK"
  484. id="href_blank"
  485. value="True"
  486. checked="checked"
  487. type="radio" /> Oui
  488. <input name="HREF_BLANK"
  489. id="href_blankbis"
  490. value="False"
  491. type="radio" />Non
  492. </div>
  493. </div>
  494. </fieldset>
  495. <input type="hidden" name="form.submitted" value="1" />
  496. <div class="formControls">
  497. <input class="context"
  498. type="submit"
  499. name="form.button.Save"
  500. value="Save"
  501. i18n:attributes="value label_save;"
  502. />
  503. </div>
  504. </fieldset>
  505. </form>
  506. </div>
  507. </body>
  508. </html>