Cambiados los mensajes de las notificaciones por cambio de flujo de trabajo.

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@26 eb19766c-00d9-a042-a3a0-45cb8ec72764
This commit is contained in:
David Arranz 2011-02-15 14:54:52 +00:00
parent cfd9ea828c
commit 156c9af4b7
2 changed files with 8 additions and 11 deletions

View File

@ -394,7 +394,7 @@ class KTWorkflowNotification extends KTNotificationHandler {
$aInfo['sType'] = 'ktcore/workflow';
$aInfo['dCreationDate'] = getCurrentDateTime();
$aInfo['iUserId'] = $oUser->getId();
$aInfo['sLabel'] = $oDocument->getName();
$aInfo['sLabel'] = $oDocument->getFullPath();
$oNotification = KTNotification::createFromArray($aInfo);
@ -402,7 +402,7 @@ class KTWorkflowNotification extends KTNotificationHandler {
if ($oUser->getEmailNotification() && (strlen($oUser->getEmail()) > 0)) {
$emailContent = $handler->handleNotification($oNotification);
$emailSubject = sprintf(_kt('Workflow Notification: %s'), $oDocument->getName());
$emailSubject = sprintf(_kt('Notificación sobre el trabajo: %s'), $oDocument->getName());
$oEmail = new EmailAlert($oUser->getEmail(), $emailSubject, $emailContent);
$oEmail->send();
}

View File

@ -1,14 +1,11 @@
<dt class="actionitem">{$document_name}</dt>
<dd class="actionmessage">
{i18n arg_name=$document_name arg_state=$state_name}The document <strong>#name#</strong> has changed to
state <strong>#state#</strong>, and you are specified as one of the users to inform
about documents in this state.{/i18n}
<div class="actionoptions">
<p class="actionmessage">
{i18n arg_name=$document_name arg_state=$state_name}El documento <strong>'#name#'</strong> ha cambiado
al estado <strong>#state#</strong>.{/i18n}
</p>
<p class="actionoptions">
{if !$is_broken}
<a href="{ktLink base="notify.php" query="id=`$notify_id`"}">{i18n}View Document{/i18n}</a>
{else}
<span class="descriptiveText">{i18n}Document is no longer available{/i18n}</span>
{/if}
| <a href="{ktLink base="notify.php" query="id=`$notify_id`&notify_action=clear"}">{i18n}Clear Alert{/i18n}</a>
</div>
</dd>
</p>