forked from pkp/customBlockManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditCustomBlockForm.tpl
32 lines (31 loc) · 1.39 KB
/
editCustomBlockForm.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{**
* plugins/generic/customBlockManager/editCustomBlockForm.tpl
*
* Copyright (c) 2014 Simon Fraser University Library
* Copyright (c) 2003-2014 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* Form for editing a custom sidebar block
*
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#customBlockForm').pkpHandler('$.pkp.controllers.form.AjaxFormHandler');
{rdelim});
</script>
{url|assign:actionUrl router=$smarty.const.ROUTE_COMPONENT component="plugins.generic.customBlockManager.controllers.grid.CustomBlockGridHandler" op="updateCustomBlock" existingBlockName=$blockName escape=false}
<form class="pkp_form" id="customBlockForm" method="post" action="{$actionUrl}">
{fbvFormArea id="customBlocksFormArea" class="border"}
{fbvFormSection}
{if $blockName}
{assign var="readonly" value=true}
{/if}
{fbvElement type="text" label="plugins.generic.customBlockManager.blockName" id="blockName" value=$blockName readonly=$readonly maxlength="40" inline=true size=$fbvStyles.size.MEDIUM}
{/fbvFormSection}
{fbvFormSection label="plugins.generic.customBlock.content" for="blockContent"}
{fbvElement type="textarea" multilingual=true name="blockContent" id="blockContent" value=$blockContent rich=true height=$fbvStyles.height.TALL}
{/fbvFormSection}
{/fbvFormArea}
{fbvFormButtons submitText="common.save"}
</form>