forked from pkp/customBlockManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editCustomBlockForm.tpl
29 lines (28 loc) · 1.26 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
{**
* plugins/generic/customBlockManager/editCustomBlockForm.tpl
*
* Copyright (c) 2014-2017 Simon Fraser University
* Copyright (c) 2003-2017 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>
<form class="pkp_form" id="customBlockForm" method="post" action="{url router=$smarty.const.ROUTE_COMPONENT component="plugins.generic.customBlockManager.controllers.grid.CustomBlockGridHandler" op="updateCustomBlock" existingBlockName=$blockName}">
{csrf}
{fbvFormArea id="customBlocksFormArea" class="border"}
{fbvFormSection}
{fbvElement type="text" label="plugins.generic.customBlockManager.blockName" id="blockName" value=$blockName 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>