Use url generator everywhere

This commit is contained in:
Romain Neutron
2013-06-11 18:29:40 +02:00
parent 2302efc7e3
commit 4161ef2e31
230 changed files with 1360 additions and 18277 deletions

View File

@@ -7,7 +7,7 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'thesaurus:: accepter...' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<style type="text/css">
.path_separator
{
@@ -18,7 +18,7 @@
font-weight:900;
}
</style>
<script type="text/javascript" src="/skins/thesaurus/xmlhttp.js"></script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/thesaurus/xmlhttp.js' }) }}"></script>
<script type="text/javascript">
function loaded()
{

View File

@@ -3,7 +3,7 @@
<head>
<title>{% trans 'thesaurus:: export au format texte' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
var format = "text";

View File

@@ -2,7 +2,7 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'thesaurus:: export au format texte' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
function loaded()
{

View File

@@ -2,7 +2,7 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'thesaurus:: export en topics' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
var format = '???';
function clkBut(button)

View File

@@ -2,7 +2,7 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'thesaurus:: export en topics' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<style>
.toscreen
{

View File

@@ -8,7 +8,7 @@
<head>
<base target="_self">
<title>{% trans 'thesaurus:: Importer' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
function clkBut(button)
{

View File

@@ -4,7 +4,7 @@
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>{{ app['phraseanet.registry'].get('GV_homeTitle') }} - {% trans 'phraseanet:: thesaurus' %}</title>
<link rel="shortcut icon" type="image/x-icon" href="/skins/thesaurus/favicon.ico">
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
</head>
<body>
<br/>
@@ -14,7 +14,7 @@
{% set count_bases = bases | length %}
{% if count_bases > 0 %}
<form name="fBase" action="/thesaurus/thesaurus.php" method="post">
<form name="fBase" action="{{ path('thesaurus_thesaurus') }}" method="post">
{% trans 'thesaurus:: Editer le thesaurus' %}
<select name="bid" onchange="ckok();return(true);">
<option value="">{% trans 'phraseanet:: choisir' %}</option>

View File

@@ -3,7 +3,7 @@
<head>
<title>{% trans 'thesaurus:: Lier la branche de thesaurus au champ' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
function ckField()

View File

@@ -3,7 +3,7 @@
<head>
<title>{% trans 'thesaurus:: Lier la branche de thesaurus' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
function clkBut(button)
@@ -37,7 +37,7 @@
{% for fieldname, branches in oldlinks %}
{% if branches['old_branch'] %}
{% set old_branch = branches['old_branch'] %}
<b>{{ fieldname }}</b>
<b>{{ fieldname }}</b>
{% trans %}
thesaurus:: Ce champ a ete modifie ; ancienne branche : {{ old_branch }}
{% endtrans %}

View File

@@ -2,7 +2,7 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'thesaurus:: Lier la branche de thesaurus' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
</head>
<body class="dialog">
<center>

View File

@@ -13,7 +13,7 @@
<head>
<title>{{ title }}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
self.returValue = null;

View File

@@ -2,8 +2,8 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% if typ == "TS" %}{% trans 'thesaurus:: Nouveau terme specifique' %}{% else %}{% trans 'thesaurus:: Nouveau synonyme' %}{% endif %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<script type="text/javascript" src="/skins//thesaurus/xmlhttp.js"></script>
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/thesaurus/xmlhttp.js' }) }}"></script>
</head>
<body onload="loaded();" class="dialog" style="text-align:center">
{% if dlg is not none %}
@@ -41,7 +41,7 @@
<br/>
<center>
<form onsubmit="return(false);">
<input type="hidden" name="bid" value="{{ bid }} ">
<input type="hidden" name="bid" value="{{ bid }} ">
<input type="hidden" name="pid" value="{{ pid }}">
<div class='x3Dbox' style='margin:15px; height:100px; overflow:auto;'>
{% for candidate in candidates %}

View File

@@ -7,7 +7,7 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'thesaurus:: Proprietes' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<style type="text/css">
a
{
@@ -24,10 +24,10 @@
}
</style>
<script type="text/javascript" src="/skins/thesaurus/win.js"></script>
<script type="text/javascript" src="/skins/thesaurus/xmlhttp.js"></script>
<script type="text/javascript" src="/include/minify/?f=include/jslibs/jquery-1.7.1.js,include/jslibs/jquery.sprintf.1.0.3.js"></script>
<script type="text/javascript" src="/skins/thesaurus/sprintf.js"></script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/thesaurus/win.js' }) }}"></script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/thesaurus/xmlhttp.js' }) }}"></script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js,include/jslibs/jquery.sprintf.1.0.3.js' }) }}"></script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/thesaurus/sprintf.js' }) }}"></script>
<script type="text/javascript">
function loaded()

View File

@@ -2,7 +2,7 @@
<html lang="{{ app['locale.I18n'] }}">
<head>
<title>{% trans 'Chercher' %}</title>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
function clkBut(button)
{

View File

@@ -8,15 +8,15 @@
display: none;
}
</style>
<link REL="stylesheet" TYPE="text/css" HREF="/skins/thesaurus/thesaurus.css" />
<link REL="stylesheet" TYPE="text/css" href="{{ path('minifier', { 'f' : 'skins/thesaurus/thesaurus.css' }) }}" />
<script type="text/javascript">
var p4 = {};
</script>
<link rel="shortcut icon" type="image/x-icon" href="/skins/thesaurus/favicon.ico">
<script type="text/javascript" src="/include/jslibs/jquery-1.7.1.js"></script>
<script type="text/javascript" src="/include/jslibs/jquery-ui-1.8.17/js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="/include/minify/?g=thesaurus"></script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'include/jslibs/jquery-ui-1.8.17/js/jquery-ui-1.8.17.custom.min.js' }) }}"></script>
<script type="text/javascript" src="{{ path('minifier', { 'g' : 'thesaurus' }) }}"></script>
<script type="text/javascript">
var currentBaseName = "";
@@ -163,17 +163,20 @@
<a href="javascript:void(0)" class="" id="kterm_link">{% trans 'thesaurus::menu: lier au champ' %}</a>
</div>
<form name="fBase" action="/thesaurus/loadth.php" method="post" target="?">
<form name="fBase" action="{{ path('thesaurus_loadth') }}" method="post" target="?">
<input type="hidden" name="bid" value="{{ bid }}" />
<input type="hidden" name="piv" value="{{ piv }}" />
<input type="hidden" name="repair" value="" />
</form>
<!--
Seems obsolete
<form name="fSave" action="/thesaurus/savethesaurus1.php" method="post">
<input type="hidden" name="bid" value="?" />
<input type="hidden" name="th" value="?" />
<input type="hidden" name="ch" value="?" />
</form>
-->
<form name="fTh" style="position:absolute; top:0px; left:0px; right:0px; bottom:0px;">