mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
59 lines
2.4 KiB
Twig
59 lines
2.4 KiB
Twig
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html lang="{{ app['locale.I18n'] }}">
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
<title>{{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ 'phraseanet:: thesaurus' | trans }}</title>
|
|
<link rel="shortcut icon" type="image/x-icon" href="/skins/thesaurus/favicon.ico">
|
|
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
|
|
</head>
|
|
<body>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<center>
|
|
{% set count_bases = bases | length %}
|
|
{% if count_bases > 0 %}
|
|
|
|
<form name="fBase" action="{{ path('thesaurus_thesaurus') }}" method="post">
|
|
{{ 'thesaurus:: Editer le thesaurus' | trans }}
|
|
<select name="bid" onchange="ckok();return(true);">
|
|
<option value="">{{ 'phraseanet:: choisir' | trans }}</option>
|
|
{% for sbas_id, name in bases %}
|
|
<option value="{{ sbas_id }}">{{ name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
<br/>
|
|
<br/>
|
|
<script type="text/javascript">
|
|
function ckok()
|
|
{
|
|
ck = false;
|
|
fl = document.getElementsByName("piv");
|
|
for(i=0; !ck && i<fl.length; i++)
|
|
ck = fl[i].checked;
|
|
ck &= document.forms[0].bid.selectedIndex > 0;
|
|
document.getElementById("button_ok").disabled = !ck;
|
|
}
|
|
</script>
|
|
<table>
|
|
<tr>
|
|
<td>{{ 'thesaurus:: langue pivot' | trans }}</td>
|
|
{% for code, language in languages %}
|
|
<td style="text-align:left">
|
|
<input type='radio' onclick="ckok();return(true);" value='{{ code }}' name='piv'>
|
|
<img src='/skins/lng/{{ code }}_flag_18.gif' />( {{ language }} )
|
|
</td>
|
|
{% endfor %}
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
<br/>
|
|
<input disabled="disabled" id="button_ok" type="submit" style="width:80px;" value="{{ 'boutton::valider' | trans }}" /><br/>
|
|
</form>
|
|
{% else %}
|
|
{{ 'thesaurus:: Vous n\'avez acces a aucune base' | trans }}
|
|
{% endif %}
|
|
</center>
|
|
</body>
|
|
</html>
|