Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#1807 b) locale placeholder for keyword form input fields #2499

Merged
merged 1 commit into from
May 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions templates/form/keywordInput.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
*}
{assign var="uniqId" value="-"|concat:$FBV_uniqId|escape}
{if $FBV_multilingual && count($formLocales) > 1}
{foreach from=$formLocales key=thisFormLocale item=thisFormLocaleName}
{foreach name=formLocales from=$formLocales key=thisFormLocale item=thisFormLocaleName}
<script>
$(document).ready(function(){ldelim}
$("#{$thisFormLocale|escape:jqselector}-{$FBV_id}{$uniqId}").tagit({ldelim}
fieldName: "keywords[{$thisFormLocale|escape}-{$FBV_id|escape}][]",
{if !$smarty.foreach.formLocales.first && empty($FBV_currentKeywords.$thisFormLocale)}placeholderText: "{$thisFormLocaleName|escape}",{/if}
allowSpaces: true,
{if $FBV_sourceUrl && !$FBV_disabled}
tagSource: function(search, showChoices) {ldelim}
Expand Down Expand Up @@ -46,7 +47,7 @@
{rdelim});
</script>
<span id="{$FBV_id|escape}-localization-popover-container{$uniqId}" class="localization_popover_container pkpTagit">
<ul class="localization_popover_container localizable {if $formLocale != $currentLocale} flag flag_{$formLocale|escape}{/if}" id="{$formLocale|escape}-{$FBV_id|escape}{$uniqId}">
<ul class="localizable {if $formLocale != $currentLocale} flag flag_{$formLocale|escape}{/if}" id="{$formLocale|escape}-{$FBV_id|escape}{$uniqId}">
{if $FBV_currentKeywords}{foreach from=$FBV_currentKeywords.$formLocale item=currentKeyword}<li>{$currentKeyword|escape}</li>{/foreach}{/if}
</ul>
{if $FBV_label_content}<span>{$FBV_label_content}</span>{/if}
Expand Down