mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix latest merge
This commit is contained in:
@@ -2,131 +2,142 @@
|
||||
|
||||
{% block extrahead %}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$(document).ready(function(){
|
||||
|
||||
$('button').button();
|
||||
|
||||
$('.databox_create').bind('change', function () {
|
||||
$('.databox_create').bind('change', function(){
|
||||
var $this = $(this);
|
||||
var $current = $this.closest('.steps');
|
||||
$('.databox_creation_input', $current).attr('disabled', $this.attr('checked'));
|
||||
$('.db_tester', $current).attr('disabled', $this.attr('checked')).toggleClass("ui-state-disabled", $this.attr('checked'));
|
||||
$('.db_tester', $current).attr('disabled', $this.attr('checked')).toggleClass( "ui-state-disabled", $this.attr('checked') );
|
||||
});
|
||||
|
||||
$('.ab_opt_toggler').bind('click', function () {
|
||||
$('.optional_ab_data').fadeToggle();
|
||||
$('.ab_opt_toggler').bind('click', function(){
|
||||
$('.optional_ab_datas').fadeToggle();
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$('button.ab_tester').bind('click', function () {
|
||||
$('button.ab_tester').bind('click', function (){
|
||||
if(window.console)
|
||||
console.log('application box connection test');
|
||||
test_connection_appbox();
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$('button.db_tester').bind('click', function () {
|
||||
$('button.db_tester').bind('click', function (){
|
||||
if(window.console)
|
||||
console.log('data box connection test');
|
||||
test_connection_databox();
|
||||
|
||||
return false;
|
||||
});
|
||||
var language = {
|
||||
ajaxError : "{% trans 'Erreur lors du contact avec le serveur WEB' %}",
|
||||
ajaxTimeout : "{% trans 'Delai depasse lors du contact avec le serveur WEB' %}",
|
||||
requiredField : "{% trans 'Required' %}",
|
||||
validateEmail : "{% trans 'forms::merci d\'entrer une adresse e-mail valide' %}",
|
||||
validatePassword : "{% trans 'forms::ce champ est requis' %}",
|
||||
validatePasswordConfirm : "{% trans 'forms::ce champ est requis' %}",
|
||||
validatePasswordEqual : "{% trans 'forms::les mots de passe ne correspondent pas' %}",
|
||||
wrongCredentials : "{% trans 'Vous devez specifier une adresse email et un mot de passe valides' %}",
|
||||
wrongDatabasename : "{% trans 'Le nom de base de donnee est incorrect' %}",
|
||||
someErrors : "{% trans 'Il y a des erreurs, merci de les corriger avant de continuer' %}"
|
||||
}
|
||||
});
|
||||
var language = {
|
||||
ajaxError : "{{ 'Erreur lors du contact avec le serveur WEB' | trans }}",
|
||||
ajaxTimeout : "{{ 'Delai depasse lors du contact avec le serveur WEB' | trans }}",
|
||||
requiredField : "{{ 'Required' | trans }}",
|
||||
validateEmail : "{{ 'forms::merci d\'entrer une adresse e-mail valide' | trans }}",
|
||||
validatePassword : "{{ 'forms::ce champ est requis' | trans }}",
|
||||
validatePasswordConfirm : "{{ 'forms::ce champ est requis' | trans }}",
|
||||
validatePasswordEqual : "{{ 'forms::les mots de passe ne correspondent pas' | trans }}",
|
||||
wrongCredentials : "{{ 'Vous devez specifier une adresse email et un mot de passe valides' | trans }}",
|
||||
wrongDatabasename : "{{ 'Le nom de base de donnee est incorrect' | trans }}",
|
||||
someErrors : "{{ 'Il y a des erreurs, merci de les corriger avant de continuer' | trans }}"
|
||||
}
|
||||
|
||||
$.validator.passwordRating.messages = {
|
||||
"similar-to-username": "{% trans 'forms::le mot de passe est trop similaire a l\'identifiant' %}",
|
||||
"too-short": "{% trans 'forms::la valeur donnee est trop courte' %}",
|
||||
"very-weak": "{% trans 'forms::le mot de passe est trop simple' %}",
|
||||
"weak": "{% trans 'forms::le mot de passe est trop simple' %}",
|
||||
"good": "{% trans 'forms::le mot de passe est bon' %}",
|
||||
"strong": "{% trans 'forms::le mot de passe est tres bon' %}"
|
||||
};
|
||||
$.validator.passwordRating.messages = {
|
||||
"similar-to-username": "{{ 'forms::le mot de passe est trop similaire a l\'identifiant' | trans }}",
|
||||
"too-short": "{{ 'forms::la valeur donnee est trop courte' | trans }}",
|
||||
"very-weak": "{{ 'forms::le mot de passe est trop simple' | trans }}",
|
||||
"weak": "{{ 'forms::le mot de passe est trop simple' | trans }}",
|
||||
"good": "{{ 'forms::le mot de passe est bon' | trans }}",
|
||||
"strong": "{{ 'forms::le mot de passe est tres bon' | trans }}"
|
||||
};
|
||||
|
||||
$("#create_admin").validate({
|
||||
rules: {
|
||||
email: {email: true},
|
||||
password: {password: "#create_admin input[name=email]"},
|
||||
password_confirm: {equalTo: "#create_admin input[name=password]"},
|
||||
hostname: {required: true},
|
||||
user: {required: true},
|
||||
ab_name: {required: true}
|
||||
},
|
||||
messages: {
|
||||
email: {
|
||||
email: language.validateEmail
|
||||
},
|
||||
hostname: {
|
||||
required: language.requiredField
|
||||
},
|
||||
password: {
|
||||
required: language.validatePassword
|
||||
},
|
||||
password_confirm: {
|
||||
required: language.validatePasswordConfirm,
|
||||
equalTo: language.validatePasswordEqual
|
||||
}
|
||||
},
|
||||
errorPlacement: function (error, element) {
|
||||
error.appendTo(element.parent());
|
||||
}
|
||||
}
|
||||
);
|
||||
rules: {
|
||||
email:{ email:true},
|
||||
|
||||
password : {password:"#create_admin input[name=email]"},
|
||||
password_confirm : {equalTo:"#create_admin input[name=password]"},
|
||||
ab_hostname : {required:true},
|
||||
ab_user : {required:true},
|
||||
ab_name : {required:true}
|
||||
},
|
||||
messages: {
|
||||
email:{
|
||||
email : language.validateEmail
|
||||
},
|
||||
ab_hostname : {
|
||||
required : language.requiredField
|
||||
},
|
||||
password : {
|
||||
required : language.validatePassword
|
||||
},
|
||||
password_confirm : {
|
||||
required : language.validatePasswordConfirm,
|
||||
equalTo : language.validatePasswordEqual
|
||||
}
|
||||
},
|
||||
errorPlacement: function(error, element) {
|
||||
error.appendTo( element.parent() );
|
||||
}
|
||||
}
|
||||
);
|
||||
$("#create_admin").valid();
|
||||
$('.path_to_test').path_file_test({'url': '/setup/test/path/'});
|
||||
$('.url_to_test').url_test({'url': '/setup/test/url/'});
|
||||
|
||||
$('.path_to_test').path_file_test({'url':'/setup/test/path/'});
|
||||
$('.url_to_test').url_test({'url':'/setup/test/url/'});
|
||||
|
||||
$('.steps:not(:first)').hide();
|
||||
$('.steps .next').bind('click', function () {
|
||||
$('.steps .next').bind('click', function(){
|
||||
var $current = $(this).closest('.steps');
|
||||
if($('input.field_error, input.error', $current).length > 0)
|
||||
{
|
||||
alert('{% trans "Veuillez corriger les erreurs avant de poursuivre" %}');
|
||||
alert('{{ "Veuillez corriger les erreurs avant de poursuivre" | trans }}');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$(this).hasClass('install')) {
|
||||
var callback = function () {
|
||||
if(!$(this).hasClass('install'))
|
||||
{
|
||||
var callback = function(){
|
||||
$current.hide();
|
||||
$current.next().show();
|
||||
};
|
||||
} else {
|
||||
var callback = function () {
|
||||
}
|
||||
else
|
||||
{
|
||||
var callback = function(){
|
||||
if(window.console)
|
||||
console.log('Processing install....');
|
||||
$(this).attr('disabled', 'disabled');
|
||||
var dialog = $('#install_wait');
|
||||
dialog.dialog({
|
||||
modal: true,
|
||||
resizable: false,
|
||||
draggable: false,
|
||||
closeOnEscape: false
|
||||
modal:true,
|
||||
resizable:false,
|
||||
draggable:false,
|
||||
closeOnEscape:false
|
||||
});
|
||||
$('.ui-dialog-titlebar-close', dialog.closest('.ui-dialog')).remove();
|
||||
setTimeout("$('form#create_admin').submit();", 500);
|
||||
setTimeout("$('form#create_admin').submit();",500);
|
||||
};
|
||||
}
|
||||
|
||||
if ($current.hasClass('appbox_settings')) {
|
||||
if($current.hasClass('appbox_settings'))
|
||||
{
|
||||
test_connection_appbox(callback);
|
||||
} else if ($current.hasClass('databox_settings') && $('.databox_create', $current).is(':not(:checked)')) {
|
||||
}
|
||||
else if($current.hasClass('databox_settings') && $('.databox_create', $current).is(':not(:checked)'))
|
||||
{
|
||||
test_connection_databox(callback);
|
||||
} else {
|
||||
}
|
||||
else{
|
||||
callback();
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
$('.steps .previous').bind('click', function () {
|
||||
$('.steps .previous').bind('click', function(){
|
||||
var $current = $(this).closest('.steps');
|
||||
$current.hide();
|
||||
$current.prev().show();
|
||||
@@ -134,7 +145,9 @@
|
||||
return false;
|
||||
});
|
||||
|
||||
function test_connection_appbox(callback) {
|
||||
|
||||
function test_connection_appbox(callback)
|
||||
{
|
||||
var scope = $('.appbox_settings');
|
||||
var hostname_input = $('input[name="hostname"]:visible', scope);
|
||||
var port_input = $('input[name="port"]:visible', scope);
|
||||
@@ -146,27 +159,31 @@
|
||||
var password = password_input.val();
|
||||
var db_name = db_name_input.val();
|
||||
|
||||
var data = {
|
||||
user: user,
|
||||
password: password,
|
||||
db_name: db_name
|
||||
var datas = {
|
||||
user:user,
|
||||
password:password,
|
||||
db_name:db_name
|
||||
};
|
||||
|
||||
if (hostname_input.length > 0) {
|
||||
data.hostname = hostname_input.val();
|
||||
if(hostname_input.length > 0)
|
||||
{
|
||||
datas.hostname = hostname_input.val();
|
||||
}
|
||||
if (port_input.length > 0) {
|
||||
data.port = port_input.val();
|
||||
if(port_input.length > 0)
|
||||
{
|
||||
datas.port = port_input.val();
|
||||
}
|
||||
|
||||
var el_loader = $('.tester_loader', scope);
|
||||
var el_status = $('.tester_status', scope);
|
||||
var el_message = $('.tester_message', scope);
|
||||
|
||||
test_connection(el_loader, el_status, el_message, data, callback);
|
||||
test_connection(el_loader, el_status, el_message, datas, callback);
|
||||
}
|
||||
|
||||
function test_connection_databox(callback) {
|
||||
|
||||
function test_connection_databox(callback)
|
||||
{
|
||||
var appbox_scope = $('.appbox_settings');
|
||||
var databox_scope = $('.databox_settings');
|
||||
|
||||
@@ -181,26 +198,30 @@
|
||||
var password = password_input.val();
|
||||
var db_name = db_name_input.val();
|
||||
|
||||
var data = {
|
||||
user: user,
|
||||
password: password,
|
||||
db_name: db_name
|
||||
var datas = {
|
||||
user:user,
|
||||
password:password,
|
||||
db_name:db_name
|
||||
};
|
||||
|
||||
if (hostname_input.length > 0) {
|
||||
data.hostname = hostname_input.val();
|
||||
if(hostname_input.length > 0)
|
||||
{
|
||||
datas.hostname = hostname_input.val();
|
||||
}
|
||||
if (port_input.length > 0) {
|
||||
data.port = port_input.val();
|
||||
if(port_input.length > 0)
|
||||
{
|
||||
datas.port = port_input.val();
|
||||
}
|
||||
|
||||
var el_loader = $('.tester_loader', databox_scope);
|
||||
var el_status = $('.tester_status', databox_scope);
|
||||
var el_message = $('.tester_message', databox_scope);
|
||||
test_connection(el_loader, el_status, el_message, data, callback);
|
||||
test_connection(el_loader, el_status, el_message, datas, callback);
|
||||
|
||||
}
|
||||
|
||||
function test_connection(el_loader, el_status, el_message, data, callback) {
|
||||
function test_connection(el_loader, el_status, el_message, datas, callback)
|
||||
{
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: '/setup/connection_test/mysql/',
|
||||
@@ -259,11 +280,14 @@
|
||||
<form id="create_admin" method="post" action="{{ path('install_do_install') }}">
|
||||
|
||||
|
||||
|
||||
<div class="steps">
|
||||
<div class="wrapper">
|
||||
<div class="PNB10 wrapper_left">
|
||||
<div class="PNB10 section_title">
|
||||
<h2></h2>
|
||||
<h2>
|
||||
|
||||
</h2>
|
||||
</div>
|
||||
<div class="PNB10" style="top:50px;overflow-x:hidden;">
|
||||
<table class="main_content_wrapper">
|
||||
@@ -274,37 +298,21 @@
|
||||
<td>
|
||||
<p>
|
||||
{% if error is not none %}
|
||||
|
||||
<p class='error'>
|
||||
{{ error }}
|
||||
{{error}}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% trans %}
|
||||
Bonjour, vous etes sur le point d'installer Phraseanet.
|
||||
{% endtrans %}
|
||||
{% trans %}Bonjour, vous etes sur le point d'installer Phraseanet.{% endtrans %}
|
||||
</p>
|
||||
<p>
|
||||
{% trans %}
|
||||
Consultez en ligne les pré-requis et la
|
||||
configuration du serveur web
|
||||
{% endtrans %}
|
||||
{% trans %}Consultez en ligne les pré-requis et la configuration du serveur web{% endtrans %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% trans %}
|
||||
Vous aurez besoin de spécifier un serveur MySQL, des
|
||||
repertoires de stockage pour vos documents, et de
|
||||
configurer votre serveur web pour qu'il publie
|
||||
certains de ces dossiers de stockage.
|
||||
{% endtrans %}
|
||||
{% trans %}Vous aurez besoin de spécifier un serveur MySQL, des repertoires de stockage pour vos documents, et de configurer votre serveur web pour qu'il publie certains de ces dossiers de stockage.{% endtrans %}
|
||||
</p>
|
||||
{% if warnings|length > 0 %}
|
||||
<p>
|
||||
{% trans %}
|
||||
Avant de continuer, prenez connaissance des
|
||||
points ci-dessous. Vous pouvez continuer sans
|
||||
corriger ces problèmes.
|
||||
{% endtrans %}
|
||||
{% trans %}Avant de continuer, prenez connaissance des points ci-dessous. Vous pouvez continuer sans corriger ces problèmes.{% endtrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</td>
|
||||
@@ -319,7 +327,7 @@
|
||||
{% if warnings is not empty %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ path('install_root') }}">{% trans 'Review system configuration' %}</a>
|
||||
<a href="{{ path('install_root') }}">{{ 'Review system configuration' | trans }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
@@ -335,9 +343,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<a href="https://docs.phraseanet.com/3.8/Admin/"
|
||||
target="_blank">
|
||||
{% trans 'Prerequisite and Configuration' %}
|
||||
<a href="https://docs.phraseanet.com/3.8/Admin/" target="_blank">
|
||||
{{ 'Prerequisite and Configuration' | trans }}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -352,7 +359,7 @@
|
||||
<td>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<button class="next">{% trans 'boutton::suivant' %}</button>
|
||||
<button class="next">{{ 'boutton::suivant' | trans }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -365,7 +372,7 @@
|
||||
<div class="PNB10 wrapper_left">
|
||||
<div class="PNB10 section_title">
|
||||
<h2>
|
||||
1/5 {% trans 'Executables externes' %}
|
||||
1/5 {{ 'Executables externes' | trans }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="PNB10" style="top:50px;overflow-x:hidden;">
|
||||
@@ -379,12 +386,8 @@
|
||||
{% set required = '1' %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td><label>{{ binary['name'] }}</label></td>
|
||||
<td><input autocomplete="off" name="binary_{{ key }}"
|
||||
class="path_to_test test_executable {% if required == "1" %}required{% endif %}"
|
||||
type="text"
|
||||
value="{{ binary['binary'] }}"/> {% if required == "1" %}{% trans 'Required field' %}{% endif %}
|
||||
</td>
|
||||
<td><label>{{ binary['name'] }}</label> </td>
|
||||
<td><input autocomplete="off" name="binary_{{key}}" class="path_to_test test_executable {% if required == "1" %}required{% endif %}" type="text" value="{{ binary['binary'] }}" /> {% if required == "1" %}{{ 'Required field' | trans }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
@@ -399,15 +402,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
{% trans 'Phraseanet may require many binaries.' %}
|
||||
{{ 'Phraseanet may require many binaries.' | trans }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% trans 'Some of them are required, like the indexer, Exiftool or ImageMagick components, some others are optionnal, like FFmpeg which is used to preview video files.' %}
|
||||
{{ 'Some of them are required, like the indexer, Exiftool or ImageMagick components, some others are optionnal, like FFmpeg which is used to preview video files.' | trans }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% trans 'Don\'t worry, You can modify your configuration later' %}
|
||||
{{ 'Don\'t worry, You can modify your configuration later' | trans }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -419,10 +420,10 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<button class="previous">{% trans 'boutton::precedent' %}</button>
|
||||
<button class="previous">{{ 'boutton::precedent' | trans }}</button>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<button class="next">{% trans 'boutton::suivant' %}</button>
|
||||
<button class="next">{{ 'boutton::suivant' | trans }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -430,12 +431,14 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="steps">
|
||||
<div class="wrapper">
|
||||
<div class="PNB10 wrapper_left">
|
||||
<div class="PNB10 section_title">
|
||||
<h2>2/5
|
||||
{% trans 'Creation de votre compte' %}
|
||||
{{ 'Creation de votre compte' | trans }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="PNB10" style="top:50px;overflow-x:hidden;">
|
||||
@@ -444,16 +447,12 @@
|
||||
<td>
|
||||
<table class="main_content_table">
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'Votre adresse email' %}</label></td>
|
||||
<td><input class="error" type="text" name="email" value=""/>
|
||||
</td>
|
||||
<td style="width:200px;"><label>{{ 'Votre adresse email' | trans }}</label></td>
|
||||
<td><input class="error" type="text" name="email" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'Votre mot de passe' %}</label></td>
|
||||
<td><input autocomplete="off" type="password"
|
||||
name="password" value=""/></td>
|
||||
<td style="width:200px;"><label>{{ 'Votre mot de passe' | trans }}</label></td>
|
||||
<td><input autocomplete="off" type="password" name="password" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
@@ -468,24 +467,20 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'Confirmation de votre mot de passe' %}</label>
|
||||
</td>
|
||||
<td><input autocomplete="off" type="password"
|
||||
name="password_confirm" value=""/></td>
|
||||
<td style="width:200px;"><label>{{ 'Confirmation de votre mot de passe' | trans }}</label></td>
|
||||
<td><input autocomplete="off" type="password" name="password_confirm" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div style="border:1px solid #404040;padding:0 10px;margin:20px 0">
|
||||
<h3>{% trans 'admin::compte-utilisateur A propos de la securite des mots de passe :' %}</h3>
|
||||
|
||||
<p>{% trans 'admin::compte-utilisateur Les mots de passe doivent etre clairement distincts du login et contenir au moins deux types parmis les caracteres suivants :' %}</p>
|
||||
<h3>{{ 'admin::compte-utilisateur A propos de la securite des mots de passe :' | trans }}</h3>
|
||||
<p>{{ 'admin::compte-utilisateur Les mots de passe doivent etre clairement distincts du login et contenir au moins deux types parmis les caracteres suivants :' | trans }}</p>
|
||||
<dl style="border:none;float:none;">
|
||||
<dt>{% trans 'admin::compte-utilisateur::securite caracteres speciaux' %}</dt>
|
||||
<dt>{% trans 'admin::compte-utilisateur::securite caracteres majuscules' %}</dt>
|
||||
<dt>{% trans 'admin::compte-utilisateur::securite caracteres minuscules' %}</dt>
|
||||
<dt>{% trans 'admin::compte-utilisateur::securite caracteres numeriques' %}</dt>
|
||||
<dt>{{ 'admin::compte-utilisateur::securite caracteres speciaux' | trans }}</dt>
|
||||
<dt>{{ 'admin::compte-utilisateur::securite caracteres majuscules' | trans }}</dt>
|
||||
<dt>{{ 'admin::compte-utilisateur::securite caracteres minuscules' | trans }}</dt>
|
||||
<dt>{{ 'admin::compte-utilisateur::securite caracteres numeriques' | trans }}</dt>
|
||||
</dl>
|
||||
</div>
|
||||
</td>
|
||||
@@ -502,9 +497,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
{% trans 'Your email will be used to log in the application.' %}
|
||||
<br/><br/>
|
||||
{% trans 'Please be sure it is still valid and you can access it' %}
|
||||
{{ 'Your email will be used to log in the application.' | trans }} <br/><br/>
|
||||
{{ 'Please be sure it is still valid and you can access it' | trans }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -516,10 +510,10 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<button class="previous">{% trans 'boutton::precedent' %}</button>
|
||||
<button class="previous">{{ 'boutton::precedent' | trans }}</button>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<button class="next">{% trans 'boutton::suivant' %}</button>
|
||||
<button class="next">{{ 'boutton::suivant' | trans }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -527,15 +521,20 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="steps appbox_settings">
|
||||
<div class="wrapper">
|
||||
<div class="PNB10 wrapper_left">
|
||||
<div class="PNB10 section_title">
|
||||
<h2>
|
||||
3/5
|
||||
{% trans %}
|
||||
setup::Configuration de la base de compte ApplicationBox
|
||||
{% endtrans %}
|
||||
{% trans %}setup::Configuration de la base de compte ApplicationBox{% endtrans %}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="PNB10" style="top:50px;overflow-x:hidden;">
|
||||
@@ -545,45 +544,34 @@
|
||||
<table class="main_content_table">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h3>{% trans 'MySQL database connection parameters' %}</h3>
|
||||
<h3>{{ 'MySQL database connection parameters' | trans }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="optional_ab_data">
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'phraseanet:: adresse' %}</label></td>
|
||||
<td><input autocomplete="off" type="text" name="hostname"
|
||||
value="localhost"/></td>
|
||||
<tr class="optional_ab_datas">
|
||||
<td style="width:200px;"><label>{{ 'phraseanet:: adresse' | trans }}</label></td>
|
||||
<td><input autocomplete="off" type="text" name="hostname" value="localhost" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'Database user' %}</label></td>
|
||||
<td><input type="text" name="user" value=""/></td>
|
||||
<td style="width:200px;"><label>{{ 'Database user' | trans }}</label></td>
|
||||
<td><input type="text" name="user" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'admin::compte-utilisateur mot de passe' %}</label>
|
||||
</td>
|
||||
<td><input type="password" name="db_password" value=""
|
||||
autocomplete="off"/></td>
|
||||
<td style="width:200px;"><label>{{ 'admin::compte-utilisateur mot de passe' | trans }}</label></td>
|
||||
<td><input type="password" name="db_password" value="" autocomplete="off" /></td>
|
||||
</tr>
|
||||
<tr class="optional_ab_data">
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'phraseanet:: port' %}</label></td>
|
||||
<td><input autocomplete="off" type="text" name="port"
|
||||
value="3306"/></td>
|
||||
<tr class="optional_ab_datas">
|
||||
<td style="width:200px;"><label>{{ 'phraseanet:: port' | trans }}</label></td>
|
||||
<td><input autocomplete="off" type="text" name="port" value="3306" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'Database' %}</label></td>
|
||||
<td><input type="text" name="ab_name" value=""/></td>
|
||||
<td style="width:200px;"><label>{{ 'Database' | trans }}</label></td>
|
||||
<td><input type="text" name="ab_name" value="" /></td>
|
||||
</tr>
|
||||
<tr style="height:40px;">
|
||||
<td style="text-align:center;">
|
||||
<button class="ab_tester error">{% trans 'boutton::tester' %}</button>
|
||||
<img class="tester_loader" style="visibility:hidden;"
|
||||
src="/skins/icons/loader-black.gif"/>
|
||||
<img class="tester_status" style="display:none;"
|
||||
src="/skins/icons/delete.png"/>
|
||||
<button class="ab_tester error">{{ 'boutton::tester' | trans }}</button>
|
||||
<img class="tester_loader" style="visibility:hidden;" src="/skins/icons/loader-black.gif"/>
|
||||
<img class="tester_status" style="display:none;" src="/skins/icons/delete.png"/>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tester_message"> </span>
|
||||
@@ -594,11 +582,7 @@
|
||||
<p style="margin:10px 0;">
|
||||
{% set debut_lien = '<a href="#" class="ab_opt_toggler">' %}
|
||||
{% set fin_lien = '</a>' %}
|
||||
{% trans %}
|
||||
Si vous aviez besoin de plus de
|
||||
parametres, {{ debut_lien }}Afficher d'avantage
|
||||
d'options{{ fin_lien }}
|
||||
{% endtrans %}
|
||||
{% trans with {'%debut_lien%' : debut_lien, '%fin_lien%' : fin_lien} %}Si vous aviez besoin de plus de parametres, %debut_lien%Afficher d'avantage d'options%fin_lien%{% endtrans %}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -614,25 +598,19 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
{% trans 'ApplicationBox is a Mysql database.' %}
|
||||
{{ 'ApplicationBox is a Mysql database.' | trans }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% trans 'It stores users data, rights, and references to DataBoxes where records are stored.' %}
|
||||
{{ 'It stores users datas, rights, and references to DataBoxes where records are stored.' | trans }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% set link_start = '<a href="https://mariadb.org/" target="_blank">' %}
|
||||
{% set link_end = '</a>' %}
|
||||
{% trans %}
|
||||
Phraseanet strongly recommends the use of {{ link_start }}
|
||||
MariaDB{{ link_end }} as a replacement for MySQL.
|
||||
{% endtrans %}
|
||||
{% trans with {'%link_start%' : link_start, '%link_end%' : link_end} %}Phraseanet strongly recommends the use of %link_start%MariaDB%link_end% as a replacement for MySQL.{% endtrans %}
|
||||
<br/>
|
||||
<br/>
|
||||
<a href="https://mariadb.org/" target="_blank">
|
||||
<img src="/skins/icons/Mariadb-big.png"
|
||||
style="width:100%;"/>
|
||||
<img src="/skins/icons/Mariadb-big.png" style="width:100%;" />
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
@@ -645,10 +623,10 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<button class="previous">{% trans 'boutton::precedent' %}</button>
|
||||
<button class="previous">{{ 'boutton::precedent' | trans }}</button>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<button class="next">{% trans 'boutton::suivant' %}</button>
|
||||
<button class="next">{{ 'boutton::suivant' | trans }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -656,12 +634,14 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="steps">
|
||||
<div class="wrapper">
|
||||
<div class="PNB10 wrapper_left">
|
||||
<div class="PNB10 section_title">
|
||||
<h2>4/5
|
||||
{% trans 'setup::Configuration des repertoires de stockage' %}
|
||||
{{ 'setup::Configuration des repertoires de stockage' | trans }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="PNB10" style="top:50px;overflow-x:hidden;">
|
||||
@@ -670,11 +650,8 @@
|
||||
<td>
|
||||
<table class="main_content_table">
|
||||
<tr>
|
||||
<td>
|
||||
<label>{% trans 'Repertoire de stockage des fichiers' %}</label>
|
||||
</td>
|
||||
<td><input class="path_to_test test_writeable required"
|
||||
type="text" name="datapath_noweb" value=""/></td>
|
||||
<td><label>{{ 'Repertoire de stockage des fichiers' | trans }}</label></td>
|
||||
<td><input class="path_to_test test_writeable required" type="text" name="datapath_noweb" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -688,15 +665,13 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
{% trans 'Your medias and their subdefinitions (previews, thumbnails..) will be stored in these directories.' %}
|
||||
{{ 'Your medias and their subdefinitions (previews, thumbnails..) will be stored in these directories.' | trans }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% trans 'Thumbnails directory is mounted to be accessible via HTTP, while other files are not.' %}
|
||||
{{ 'Thumbnails directory is mounted to be accessible via HTTP, while other files are not.' | trans }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% trans 'If you plan to store large files, be sure it will fit in these directories.' %}
|
||||
{{ 'If you plan to store large files, be sure it will fit in these directories.' | trans }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -708,10 +683,10 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<button class="previous">{% trans 'boutton::precedent' %}</button>
|
||||
<button class="previous">{{ 'boutton::precedent' | trans }}</button>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<button class="next">{% trans 'boutton::suivant' %}</button>
|
||||
<button class="next">{{ 'boutton::suivant' | trans }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -719,14 +694,13 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="steps databox_settings">
|
||||
<div class="wrapper">
|
||||
<div class="PNB10 wrapper_left">
|
||||
<div class="PNB10 section_title">
|
||||
<h2>5/5
|
||||
{% trans %}
|
||||
setup::Configuration de la base de stockage DataBox
|
||||
{% endtrans %}
|
||||
{% trans %}setup::Configuration de la base de stockage DataBox{% endtrans %}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="PNB10" style="top:50px;overflow-x:hidden;">
|
||||
@@ -735,41 +709,32 @@
|
||||
<td>
|
||||
<table class="main_content_table">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h3>{% trans 'MySQL database connection parameters' %}</h3>
|
||||
</td>
|
||||
<td colspan="2"><h3>{{ 'MySQL database connection parameters' | trans }}</h3></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'Ne pas creer de DataBox maintenant' %}</label>
|
||||
</td>
|
||||
<td><input type="checkbox" class="databox_create"/></td>
|
||||
<td style="width:200px;"><label>{{ 'Ne pas creer de DataBox maintenant' | trans }}</label></td>
|
||||
<td><input type="checkbox" class="databox_create" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="width:200px;">
|
||||
<label>{% trans 'Database' %}</label></td>
|
||||
<td><input class="databox_creation_input" type="text"
|
||||
name="db_name" value=""/></td>
|
||||
<td style="width:200px;"><label>{{ 'Database' | trans }}</label></td>
|
||||
<td><input class="databox_creation_input" type="text" name="db_name" value="" /></td>
|
||||
</tr>
|
||||
<tr style="height:40px;">
|
||||
<td style="text-align:center;">
|
||||
<button class="db_tester error">{% trans 'boutton::tester' %}</button>
|
||||
<img class="tester_loader" style="visibility:hidden;"
|
||||
src="/skins/icons/loader-black.gif"/>
|
||||
<img class="tester_status" style="display:none;"
|
||||
src="/skins/icons/delete.png"/>
|
||||
<button class="db_tester error">{{ 'boutton::tester' | trans }}</button>
|
||||
<img class="tester_loader" style="visibility:hidden;" src="/skins/icons/loader-black.gif"/>
|
||||
<img class="tester_status" style="display:none;" src="/skins/icons/delete.png"/>
|
||||
</td>
|
||||
<td>
|
||||
<span class="tester_message"> </span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label>{% trans 'Modele de donnees' %}</label></td>
|
||||
<td><label>{{ 'Modele de donnees' | trans }}</label></td>
|
||||
<td>
|
||||
<select name="db_template"
|
||||
class="databox_creation_input">
|
||||
<select name="db_template" class="databox_creation_input">
|
||||
{% for template in available_templates %}
|
||||
<option value="{{ template }}">{{ template }}</option>
|
||||
{% endfor %}
|
||||
@@ -781,40 +746,29 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h3>
|
||||
{% trans %}
|
||||
Creation des taches
|
||||
{% endtrans %}
|
||||
{% trans %}Creation des taches{% endtrans %}
|
||||
</h3>
|
||||
{% trans 'Phraseanet embarque un moteur de taches pour la lecture / ecriture des metadonnes, et autre operations' %}
|
||||
{{ 'Phraseanet embarque un moteur de taches pour la lecture / ecriture des metadonnes, et autre operations' | trans }}
|
||||
<br/><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;text-align:right;">
|
||||
<input type="checkbox" name="create_task[]"
|
||||
value="writemeta" checked/>
|
||||
</td>
|
||||
<td>
|
||||
<label>{% trans 'Creer la tache d\'ecriture des metadonnees' %}</label>
|
||||
<input type="checkbox" name="create_task[]" value="writemeta" checked />
|
||||
</td>
|
||||
<td><label>{{ 'Creer la tache d\'ecriture des metadonnees' | trans }}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;text-align:right;">
|
||||
<input type="checkbox" name="create_task[]"
|
||||
value="subdef" checked/>
|
||||
</td>
|
||||
<td>
|
||||
<label>{% trans 'Creer la tache de creation des sous-definitions' %}</label>
|
||||
<input type="checkbox" name="create_task[]" value="subdef" checked />
|
||||
</td>
|
||||
<td><label>{{ 'Creer la tache de creation des sous-definitions' | trans }}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:100px;text-align:right;">
|
||||
<input type="checkbox" name="create_task[]"
|
||||
value="cindexer" checked/>
|
||||
</td>
|
||||
<td>
|
||||
<label>{% trans 'Creer la tache d\'indexation' %}</label>
|
||||
<input type="checkbox" name="create_task[]" value="cindexer" checked />
|
||||
</td>
|
||||
<td><label>{{ 'Creer la tache d\'indexation' | trans }}</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -828,9 +782,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
{% trans 'Phraseanet DataBoxes are MySQL databases, queryable by Phraseanet ApplicationBox.' %}
|
||||
<br/><br/>
|
||||
{% trans 'Databoxes store records, metadatas and their classifications' %}
|
||||
{{ 'Phraseanet DataBoxes are MySQL databases, queryable by Phraseanet ApplicationBox.' | trans }}<br/><br/>
|
||||
{{ 'Databoxes store records, metadatas and their classifications' | trans }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -842,23 +795,20 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<button class="previous">{% trans 'boutton::precedent' %}</button>
|
||||
<button class="previous">{{ 'boutton::precedent' | trans }}</button>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<button class="next install"
|
||||
type="submit">{% trans 'button::Install' %}</button>
|
||||
<button class="next install" type="submit">{{ 'button::Install' | trans }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="install_wait" style="display:none;" title="{% trans 'Install in progess' %}">
|
||||
<div id="install_wait" style="display:none;" title="{{ 'Install in progess' | trans }}">
|
||||
<p>
|
||||
<img src="/skins/icons/loader111111.gif"/>
|
||||
{% trans %}
|
||||
Installation is currenlty processing, please wait...
|
||||
{% endtrans %}
|
||||
{% trans %}Installation is currenlty processing, please wait...{% endtrans %}
|
||||
</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user