first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{**
|
||||
* templates/controllers/grid/common/cell/checkMarkCell.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.
|
||||
*
|
||||
* Cell to represent a boolean true with a check mark.
|
||||
*
|
||||
*}
|
||||
{if $isChecked}
|
||||
<div id="isChecked"><div href="#" class='pkp_helpers_container_center checked'></div></div>
|
||||
{else}
|
||||
<div id="notChecked"><div href="#" class='pkp_helpers_container_center notChecked'></div></div>
|
||||
{/if}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{**
|
||||
* templates/controllers/grid/common/cell/radioButtonCell.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.
|
||||
*
|
||||
* a regular grid cell (with or without actions)
|
||||
*}
|
||||
{assign var=cellId value="cell-"|concat:$id}
|
||||
<span id="{$cellId}">
|
||||
{if count($actions) gt 0}
|
||||
{assign var=defaultCellAction value=$actions[0]}
|
||||
{include file="linkAction/buttonGenericLinkAction.tpl" action=$defaultCellAction buttonSelector="#select-"|concat:$cellId}
|
||||
{/if}
|
||||
<input type="radio" id="select-{$cellId}" style="height: 15px; width: 15px;" {if $selected}checked="checked"{/if} {if $disabled}disabled="disabled"{/if}/>
|
||||
</span>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{**
|
||||
* templates/controllers/grid/common/cell/selectStatusCell.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.
|
||||
*
|
||||
* a regular grid cell (with or without actions)
|
||||
*}
|
||||
{assign var=cellId value="cell-"|concat:$id|uniqid}
|
||||
<span id="{$cellId}">
|
||||
{if count($actions) gt 0}
|
||||
{assign var=defaultCellAction value=$actions[0]}
|
||||
{include file="linkAction/buttonGenericLinkAction.tpl" action=$defaultCellAction buttonSelector="#select-"|concat:$cellId}
|
||||
{/if}
|
||||
<input type="checkbox" id="select-{$cellId}" {if $name}name="{$name|escape}"{/if} {if $value}value="{$value|escape}"{/if} style="height: 15px; width: 15px;" {if $selected}checked="checked"{/if} {if $disabled}disabled="disabled"{/if}/>
|
||||
</span>
|
||||
@@ -0,0 +1,21 @@
|
||||
{**
|
||||
* templates/controllers/grid/common/cell/statusCell.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.
|
||||
*
|
||||
* a regular grid cell (with or without actions)
|
||||
*}
|
||||
{assign var=cellId value="cell-"|concat:$id}
|
||||
<span id="{$cellId}" class="pkp_linkActions">
|
||||
{if count($actions) gt 0}
|
||||
{assign var=defaultCellAction value=$actions[0]}
|
||||
{* TODO imageClass doesn't appear to be used. Perhaps it should be image,
|
||||
or maybe it can be removed. *}
|
||||
{include file="linkAction/linkAction.tpl" action=$defaultCellAction contextId=$cellId imageClass="task"}
|
||||
{elseif $status}
|
||||
{capture assign="statusTitle"}{translate key="grid.task.status."|concat:$status}{/capture}
|
||||
<a title="{$statusTitle|escape}" class="task {$status|escape}">status</a>
|
||||
{/if}
|
||||
</span>
|
||||
Reference in New Issue
Block a user