Merge branch '3.8'

Conflicts:
	lib/Alchemy/Phrasea/Controller/Admin/Root.php
	lib/classes/module/console/schedulerStart.php
	lib/classes/module/console/taskrun.php
	lib/classes/task/Scheduler.php
	lib/classes/task/abstract.php
	lib/classes/task/databoxAbstract.php
	templates/web/admin/collection/collection.html.twig
	templates/web/admin/databox/databox.html.twig
	templates/web/email-template.html.twig
This commit is contained in:
Nicolas Le Goff
2014-01-24 18:52:14 +01:00
9 changed files with 32 additions and 17 deletions

View File

@@ -84,6 +84,8 @@ class XSendFileMappingGenerator extends Command
private function extractPath(\appbox $appbox) private function extractPath(\appbox $appbox)
{ {
$paths = array();
foreach ($appbox->get_databoxes() as $databox) { foreach ($appbox->get_databoxes() as $databox) {
$paths[] = (string) $databox->get_sxml_structure()->path; $paths[] = (string) $databox->get_sxml_structure()->path;
foreach ($databox->get_subdef_structure() as $group => $subdefs) { foreach ($databox->get_subdef_structure() as $group => $subdefs) {

View File

@@ -104,8 +104,6 @@ class Root implements ControllerProviderInterface
return $app->redirectPath('logout'); return $app->redirectPath('logout');
} }
$section = $request->query->get('section', false);
$available = [ $available = [
'connected', 'connected',
'registrations', 'registrations',

View File

@@ -134,7 +134,7 @@ class Migration38 implements MigrationInterface
private function fetchInstanceKey() private function fetchInstanceKey()
{ {
$stmt = $this->app['phraseanet.appbox']->get_connection()->prepare('SELECT `value` FROM registry WHERE `key` = "GV_SIT"'); $stmt = $this->app['phraseanet.appbox']->get_connection()->prepare('SELECT `value` FROM registry WHERE `key` = "GV_sit"');
$stmt->execute(); $stmt->execute();
$rs = $stmt->fetch(\PDO::FETCH_ASSOC); $rs = $stmt->fetch(\PDO::FETCH_ASSOC);
$stmt->closeCursor(); $stmt->closeCursor();

View File

@@ -123,7 +123,7 @@
</form> </form>
<form style="display:inline; margin:0;" method="post" action="{{ path('admin_collection_empty', { 'bas_id' : bas_id }) }}"> <form style="display:inline; margin:0;" method="post" action="{{ path('admin_collection_empty', { 'bas_id' : bas_id }) }}">
<button type="button" class="btn confirm submiter" data-confirm-msg="{{ 'admin::base:collection: etes vous sur de vider la collection ?' | trans }}"> <button type="button" class="btn confirm submiter reload" data-confirm-msg="{{ 'admin::base:collection: etes vous sur de vider la collection ?' | trans }}">
<img src="/skins/icons/trash.png" /> <img src="/skins/icons/trash.png" />
{{ 'admin::base:collection: vider la collection' | trans }} {{ 'admin::base:collection: vider la collection' | trans }}
</button> </button>
@@ -331,7 +331,7 @@
success: function(datas) { success: function(datas) {
if(datas.success) { if(datas.success) {
if(submitLink.hasClass('reload')) { if(submitLink.hasClass('reload')) {
reloadTree('base:{{ collection.get_sbas_id() }}', true); reloadTree('collection:{{ collection.get_base_id() }}', true);
} else if(submitLink.hasClass('reload-tree')) { } else if(submitLink.hasClass('reload-tree')) {
reloadTree('bases:bases', true); reloadTree('bases:bases', true);
} }

View File

@@ -146,7 +146,7 @@
</form> </form>
<form style="display:inline;" method="post" action="{{ path('admin_database_empty', {'databox_id': databox.get_sbas_id()}) }}"> <form style="display:inline;" method="post" action="{{ path('admin_database_empty', {'databox_id': databox.get_sbas_id()}) }}">
<button type="button" class="btn submiter confirm" data-confirm-msg="{{ 'admin::base: Confirmer le vidage complet de la base' | trans }}"> <button type="button" class="btn submiter confirm reload" data-confirm-msg="{{ 'admin::base: Confirmer le vidage complet de la base' | trans }}">
<img src="/skins/icons/trash.png" /> <img src="/skins/icons/trash.png" />
{{ "admin::base: vider la base" | trans }} {{ "admin::base: vider la base" | trans }}
</button> </button>

View File

@@ -151,8 +151,8 @@
}); });
if(click === true) if(click === true)
{ {
if($('#tree li.selected').length > 0) if($('#tree .selected').length > 0)
$('#tree li.selected a').trigger('click'); $('#tree .selected a').trigger('click');
else else
$('.zone_online_users').trigger('click'); $('.zone_online_users').trigger('click');
} }

View File

@@ -163,8 +163,14 @@
or collection.get_base_id() in app['acl'].get(app['authentication'].getUser()).get_granted_base(['manage'])|keys or collection.get_base_id() in app['acl'].get(app['authentication'].getUser()).get_granted_base(['manage'])|keys
or collection.get_base_id() in app['acl'].get(app['authentication'].getUser()).get_granted_base(['modify_struct'])|keys) %} or collection.get_base_id() in app['acl'].get(app['authentication'].getUser()).get_granted_base(['modify_struct'])|keys) %}
{% if feature == 'collection' and featured == collection.get_base_id() %}
{% set coll_selected = true %}
{% else %}
{% set coll_selected = false %}
{% endif %}
<li> <li>
<div style="padding:0 0 2px 0;"> <div style="padding:0 0 2px 0;" {% if coll_selected %}class="selected"{% endif %}>
<a target="right" href="{{ path('admin_display_collection', { 'bas_id' : collection.get_base_id() }) }}" class="ajax"> <a target="right" href="{{ path('admin_display_collection', { 'bas_id' : collection.get_base_id() }) }}" class="ajax">
<span>{{ collection.get_name() }}</span> <span>{{ collection.get_name() }}</span>
</a> </a>

View File

@@ -22,22 +22,22 @@
<title>{{ subject }}</title> <title>{{ subject }}</title>
</head> </head>
<body style="margin:0;padding:0;background-color:#f2f2f2;"> <body style="margin:0;padding:0;background-color:#f2f2f2;">
<table width="100%" bgcolor="#f2f2f2;" cellpadding="0" cellspacing="0" border="0" style="margin:0; padding:0; width:100% !important; line-height: 100% !important;background-color:#f2f2f2;"> <table width="100%" bgcolor="#f2f2f2;" cellpadding="0" cellspacing="0" border="0" style="margin:0; padding:0; width:100% !important; line-height: 120% !important;background-color:#f2f2f2;">
<tr> <tr>
<td height="40" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:12px; font-weight:normal; color:#999999;line-height:20px;"> <td height="40" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:12px; font-weight:normal; color:#999999;line-height:15px;">
{{ 'Si cet email contient des liens non cliquables, copiez/collez ces liens dans votre navigateur.' | trans }} {{ 'Si cet email contient des liens non cliquables, copiez/collez ces liens dans votre navigateur.' | trans }}
</td> </td>
</tr> </tr>
<tr> <tr>
<td valign="center" align="center"> <td valign="center" align="center">
<!-- Wrapper Table: to control the width and the background color consistently, instead of setting attributes on the body tag. --> <!-- Wrapper Table: to control the width and the background color consistently, instead of setting attributes on the body tag. -->
<table width="90%" bgcolor="#ffffff;" cellpadding="0" cellspacing="0" border="0" style="margin:0; padding:0; width:90% !important; line-height: 100% !important;background-color:#ffffff;"> <table width="90%" bgcolor="#ffffff;" cellpadding="0" cellspacing="0" border="0" style="margin:0; padding:0; width:90% !important; line-height: 120% !important;background-color:#ffffff;">
<tr> <tr>
<td style="border-bottom: 1px solid #f2f2f2;"> <td style="border-bottom: 1px solid #f2f2f2;">
<!-- Header table --> <!-- Header table -->
<table width="80%" cellpadding="0" cellspacing="0" border="0" align="center" style="width:80% !important;"> <table width="80%" cellpadding="0" cellspacing="0" border="0" align="center" style="width:80% !important;">
<tr> <tr>
<td height="180" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:22px; font-weight:normal; color:#000;"> <td height="180" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:22px; line-height:27px; font-weight:normal; color:#000;">
{% if logoUrl is not none %} {% if logoUrl is not none %}
<img src="{{ logoUrl }}" alt="{{ logoText }}" title="{{ logoText }}" height="180" style="display:block; outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;" /> <img src="{{ logoUrl }}" alt="{{ logoText }}" title="{{ logoText }}" height="180" style="display:block; outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;" />
{% else %} {% else %}
@@ -50,7 +50,7 @@
<!-- Subject table --> <!-- Subject table -->
<table width="90%" cellpadding="0" cellspacing="0" border="0" align="center" style="width:90% !important;"> <table width="90%" cellpadding="0" cellspacing="0" border="0" align="center" style="width:90% !important;">
<tr style="background-color:#a6aab0"> <tr style="background-color:#a6aab0">
<td height="50" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:16px; font-weight:bold; color:#ffffff;"> <td height="50" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:16px; line-height:19px; font-weight:bold; color:#ffffff;">
{{ subject }} {{ subject }}
</td> </td>
</tr> </tr>
@@ -66,7 +66,7 @@
<td height="15" valign="center" align="center" style="font-size:0px;"></td> <td height="15" valign="center" align="center" style="font-size:0px;"></td>
</tr> </tr>
<tr> <tr>
<td height="115" valign="center" align="left" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:15px; color:#999999;"> <td height="115" valign="center" align="left" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:15px; line-height:18px; color:#999999;">
{% if senderName is not none and senderMail is not none %} {% if senderName is not none and senderMail is not none %}
{{ senderName }} - <a href="mailto:{{ senderMail }}" target="_blank" style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; cursor:pointer;"> {{ senderName }} - <a href="mailto:{{ senderMail }}" target="_blank" style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; cursor:pointer;">
<span style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; cursor:pointer;">{{ senderMail }}</span></a><br/> <span style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; cursor:pointer;">{{ senderMail }}</span></a><br/>
@@ -105,7 +105,7 @@
{% endif %} {% endif %}
{% if expiration is not none %} {% if expiration is not none %}
<tr> <tr>
<td height="60" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:13px; color:#999999;"> <td height="60" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:13px; line-height:16px; color:#999999;">
Ce lien est valable jusqu'au {{ app['date-formatter'].getDate(expiration) }} {{ app['date-formatter'].getTime(expiration) }} Ce lien est valable jusqu'au {{ app['date-formatter'].getDate(expiration) }} {{ app['date-formatter'].getTime(expiration) }}
</td> </td>
</tr> </tr>
@@ -124,7 +124,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td height="50" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:12px; color:#999999;"> <td height="50" valign="center" align="center" style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size:12px; line-height: 15px; color:#999999;">
{{ 'Message automatique de Phraseanet' | trans }}<br /> {{ 'Message automatique de Phraseanet' | trans }}<br />
{% set link %} {% set link %}
<a href="{{ phraseanetURL }}" target="_blank" style="font-weight:bold; cursor:pointer; color:#999999;"> <a href="{{ phraseanetURL }}" target="_blank" style="font-weight:bold; cursor:pointer; color:#999999;">

View File

@@ -283,3 +283,12 @@ div.switch_right.unchecked {
margin: 10px 0; margin: 10px 0;
line-height: 22px; line-height: 22px;
} }
#tab_demandes .dl-horizontal dd {
word-break: break-all;
margin-left: 140px;
}
#tab_demandes .dl-horizontal dt {
width: 130px;
}