Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions src/components/com_tjucm/administrator/models/forms/type.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>


<field name="note_enable" type="radio" class="btn-group" default="0" label="COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_ENABLE" description="COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_ENABLE_DESC">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field name="note_editor" type="editor" filter="raw" label="COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_EDITOR" description="" hint="COM_TJUCM_FORM_LBL_TYPE_NOTE_EDITOR" showon="note_enable:1"/>

<field name="bitrate_seconds" type="number" label="COM_TJUCM_FORM_LBL_TYPE_BITRATE_SECONDS" description="COM_TJUCM_FORM_DESC_LBL_TYPE_BITRATE_SECONDS" hint="COM_TJUCM_FORM_LBL_TYPE_BITRATE_SECONDS" showon="bitrate_on:1"/>
<field name="layout" type="componentlayout" label="COM_TJUCM_FORM_LBL_TYPE_LAYOUT" description="COM_TJUCM_FORM_DESC_TYPE_LAYOUT" useglobal="true" extension="com_tjucm" view="itemform" />
<field name="details_layout" type="componentlayout" label="COM_TJUCM_DETAILS_LBL_TYPE_LAYOUT" description="COM_TJUCM_DETAILS_DESC_TYPE_LAYOUT" useglobal="true" extension="com_tjucm" view="item" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ COM_TJUCM_PERMISSION_TYPE_ITEM_DELETEOWN_DESC="Allows users in the group to dele

;Added in version 1.2.4
COM_TJUCM_FORM_LBL_TYPE_ALLOW_BITRATE_ON="Enable timely autosave?"

COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_ENABLE ="Display notice above list table"
COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_ENABLE_DESC="Enable to show an informational notice to users above the UCM list results."
COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_EDITOR="Notice content shown to users"
COM_TJUCM_FORM_LBL_TYPE_ALLOW_NOTE_EDITOR_DESC ="Enter the message that will be displayed above the UCM list table."
COM_TJUCM_FORM_DESC_LBL_TYPE_ALLOW_BITRATE_ON="Set to 'YES' if you want to allow submission of item after specified interval of time. <b>Note:If you have used editor field in your UCM type then you should enable this configuration</b>"
COM_TJUCM_FORM_LBL_TYPE_BITRATE_SECONDS="Autosave Interval (seconds)"
COM_TJUCM_FORM_DESC_LBL_TYPE_BITRATE_SECONDS="Enter time in seconds to save data repeatedly for this ucm type"
Expand Down
13 changes: 13 additions & 0 deletions src/components/com_tjucm/site/views/items/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,19 @@ function copySameUcmTypeItem()
<?php
}
}?>


<!-- Note display code -->
<?php
if (isset($this->ucmTypeParams->note_enable) && $this->ucmTypeParams->note_enable == 1 && !empty($this->ucmTypeParams->note_editor))
{
$noteContent = str_replace(array('<p>', '</p>'), array('', ''), $this->ucmTypeParams->note_editor);
?>
<div class="alert alert-warning alert-dismissible fade show mt-2 mb-3" role="alert">
<strong>Note:</strong> <?php echo $noteContent; ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php }?>
<tbody>
<?php
if (!empty($this->showList))
Expand Down