first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{**
|
||||
* templates/controllers/grid/plugins/uploadPluginForm.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Form to upload plugin files.
|
||||
*}
|
||||
<script>
|
||||
$(function() {ldelim}
|
||||
// Attach the upload form handler.
|
||||
$('#uploadPluginForm').pkpHandler(
|
||||
'$.pkp.controllers.form.FileUploadFormHandler',
|
||||
{ldelim}
|
||||
$uploader: $('#plupload'),
|
||||
uploaderOptions: {ldelim}
|
||||
uploadUrl: {url|json_encode router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="uploadPluginFile" function=$function escape=false},
|
||||
baseUrl: {$baseUrl|json_encode}
|
||||
{rdelim}
|
||||
{rdelim});
|
||||
{rdelim});
|
||||
</script>
|
||||
|
||||
<form class="pkp_form" id="uploadPluginForm" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="saveUploadPlugin" function=$function category=$category plugin=$plugin}" method="post">
|
||||
{csrf}
|
||||
{include file="controllers/notification/inPlaceNotification.tpl" notificationId="uploadPluginNotification"}
|
||||
|
||||
{fbvFormArea id="file"}
|
||||
{if $function == 'install'}
|
||||
<p>{translate key="manager.plugins.uploadDescription"}</p>
|
||||
{elseif $function == 'upgrade'}
|
||||
<p>{translate key="manager.plugins.upgradeDescription"}</p>
|
||||
{/if}
|
||||
{fbvFormSection title="manager.plugins.uploadPluginDir" required=true}
|
||||
{fbvElement type="hidden" id="temporaryFileId" value=""}
|
||||
{* The uploader widget *}
|
||||
{include file="controllers/fileUploadContainer.tpl" id="plupload"}
|
||||
{/fbvFormSection}
|
||||
{/fbvFormArea}
|
||||
|
||||
{fbvFormButtons id="uploadPluginFormSubmit" submitText="common.save"}
|
||||
</form>
|
||||
<p><span class="formRequired">{translate key="common.requiredField"}</span></p>
|
||||
@@ -0,0 +1,28 @@
|
||||
{**
|
||||
* templates/controllers/grid/plugins/pluginGalleryGridFilter.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2000-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Filter template for plugin gallery grid.
|
||||
*}
|
||||
<script>
|
||||
// Attach the form handler to the form.
|
||||
$('#pluginGallerySearchForm').pkpHandler('$.pkp.controllers.form.ClientFormHandler',
|
||||
{ldelim}
|
||||
trackFormChanges: false
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<form class="pkp_form filter" id="pluginGallerySearchForm" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="fetchGrid"}" method="post">
|
||||
{csrf}
|
||||
{fbvFormArea id="userSearchFormArea"}
|
||||
{fbvFormSection}
|
||||
{fbvElement type="select" id="category" from=$filterData.categories selected=$filterSelectionData.category translate=false size=$fbvStyles.size.SMALL inline=true}
|
||||
{fbvElement type="text" id="pluginText" value=$filterSelectionData.pluginText size=$fbvStyles.size.LARGE inline=true}
|
||||
{/fbvFormSection}
|
||||
{* Buttons generate their own section *}
|
||||
{fbvFormButtons hideCancel=true submitText="common.search"}
|
||||
{/fbvFormArea}
|
||||
</form>
|
||||
@@ -0,0 +1,28 @@
|
||||
{**
|
||||
* templates/controllers/grid/plugins/pluginGridFilter.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2000-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* Filter template for plugin grid.
|
||||
*}
|
||||
<script>
|
||||
// Attach the form handler to the form.
|
||||
$('#pluginSearchForm').pkpHandler('$.pkp.controllers.form.ClientFormHandler',
|
||||
{ldelim}
|
||||
trackFormChanges: false
|
||||
{rdelim}
|
||||
);
|
||||
</script>
|
||||
<form class="pkp_form filter" id="pluginSearchForm" action="{url router=\PKP\core\PKPApplication::ROUTE_COMPONENT op="fetchGrid"}" method="post">
|
||||
{csrf}
|
||||
{fbvFormArea id="userSearchFormArea"}
|
||||
{fbvFormSection}
|
||||
{fbvElement type="select" id="category" from=$filterData.categories selected=$filterSelectionData.category translate=false size=$fbvStyles.size.SMALL inline=true}
|
||||
{fbvElement type="text" id="pluginName" value=$filterSelectionData.pluginName size=$fbvStyles.size.LARGE inline=true}
|
||||
{/fbvFormSection}
|
||||
{* Buttons generate their own section *}
|
||||
{fbvFormButtons hideCancel=true submitText="common.search"}
|
||||
{/fbvFormArea}
|
||||
</form>
|
||||
@@ -0,0 +1,88 @@
|
||||
{**
|
||||
* templates/controllers/grid/plugins/viewPlugin.tpl
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2000-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief View a plugin gallery plugin's details.
|
||||
*
|
||||
* @uses $plugin Plugin The plugin being displayed
|
||||
* @uses $statusKey string The locale string describing the plugin's install
|
||||
* status
|
||||
* @uses $statusClass string A class corresponding to the status
|
||||
*}
|
||||
<div class="pkp_plugin_details">
|
||||
|
||||
<div class="status {$statusClass|escape}">
|
||||
<div class="pkp_screen_reader">
|
||||
{translate key="manager.plugins.pluginGallery.latestCompatible"}
|
||||
</div>
|
||||
|
||||
{if $installAction && ($statusClass == 'older' || $statusClass == 'notinstalled')}
|
||||
<div class="action_button">
|
||||
{include file="linkAction/linkAction.tpl" action=$installAction contextId="pluginGallery"}
|
||||
</div>
|
||||
{else}
|
||||
<div class="status_notice">
|
||||
{translate key=$statusKey}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $statusClass != 'incompatible'}
|
||||
|
||||
<ul class="certifications">
|
||||
{foreach from=$plugin->getReleaseCertifications() item=certification}
|
||||
<li class="certification_{$certification|escape}">
|
||||
<span class="label">
|
||||
{translate key="manager.plugins.pluginGallery.certifications.$certification"}
|
||||
</span>
|
||||
<span class="description">
|
||||
{translate key="manager.plugins.pluginGallery.certifications.$certification.description"}
|
||||
</span>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
|
||||
<div class="release">
|
||||
{translate key="manager.plugins.pluginGallery.version" version=$plugin->getVersion()|escape date=$plugin->getDate()|date_format:$dateFormatShort}
|
||||
</div>
|
||||
<div class="release_description">
|
||||
{$plugin->getLocalizedReleaseDescription()|strip_unsafe_html}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<h4 class="pkp_screen_reader">
|
||||
{translate key="manager.plugins.pluginGallery.summary"}
|
||||
</h4>
|
||||
|
||||
<div class="maintainer">
|
||||
<div class="author">
|
||||
{if $plugin->getContactEmail()}
|
||||
<a href="mailto:{$plugin->getContactEmail()|escape}">
|
||||
{$plugin->getContactName()|escape}
|
||||
</a>
|
||||
{else}
|
||||
{$plugin->getContactName()|escape}
|
||||
{/if}
|
||||
</div>
|
||||
<div class="institution">
|
||||
{$plugin->getContactInstitutionName()|escape}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="url">
|
||||
<a href="{$plugin->getHomepage()|escape}" target="_blank">{$plugin->getHomepage()|escape}</a>
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
{include file="controllers/revealMore.tpl" content=$plugin->getLocalizedDescription()|strip_unsafe_html}
|
||||
</div>
|
||||
|
||||
{if $plugin->getLocalizedInstallationInstructions()}
|
||||
<div class="installation">
|
||||
{include file="controllers/revealMore.tpl" content=$plugin->getLocalizedInstallationInstructions()|strip_unsafe_html}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
Reference in New Issue
Block a user