Skip to content

Commit

Permalink
locale keys, template
Browse files Browse the repository at this point in the history
  • Loading branch information
jnugent committed Mar 28, 2013
1 parent 002fb60 commit 5a68789
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
21 changes: 21 additions & 0 deletions locale/en_US/common.xml
Expand Up @@ -322,6 +322,27 @@
<message key="icon.mail.alt">Mail</message>
<message key="icon.unchecked.alt">Unchecked</message>
<message key="icon.view.alt">View</message>

<!-- Information Center -->
<message key="informationCenter.informationCenter">Information Center</message>
<message key="informationCenter.bookInfo">Info</message>
<message key="informationCenter.composeNote">Compose Note</message>
<message key="informationCenter.addFileNote">Add to File</message>
<message key="informationCenter.addSubmissionNote">Add to Submission</message>
<message key="informationCenter.noNotes">There are no notes to display.</message>
<message key="informationCenter.currentNotes">Current Notes</message>
<message key="informationCenter.pastNotes">Earlier Notes</message>
<message key="informationCenter.lastUpdated">Last Updated</message>
<message key="informationCenter.deleteConfirm">Are you sure you wish to delete this note?</message>
<message key="informationCenter.currentHistory">Current Revision</message>
<message key="informationCenter.pastHistory">Earlier Revisions</message>
<message key="informationCenter.history.noItems">There are no events logged.</message>
<message key="informationCenter.history.notePosted">Posted new note.</message>
<message key="informationCenter.history.messageSent">Notification sent to users.</message>
<message key="informationCenter.notify.chooseMessage">Choose a predefined message to use, or fill out the form below.</message>
<message key="informationCenter.notify.message">Message</message>
<message key="informationCenter.notify.warning">Please ensure that you have filled out the message field and selected at least one recipient.</message>

<message key="locale.primary">Primary locale</message>
<message key="locale.supported">Supported locales</message>
<message key="navigation.workflow">Workflow</message>
Expand Down
8 changes: 8 additions & 0 deletions locale/en_US/submission.xml
Expand Up @@ -301,6 +301,14 @@
<message key="submission.history.viewLog">View Log</message>
<message key="submission.indexing">Indexing</message>
<message key="submission.initiated">Initiated</message>

<!-- Information Center -->
<message key="submission.informationCenter.submissionInfo">Submission Info</message>
<message key="submission.informationCenter.metadata">Metadata</message>
<message key="submission.informationCenter.notes">Notes</message>
<message key="submission.informationCenter.notify">Notify</message>
<message key="submission.informationCenter.history">History</message>

<message key="submission.lastModified">Last modified</message>
<message key="submission.layout.addGalley">Add a Layout Galley</message>
<message key="submission.layout.confirmDeleteGalley">Are you sure you want to permanently delete this galley?</message>
Expand Down
38 changes: 38 additions & 0 deletions templates/controllers/informationCenter/notify.tpl
@@ -0,0 +1,38 @@
{**
* templates/controllers/informationCenter/notify.tpl
*
* Copyright (c) 2003-2013 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Display a form to notify other users about this file.
*}
<script type="text/javascript">
// Attach the file upload form handler.
$(function() {ldelim}
$('#notifyForm').pkpHandler(
'$.pkp.controllers.informationCenter.form.InformationCenterNotifyHandler',
{ldelim}
templateUrl: "{url|escape:'javascript' router=$smarty.const.ROUTE_COMPONENT component="informationCenter.SubmissionInformationCenterHandler" op='fetchTemplateBody' submissionId=$submissionId}"
{rdelim}
);
{rdelim});
</script>
<div id="informationCenterNotifyTab">
<form class="pkp_form" id="notifyForm" action="{url op="sendNotification" params=$linkParams}" method="post">
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="notifyFormNotification"}
{fbvFormArea id="notifyFormArea"}
{if $lastEventUser}{assign var="userId" value=$lastEventUser->getId()}{/if}
{url|assign:notifyUsersUrl router=$smarty.const.ROUTE_COMPONENT component="listbuilder.users.NotifyUsersListbuilderHandler" op="fetch" params=$linkParams userId=$userId escape=false}
{load_url_in_div id="notifyUsersContainer" url=$notifyUsersUrl}

{fbvFormSection title="informationCenter.notify.chooseMessage" for="template" size=$fbvStyles.size.medium}
{fbvElement type="select" from=$templates translate=false id="template" defaultValue="" defaultLabel=""}
{/fbvFormSection}

{fbvFormSection title="informationCenter.notify.message" for="message" required="true"}
{fbvElement type="textarea" id="message"}
{/fbvFormSection}
{fbvFormButtons id="notifyButton" hideCancel=true submitText="submission.informationCenter.notify"}
{/fbvFormArea}
</form>
</div>

0 comments on commit 5a68789

Please sign in to comment.