first commit of free version

This commit is contained in:
2016-01-30 22:28:43 +02:00
commit ecf47809f9
1834 changed files with 447351 additions and 0 deletions

View File

@ -0,0 +1,804 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_view.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_KMATzUTtWL_required = false;
jform_MYjuWIduYa_required = false;
jform_TCKWpDuOFC_required = false;
jform_itiIhBEdbG_required = false;
jform_JIxXiCLpUE_required = false;
jform_lPmaHxvhnh_required = false;
jform_CuvRiKzRHu_required = false;
jform_rthVyurdHn_required = false;
jform_MQfZTOwwXR_required = false;
jform_wHrYsuCQrn_required = false;
jform_mFOBHhQZoq_required = false;
jform_mWkrWeiAzi_required = false;
jform_lUNxViZEYm_required = false;
jform_QlXIHxKDwY_required = false;
jform_SRVenQhqrA_required = false;
jform_xxwqczycWx_required = false;
jform_nOCqpoOfQn_required = false;
jform_dIhaSuRZIh_required = false;
jform_AlEdvMvTNz_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_css_view_KMATzUT = jQuery("#jform_add_css_view input[type='radio']:checked").val();
KMATzUT(add_css_view_KMATzUT);
var add_css_views_MYjuWId = jQuery("#jform_add_css_views input[type='radio']:checked").val();
MYjuWId(add_css_views_MYjuWId);
var add_javascript_view_file_TCKWpDu = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
TCKWpDu(add_javascript_view_file_TCKWpDu);
var add_javascript_views_file_itiIhBE = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
itiIhBE(add_javascript_views_file_itiIhBE);
var add_javascript_view_footer_JIxXiCL = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
JIxXiCL(add_javascript_view_footer_JIxXiCL);
var add_javascript_views_footer_lPmaHxv = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
lPmaHxv(add_javascript_views_footer_lPmaHxv);
var add_php_ajax_CuvRiKz = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
CuvRiKz(add_php_ajax_CuvRiKz);
var add_php_getitem_rthVyur = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
rthVyur(add_php_getitem_rthVyur);
var add_php_getitems_MQfZTOw = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
MQfZTOw(add_php_getitems_MQfZTOw);
var add_php_getlistquery_wHrYsuC = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
wHrYsuC(add_php_getlistquery_wHrYsuC);
var add_php_save_mFOBHhQ = jQuery("#jform_add_php_save input[type='radio']:checked").val();
mFOBHhQ(add_php_save_mFOBHhQ);
var add_php_postsavehook_mWkrWei = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
mWkrWei(add_php_postsavehook_mWkrWei);
var add_php_allowedit_lUNxViZ = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
lUNxViZ(add_php_allowedit_lUNxViZ);
var add_php_batchcopy_QlXIHxK = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
QlXIHxK(add_php_batchcopy_QlXIHxK);
var add_php_batchmove_SRVenQh = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
SRVenQh(add_php_batchmove_SRVenQh);
var add_php_before_delete_xxwqczy = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
xxwqczy(add_php_before_delete_xxwqczy);
var add_php_after_delete_nOCqpoO = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
nOCqpoO(add_php_after_delete_nOCqpoO);
var add_sql_dIhaSuR = jQuery("#jform_add_sql input[type='radio']:checked").val();
dIhaSuR(add_sql_dIhaSuR);
var source_AlEdvMv = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_AlEdvMv = jQuery("#jform_add_sql input[type='radio']:checked").val();
AlEdvMv(source_AlEdvMv,add_sql_AlEdvMv);
var source_gEdsNQy = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_gEdsNQy = jQuery("#jform_add_sql input[type='radio']:checked").val();
gEdsNQy(source_gEdsNQy,add_sql_gEdsNQy);
});
// the KMATzUT function
function KMATzUT(add_css_view_KMATzUT)
{
// set the function logic
if (add_css_view_KMATzUT == 1)
{
jQuery('#jform_css_view').closest('.control-group').show();
if (jform_KMATzUTtWL_required)
{
updateFieldRequired('css_view',0);
jQuery('#jform_css_view').prop('required','required');
jQuery('#jform_css_view').attr('aria-required',true);
jQuery('#jform_css_view').addClass('required');
jform_KMATzUTtWL_required = false;
}
}
else
{
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_KMATzUTtWL_required)
{
updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required');
jform_KMATzUTtWL_required = true;
}
}
}
// the MYjuWId function
function MYjuWId(add_css_views_MYjuWId)
{
// set the function logic
if (add_css_views_MYjuWId == 1)
{
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_MYjuWIduYa_required)
{
updateFieldRequired('css_views',0);
jQuery('#jform_css_views').prop('required','required');
jQuery('#jform_css_views').attr('aria-required',true);
jQuery('#jform_css_views').addClass('required');
jform_MYjuWIduYa_required = false;
}
}
else
{
jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_MYjuWIduYa_required)
{
updateFieldRequired('css_views',1);
jQuery('#jform_css_views').removeAttr('required');
jQuery('#jform_css_views').removeAttr('aria-required');
jQuery('#jform_css_views').removeClass('required');
jform_MYjuWIduYa_required = true;
}
}
}
// the TCKWpDu function
function TCKWpDu(add_javascript_view_file_TCKWpDu)
{
// set the function logic
if (add_javascript_view_file_TCKWpDu == 1)
{
jQuery('#jform_javascript_view_file').closest('.control-group').show();
if (jform_TCKWpDuOFC_required)
{
updateFieldRequired('javascript_view_file',0);
jQuery('#jform_javascript_view_file').prop('required','required');
jQuery('#jform_javascript_view_file').attr('aria-required',true);
jQuery('#jform_javascript_view_file').addClass('required');
jform_TCKWpDuOFC_required = false;
}
}
else
{
jQuery('#jform_javascript_view_file').closest('.control-group').hide();
if (!jform_TCKWpDuOFC_required)
{
updateFieldRequired('javascript_view_file',1);
jQuery('#jform_javascript_view_file').removeAttr('required');
jQuery('#jform_javascript_view_file').removeAttr('aria-required');
jQuery('#jform_javascript_view_file').removeClass('required');
jform_TCKWpDuOFC_required = true;
}
}
}
// the itiIhBE function
function itiIhBE(add_javascript_views_file_itiIhBE)
{
// set the function logic
if (add_javascript_views_file_itiIhBE == 1)
{
jQuery('#jform_javascript_views_file').closest('.control-group').show();
if (jform_itiIhBEdbG_required)
{
updateFieldRequired('javascript_views_file',0);
jQuery('#jform_javascript_views_file').prop('required','required');
jQuery('#jform_javascript_views_file').attr('aria-required',true);
jQuery('#jform_javascript_views_file').addClass('required');
jform_itiIhBEdbG_required = false;
}
}
else
{
jQuery('#jform_javascript_views_file').closest('.control-group').hide();
if (!jform_itiIhBEdbG_required)
{
updateFieldRequired('javascript_views_file',1);
jQuery('#jform_javascript_views_file').removeAttr('required');
jQuery('#jform_javascript_views_file').removeAttr('aria-required');
jQuery('#jform_javascript_views_file').removeClass('required');
jform_itiIhBEdbG_required = true;
}
}
}
// the JIxXiCL function
function JIxXiCL(add_javascript_view_footer_JIxXiCL)
{
// set the function logic
if (add_javascript_view_footer_JIxXiCL == 1)
{
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_JIxXiCLpUE_required)
{
updateFieldRequired('javascript_view_footer',0);
jQuery('#jform_javascript_view_footer').prop('required','required');
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
jQuery('#jform_javascript_view_footer').addClass('required');
jform_JIxXiCLpUE_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
if (!jform_JIxXiCLpUE_required)
{
updateFieldRequired('javascript_view_footer',1);
jQuery('#jform_javascript_view_footer').removeAttr('required');
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
jQuery('#jform_javascript_view_footer').removeClass('required');
jform_JIxXiCLpUE_required = true;
}
}
}
// the lPmaHxv function
function lPmaHxv(add_javascript_views_footer_lPmaHxv)
{
// set the function logic
if (add_javascript_views_footer_lPmaHxv == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
if (jform_lPmaHxvhnh_required)
{
updateFieldRequired('javascript_views_footer',0);
jQuery('#jform_javascript_views_footer').prop('required','required');
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
jQuery('#jform_javascript_views_footer').addClass('required');
jform_lPmaHxvhnh_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
if (!jform_lPmaHxvhnh_required)
{
updateFieldRequired('javascript_views_footer',1);
jQuery('#jform_javascript_views_footer').removeAttr('required');
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
jQuery('#jform_javascript_views_footer').removeClass('required');
jform_lPmaHxvhnh_required = true;
}
}
}
// the CuvRiKz function
function CuvRiKz(add_php_ajax_CuvRiKz)
{
// set the function logic
if (add_php_ajax_CuvRiKz == 1)
{
jQuery('#jform_ajax_input').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
if (jform_CuvRiKzRHu_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
jform_CuvRiKzRHu_required = false;
}
}
else
{
jQuery('#jform_ajax_input').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
if (!jform_CuvRiKzRHu_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
jform_CuvRiKzRHu_required = true;
}
}
}
// the rthVyur function
function rthVyur(add_php_getitem_rthVyur)
{
// set the function logic
if (add_php_getitem_rthVyur == 1)
{
jQuery('#jform_php_getitem').closest('.control-group').show();
if (jform_rthVyurdHn_required)
{
updateFieldRequired('php_getitem',0);
jQuery('#jform_php_getitem').prop('required','required');
jQuery('#jform_php_getitem').attr('aria-required',true);
jQuery('#jform_php_getitem').addClass('required');
jform_rthVyurdHn_required = false;
}
}
else
{
jQuery('#jform_php_getitem').closest('.control-group').hide();
if (!jform_rthVyurdHn_required)
{
updateFieldRequired('php_getitem',1);
jQuery('#jform_php_getitem').removeAttr('required');
jQuery('#jform_php_getitem').removeAttr('aria-required');
jQuery('#jform_php_getitem').removeClass('required');
jform_rthVyurdHn_required = true;
}
}
}
// the MQfZTOw function
function MQfZTOw(add_php_getitems_MQfZTOw)
{
// set the function logic
if (add_php_getitems_MQfZTOw == 1)
{
jQuery('#jform_php_getitems').closest('.control-group').show();
if (jform_MQfZTOwwXR_required)
{
updateFieldRequired('php_getitems',0);
jQuery('#jform_php_getitems').prop('required','required');
jQuery('#jform_php_getitems').attr('aria-required',true);
jQuery('#jform_php_getitems').addClass('required');
jform_MQfZTOwwXR_required = false;
}
}
else
{
jQuery('#jform_php_getitems').closest('.control-group').hide();
if (!jform_MQfZTOwwXR_required)
{
updateFieldRequired('php_getitems',1);
jQuery('#jform_php_getitems').removeAttr('required');
jQuery('#jform_php_getitems').removeAttr('aria-required');
jQuery('#jform_php_getitems').removeClass('required');
jform_MQfZTOwwXR_required = true;
}
}
}
// the wHrYsuC function
function wHrYsuC(add_php_getlistquery_wHrYsuC)
{
// set the function logic
if (add_php_getlistquery_wHrYsuC == 1)
{
jQuery('#jform_php_getlistquery').closest('.control-group').show();
if (jform_wHrYsuCQrn_required)
{
updateFieldRequired('php_getlistquery',0);
jQuery('#jform_php_getlistquery').prop('required','required');
jQuery('#jform_php_getlistquery').attr('aria-required',true);
jQuery('#jform_php_getlistquery').addClass('required');
jform_wHrYsuCQrn_required = false;
}
}
else
{
jQuery('#jform_php_getlistquery').closest('.control-group').hide();
if (!jform_wHrYsuCQrn_required)
{
updateFieldRequired('php_getlistquery',1);
jQuery('#jform_php_getlistquery').removeAttr('required');
jQuery('#jform_php_getlistquery').removeAttr('aria-required');
jQuery('#jform_php_getlistquery').removeClass('required');
jform_wHrYsuCQrn_required = true;
}
}
}
// the mFOBHhQ function
function mFOBHhQ(add_php_save_mFOBHhQ)
{
// set the function logic
if (add_php_save_mFOBHhQ == 1)
{
jQuery('#jform_php_save').closest('.control-group').show();
if (jform_mFOBHhQZoq_required)
{
updateFieldRequired('php_save',0);
jQuery('#jform_php_save').prop('required','required');
jQuery('#jform_php_save').attr('aria-required',true);
jQuery('#jform_php_save').addClass('required');
jform_mFOBHhQZoq_required = false;
}
}
else
{
jQuery('#jform_php_save').closest('.control-group').hide();
if (!jform_mFOBHhQZoq_required)
{
updateFieldRequired('php_save',1);
jQuery('#jform_php_save').removeAttr('required');
jQuery('#jform_php_save').removeAttr('aria-required');
jQuery('#jform_php_save').removeClass('required');
jform_mFOBHhQZoq_required = true;
}
}
}
// the mWkrWei function
function mWkrWei(add_php_postsavehook_mWkrWei)
{
// set the function logic
if (add_php_postsavehook_mWkrWei == 1)
{
jQuery('#jform_php_postsavehook').closest('.control-group').show();
if (jform_mWkrWeiAzi_required)
{
updateFieldRequired('php_postsavehook',0);
jQuery('#jform_php_postsavehook').prop('required','required');
jQuery('#jform_php_postsavehook').attr('aria-required',true);
jQuery('#jform_php_postsavehook').addClass('required');
jform_mWkrWeiAzi_required = false;
}
}
else
{
jQuery('#jform_php_postsavehook').closest('.control-group').hide();
if (!jform_mWkrWeiAzi_required)
{
updateFieldRequired('php_postsavehook',1);
jQuery('#jform_php_postsavehook').removeAttr('required');
jQuery('#jform_php_postsavehook').removeAttr('aria-required');
jQuery('#jform_php_postsavehook').removeClass('required');
jform_mWkrWeiAzi_required = true;
}
}
}
// the lUNxViZ function
function lUNxViZ(add_php_allowedit_lUNxViZ)
{
// set the function logic
if (add_php_allowedit_lUNxViZ == 1)
{
jQuery('#jform_php_allowedit').closest('.control-group').show();
if (jform_lUNxViZEYm_required)
{
updateFieldRequired('php_allowedit',0);
jQuery('#jform_php_allowedit').prop('required','required');
jQuery('#jform_php_allowedit').attr('aria-required',true);
jQuery('#jform_php_allowedit').addClass('required');
jform_lUNxViZEYm_required = false;
}
}
else
{
jQuery('#jform_php_allowedit').closest('.control-group').hide();
if (!jform_lUNxViZEYm_required)
{
updateFieldRequired('php_allowedit',1);
jQuery('#jform_php_allowedit').removeAttr('required');
jQuery('#jform_php_allowedit').removeAttr('aria-required');
jQuery('#jform_php_allowedit').removeClass('required');
jform_lUNxViZEYm_required = true;
}
}
}
// the QlXIHxK function
function QlXIHxK(add_php_batchcopy_QlXIHxK)
{
// set the function logic
if (add_php_batchcopy_QlXIHxK == 1)
{
jQuery('#jform_php_batchcopy').closest('.control-group').show();
if (jform_QlXIHxKDwY_required)
{
updateFieldRequired('php_batchcopy',0);
jQuery('#jform_php_batchcopy').prop('required','required');
jQuery('#jform_php_batchcopy').attr('aria-required',true);
jQuery('#jform_php_batchcopy').addClass('required');
jform_QlXIHxKDwY_required = false;
}
}
else
{
jQuery('#jform_php_batchcopy').closest('.control-group').hide();
if (!jform_QlXIHxKDwY_required)
{
updateFieldRequired('php_batchcopy',1);
jQuery('#jform_php_batchcopy').removeAttr('required');
jQuery('#jform_php_batchcopy').removeAttr('aria-required');
jQuery('#jform_php_batchcopy').removeClass('required');
jform_QlXIHxKDwY_required = true;
}
}
}
// the SRVenQh function
function SRVenQh(add_php_batchmove_SRVenQh)
{
// set the function logic
if (add_php_batchmove_SRVenQh == 1)
{
jQuery('#jform_php_batchmove').closest('.control-group').show();
if (jform_SRVenQhqrA_required)
{
updateFieldRequired('php_batchmove',0);
jQuery('#jform_php_batchmove').prop('required','required');
jQuery('#jform_php_batchmove').attr('aria-required',true);
jQuery('#jform_php_batchmove').addClass('required');
jform_SRVenQhqrA_required = false;
}
}
else
{
jQuery('#jform_php_batchmove').closest('.control-group').hide();
if (!jform_SRVenQhqrA_required)
{
updateFieldRequired('php_batchmove',1);
jQuery('#jform_php_batchmove').removeAttr('required');
jQuery('#jform_php_batchmove').removeAttr('aria-required');
jQuery('#jform_php_batchmove').removeClass('required');
jform_SRVenQhqrA_required = true;
}
}
}
// the xxwqczy function
function xxwqczy(add_php_before_delete_xxwqczy)
{
// set the function logic
if (add_php_before_delete_xxwqczy == 1)
{
jQuery('#jform_php_before_delete').closest('.control-group').show();
if (jform_xxwqczycWx_required)
{
updateFieldRequired('php_before_delete',0);
jQuery('#jform_php_before_delete').prop('required','required');
jQuery('#jform_php_before_delete').attr('aria-required',true);
jQuery('#jform_php_before_delete').addClass('required');
jform_xxwqczycWx_required = false;
}
}
else
{
jQuery('#jform_php_before_delete').closest('.control-group').hide();
if (!jform_xxwqczycWx_required)
{
updateFieldRequired('php_before_delete',1);
jQuery('#jform_php_before_delete').removeAttr('required');
jQuery('#jform_php_before_delete').removeAttr('aria-required');
jQuery('#jform_php_before_delete').removeClass('required');
jform_xxwqczycWx_required = true;
}
}
}
// the nOCqpoO function
function nOCqpoO(add_php_after_delete_nOCqpoO)
{
// set the function logic
if (add_php_after_delete_nOCqpoO == 1)
{
jQuery('#jform_php_after_delete').closest('.control-group').show();
if (jform_nOCqpoOfQn_required)
{
updateFieldRequired('php_after_delete',0);
jQuery('#jform_php_after_delete').prop('required','required');
jQuery('#jform_php_after_delete').attr('aria-required',true);
jQuery('#jform_php_after_delete').addClass('required');
jform_nOCqpoOfQn_required = false;
}
}
else
{
jQuery('#jform_php_after_delete').closest('.control-group').hide();
if (!jform_nOCqpoOfQn_required)
{
updateFieldRequired('php_after_delete',1);
jQuery('#jform_php_after_delete').removeAttr('required');
jQuery('#jform_php_after_delete').removeAttr('aria-required');
jQuery('#jform_php_after_delete').removeClass('required');
jform_nOCqpoOfQn_required = true;
}
}
}
// the dIhaSuR function
function dIhaSuR(add_sql_dIhaSuR)
{
// set the function logic
if (add_sql_dIhaSuR == 1)
{
jQuery('#jform_source').closest('.control-group').show();
if (jform_dIhaSuRZIh_required)
{
updateFieldRequired('source',0);
jQuery('#jform_source').prop('required','required');
jQuery('#jform_source').attr('aria-required',true);
jQuery('#jform_source').addClass('required');
jform_dIhaSuRZIh_required = false;
}
}
else
{
jQuery('#jform_source').closest('.control-group').hide();
if (!jform_dIhaSuRZIh_required)
{
updateFieldRequired('source',1);
jQuery('#jform_source').removeAttr('required');
jQuery('#jform_source').removeAttr('aria-required');
jQuery('#jform_source').removeClass('required');
jform_dIhaSuRZIh_required = true;
}
}
}
// the AlEdvMv function
function AlEdvMv(source_AlEdvMv,add_sql_AlEdvMv)
{
// set the function logic
if (source_AlEdvMv == 2 && add_sql_AlEdvMv == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
if (jform_AlEdvMvTNz_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_AlEdvMvTNz_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
if (!jform_AlEdvMvTNz_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_AlEdvMvTNz_required = true;
}
}
}
// the gEdsNQy function
function gEdsNQy(source_gEdsNQy,add_sql_gEdsNQy)
{
// set the function logic
if (source_gEdsNQy == 1 && add_sql_gEdsNQy == 1)
{
jQuery('#jform_addtables').closest('.control-group').show();
}
else
{
jQuery('#jform_addtables').closest('.control-group').hide();
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}
function getFieldSelectOptions_server(fieldId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldSelectOptions&format=json";
if(token.length > 0 && fieldId > 0){
var request = 'token='+token+'&id='+fieldId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getFieldSelectOptions(id,fieldKey){
getFieldSelectOptions_server(id).done(function(result) {
if(result){
jQuery('textarea#jform_addconditions_fields_match_options-'+fieldKey).val(result);
}
else
{
jQuery('textarea#jform_addconditions_fields_match_options-'+fieldKey).val('');
}
})
}
function getTableColumns_server(tableName){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.tableColumns&format=json";
if(token.length > 0 && tableName.length > 0){
var request = 'token='+token+'&table='+tableName;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getTableColumns(tableName,fieldKey){
getTableColumns_server(tableName).done(function(result) {
if(result){
jQuery('textarea#jform_addtables_fields_sourcemap-'+fieldKey).val(result);
}
else
{
jQuery('textarea#jform_addtables_fields_sourcemap-'+fieldKey).val('');
}
})
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,386 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_YKWupwWEeG_required = false;
jform_IRJfnCWWtY_required = false;
jform_lVqqJOvuJD_required = false;
jform_OIgJWDfSbi_required = false;
jform_KqbIvUZTFO_required = false;
jform_tVqRLZXzVB_required = false;
jform_DQvHlnHtba_required = false;
jform_aQmcEOYDBD_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_helper_admin_YKWupwW = jQuery("#jform_add_php_helper_admin input[type='radio']:checked").val();
YKWupwW(add_php_helper_admin_YKWupwW);
var add_php_helper_site_IRJfnCW = jQuery("#jform_add_php_helper_site input[type='radio']:checked").val();
IRJfnCW(add_php_helper_site_IRJfnCW);
var add_css_lVqqJOv = jQuery("#jform_add_css input[type='radio']:checked").val();
lVqqJOv(add_css_lVqqJOv);
var add_sql_OIgJWDf = jQuery("#jform_add_sql input[type='radio']:checked").val();
OIgJWDf(add_sql_OIgJWDf);
var emptycontributors_BNadRnM = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
BNadRnM(emptycontributors_BNadRnM);
var add_license_KqbIvUZ = jQuery("#jform_add_license input[type='radio']:checked").val();
KqbIvUZ(add_license_KqbIvUZ);
var add_admin_event_tVqRLZX = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
tVqRLZX(add_admin_event_tVqRLZX);
var add_site_event_DQvHlnH = jQuery("#jform_add_site_event input[type='radio']:checked").val();
DQvHlnH(add_site_event_DQvHlnH);
var addreadme_aQmcEOY = jQuery("#jform_addreadme input[type='radio']:checked").val();
aQmcEOY(addreadme_aQmcEOY);
var add_license_lWrKOfJ = jQuery("#jform_add_license input[type='radio']:checked").val();
lWrKOfJ(add_license_lWrKOfJ);
});
// the YKWupwW function
function YKWupwW(add_php_helper_admin_YKWupwW)
{
// set the function logic
if (add_php_helper_admin_YKWupwW == 1)
{
jQuery('#jform_php_helper_admin').closest('.control-group').show();
if (jform_YKWupwWEeG_required)
{
updateFieldRequired('php_helper_admin',0);
jQuery('#jform_php_helper_admin').prop('required','required');
jQuery('#jform_php_helper_admin').attr('aria-required',true);
jQuery('#jform_php_helper_admin').addClass('required');
jform_YKWupwWEeG_required = false;
}
}
else
{
jQuery('#jform_php_helper_admin').closest('.control-group').hide();
if (!jform_YKWupwWEeG_required)
{
updateFieldRequired('php_helper_admin',1);
jQuery('#jform_php_helper_admin').removeAttr('required');
jQuery('#jform_php_helper_admin').removeAttr('aria-required');
jQuery('#jform_php_helper_admin').removeClass('required');
jform_YKWupwWEeG_required = true;
}
}
}
// the IRJfnCW function
function IRJfnCW(add_php_helper_site_IRJfnCW)
{
// set the function logic
if (add_php_helper_site_IRJfnCW == 1)
{
jQuery('#jform_php_helper_site').closest('.control-group').show();
if (jform_IRJfnCWWtY_required)
{
updateFieldRequired('php_helper_site',0);
jQuery('#jform_php_helper_site').prop('required','required');
jQuery('#jform_php_helper_site').attr('aria-required',true);
jQuery('#jform_php_helper_site').addClass('required');
jform_IRJfnCWWtY_required = false;
}
}
else
{
jQuery('#jform_php_helper_site').closest('.control-group').hide();
if (!jform_IRJfnCWWtY_required)
{
updateFieldRequired('php_helper_site',1);
jQuery('#jform_php_helper_site').removeAttr('required');
jQuery('#jform_php_helper_site').removeAttr('aria-required');
jQuery('#jform_php_helper_site').removeClass('required');
jform_IRJfnCWWtY_required = true;
}
}
}
// the lVqqJOv function
function lVqqJOv(add_css_lVqqJOv)
{
// set the function logic
if (add_css_lVqqJOv == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_lVqqJOvuJD_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_lVqqJOvuJD_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_lVqqJOvuJD_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_lVqqJOvuJD_required = true;
}
}
}
// the OIgJWDf function
function OIgJWDf(add_sql_OIgJWDf)
{
// set the function logic
if (add_sql_OIgJWDf == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
if (jform_OIgJWDfSbi_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_OIgJWDfSbi_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
if (!jform_OIgJWDfSbi_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_OIgJWDfSbi_required = true;
}
}
}
// the BNadRnM function
function BNadRnM(emptycontributors_BNadRnM)
{
// set the function logic
if (emptycontributors_BNadRnM == 1)
{
jQuery('#jform_number').closest('.control-group').show();
}
else
{
jQuery('#jform_number').closest('.control-group').hide();
}
}
// the KqbIvUZ function
function KqbIvUZ(add_license_KqbIvUZ)
{
// set the function logic
if (add_license_KqbIvUZ == 1)
{
jQuery('#jform_license_type').closest('.control-group').show();
if (jform_KqbIvUZTFO_required)
{
updateFieldRequired('license_type',0);
jQuery('#jform_license_type').prop('required','required');
jQuery('#jform_license_type').attr('aria-required',true);
jQuery('#jform_license_type').addClass('required');
jform_KqbIvUZTFO_required = false;
}
}
else
{
jQuery('#jform_license_type').closest('.control-group').hide();
if (!jform_KqbIvUZTFO_required)
{
updateFieldRequired('license_type',1);
jQuery('#jform_license_type').removeAttr('required');
jQuery('#jform_license_type').removeAttr('aria-required');
jQuery('#jform_license_type').removeClass('required');
jform_KqbIvUZTFO_required = true;
}
}
}
// the tVqRLZX function
function tVqRLZX(add_admin_event_tVqRLZX)
{
// set the function logic
if (add_admin_event_tVqRLZX == 1)
{
jQuery('#jform_php_admin_event').closest('.control-group').show();
if (jform_tVqRLZXzVB_required)
{
updateFieldRequired('php_admin_event',0);
jQuery('#jform_php_admin_event').prop('required','required');
jQuery('#jform_php_admin_event').attr('aria-required',true);
jQuery('#jform_php_admin_event').addClass('required');
jform_tVqRLZXzVB_required = false;
}
}
else
{
jQuery('#jform_php_admin_event').closest('.control-group').hide();
if (!jform_tVqRLZXzVB_required)
{
updateFieldRequired('php_admin_event',1);
jQuery('#jform_php_admin_event').removeAttr('required');
jQuery('#jform_php_admin_event').removeAttr('aria-required');
jQuery('#jform_php_admin_event').removeClass('required');
jform_tVqRLZXzVB_required = true;
}
}
}
// the DQvHlnH function
function DQvHlnH(add_site_event_DQvHlnH)
{
// set the function logic
if (add_site_event_DQvHlnH == 1)
{
jQuery('#jform_php_site_event').closest('.control-group').show();
if (jform_DQvHlnHtba_required)
{
updateFieldRequired('php_site_event',0);
jQuery('#jform_php_site_event').prop('required','required');
jQuery('#jform_php_site_event').attr('aria-required',true);
jQuery('#jform_php_site_event').addClass('required');
jform_DQvHlnHtba_required = false;
}
}
else
{
jQuery('#jform_php_site_event').closest('.control-group').hide();
if (!jform_DQvHlnHtba_required)
{
updateFieldRequired('php_site_event',1);
jQuery('#jform_php_site_event').removeAttr('required');
jQuery('#jform_php_site_event').removeAttr('aria-required');
jQuery('#jform_php_site_event').removeClass('required');
jform_DQvHlnHtba_required = true;
}
}
}
// the aQmcEOY function
function aQmcEOY(addreadme_aQmcEOY)
{
// set the function logic
if (addreadme_aQmcEOY == 1)
{
jQuery('.note_readme').closest('.control-group').show();
jQuery('#jform_readme-lbl').closest('.control-group').show();
if (jform_aQmcEOYDBD_required)
{
updateFieldRequired('readme',0);
jQuery('#jform_readme').prop('required','required');
jQuery('#jform_readme').attr('aria-required',true);
jQuery('#jform_readme').addClass('required');
jform_aQmcEOYDBD_required = false;
}
}
else
{
jQuery('.note_readme').closest('.control-group').hide();
jQuery('#jform_readme-lbl').closest('.control-group').hide();
if (!jform_aQmcEOYDBD_required)
{
updateFieldRequired('readme',1);
jQuery('#jform_readme').removeAttr('required');
jQuery('#jform_readme').removeAttr('aria-required');
jQuery('#jform_readme').removeClass('required');
jform_aQmcEOYDBD_required = true;
}
}
}
// the lWrKOfJ function
function lWrKOfJ(add_license_lWrKOfJ)
{
// set the function logic
if (add_license_lWrKOfJ == 1)
{
jQuery('.note_whmcs_lisencing_note').closest('.control-group').show();
jQuery('#jform_whmcs_key').closest('.control-group').show();
jQuery('#jform_whmcs_url').closest('.control-group').show();
}
else
{
jQuery('.note_whmcs_lisencing_note').closest('.control-group').hide();
jQuery('#jform_whmcs_key').closest('.control-group').hide();
jQuery('#jform_whmcs_url').closest('.control-group').hide();
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,519 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_view.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_stcNnNkCQp_required = false;
jform_wiTAqyLGsv_required = false;
jform_kceeFNMxXx_required = false;
jform_NpROacAnDs_required = false;
jform_zUzvCQbgwo_required = false;
jform_JNyIRcCFzz_required = false;
jform_fhKWXLZEUD_required = false;
jform_fhKWXLZXAr_required = false;
jform_wURpWaTrCB_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_stcNnNk = jQuery("#jform_add_php_view input[type='radio']:checked").val();
stcNnNk(add_php_view_stcNnNk);
var add_php_jview_display_wiTAqyL = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
wiTAqyL(add_php_jview_display_wiTAqyL);
var add_php_jview_kceeFNM = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
kceeFNM(add_php_jview_kceeFNM);
var add_php_document_NpROacA = jQuery("#jform_add_php_document input[type='radio']:checked").val();
NpROacA(add_php_document_NpROacA);
var add_css_document_zUzvCQb = jQuery("#jform_add_css_document input[type='radio']:checked").val();
zUzvCQb(add_css_document_zUzvCQb);
var add_js_document_JNyIRcC = jQuery("#jform_add_js_document input[type='radio']:checked").val();
JNyIRcC(add_js_document_JNyIRcC);
var add_custom_button_fhKWXLZ = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
fhKWXLZ(add_custom_button_fhKWXLZ);
var add_css_wURpWaT = jQuery("#jform_add_css input[type='radio']:checked").val();
wURpWaT(add_css_wURpWaT);
});
// the stcNnNk function
function stcNnNk(add_php_view_stcNnNk)
{
// set the function logic
if (add_php_view_stcNnNk == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_stcNnNkCQp_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_stcNnNkCQp_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_stcNnNkCQp_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_stcNnNkCQp_required = true;
}
}
}
// the wiTAqyL function
function wiTAqyL(add_php_jview_display_wiTAqyL)
{
// set the function logic
if (add_php_jview_display_wiTAqyL == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_wiTAqyLGsv_required)
{
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_wiTAqyLGsv_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_wiTAqyLGsv_required)
{
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
jform_wiTAqyLGsv_required = true;
}
}
}
// the kceeFNM function
function kceeFNM(add_php_jview_kceeFNM)
{
// set the function logic
if (add_php_jview_kceeFNM == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_kceeFNMxXx_required)
{
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
jform_kceeFNMxXx_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_kceeFNMxXx_required)
{
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
jform_kceeFNMxXx_required = true;
}
}
}
// the NpROacA function
function NpROacA(add_php_document_NpROacA)
{
// set the function logic
if (add_php_document_NpROacA == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_NpROacAnDs_required)
{
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
jform_NpROacAnDs_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_NpROacAnDs_required)
{
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
jform_NpROacAnDs_required = true;
}
}
}
// the zUzvCQb function
function zUzvCQb(add_css_document_zUzvCQb)
{
// set the function logic
if (add_css_document_zUzvCQb == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_zUzvCQbgwo_required)
{
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
jform_zUzvCQbgwo_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_zUzvCQbgwo_required)
{
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
jform_zUzvCQbgwo_required = true;
}
}
}
// the JNyIRcC function
function JNyIRcC(add_js_document_JNyIRcC)
{
// set the function logic
if (add_js_document_JNyIRcC == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_JNyIRcCFzz_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_JNyIRcCFzz_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_JNyIRcCFzz_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_JNyIRcCFzz_required = true;
}
}
}
// the fhKWXLZ function
function fhKWXLZ(add_custom_button_fhKWXLZ)
{
// set the function logic
if (add_custom_button_fhKWXLZ == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_fhKWXLZEUD_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_fhKWXLZEUD_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_fhKWXLZXAr_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_fhKWXLZXAr_required = false;
}
}
else
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_fhKWXLZEUD_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_fhKWXLZEUD_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_fhKWXLZXAr_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_fhKWXLZXAr_required = true;
}
}
}
// the wURpWaT function
function wURpWaT(add_css_wURpWaT)
{
// set the function logic
if (add_css_wURpWaT == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_wURpWaTrCB_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_wURpWaTrCB_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_wURpWaTrCB_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_wURpWaTrCB_required = true;
}
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
var request = 'token='+token+'&id='+snippetId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getSnippetDetails(id){
getSnippetDetails_server(id).done(function(result) {
if(result.snippet){
var description = '';
if (result.description.length > 0)
{
description = '<p>'+result.description+'</p>';
}
var code = '<div id="snippet-code"><b>'+result.name+' ('+result.type+')</b> <a href="'+result.url+'" target="_blank" >see more details</a><br /><em>'+result.heading+'</em><br /><textarea id="snippet" class="span12" rows="11">'+result.snippet+'</textarea></div>';
jQuery('#snippet-code').remove();
jQuery('.snippet-code').append(code);
// make sure the code block is active
jQuery("#snippet").focus(function() {
var jQuerythis = jQuery(this);
jQuerythis.select();
// Work around Chrome's little problem
jQuerythis.mouseup(function() {
// Prevent further mouseup intervention
jQuerythis.unbind("mouseup");
return false;
});
});
}
if(result.usage){
var usage = '<div id="snippet-usage"><p>'+result.usage+'</p></div>';
jQuery('#snippet-usage').remove();
jQuery('.snippet-usage').append(usage);
}
})
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=template&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicValues(id){
getDynamicValues_server(id).done(function(result) {
if(result){
jQuery('#dynamic_values').remove();
jQuery('.dynamic_values').append('<div id="dynamic_values">'+result+'</div>');
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getLayoutDetails(id){
getLayoutDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getTemplateDetails(id){
getTemplateDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getTemplateDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}

View File

@ -0,0 +1,950 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VERSION_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- System_name Field. Type: Text. (joomla) -->
<field
type="text"
name="system_name"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SYSTEM_NAME_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SYSTEM_NAME_DESCRIPTION"
class="text_area"
filter="STRING"
message="Error! Please add some text here."
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SYSTEM_NAME_HINT"
/>
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_HINT"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ALIAS_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ALIAS_DESCRIPTION"
class="text_area"
filter="CMD"
message="Error! Please add name in code here."
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ALIAS_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION_LABEL"
size="80"
maxlength="150"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add description here."
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION_HINT"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SNIPPET_LABEL"
class="list_class"
multiple="false"
required="false"
button="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
required="true"
/>
<!-- Php_jview Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
required="true"
/>
<!-- Css_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
required="true"
/>
<!-- Php_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
required="true"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Php_jview_display Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true"
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Js_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT"
required="true"
/>
<!-- Php_model Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_model"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
required="flase"
/>
<!-- Css Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_HINT"
required="true"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
/>
<!-- Main_get Field. Type: Maingets. (custom) -->
<field
type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="true"
button="true"
/>
<!-- Add_php_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
<field
type="dynamicgets"
name="dynamic_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
/>
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Add_php_jview Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Default Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="default"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT"
required="true"
/>
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Add_custom_button Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_custom_button"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Add_css_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Custom_button Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
name="custom_button"
label="Custom Buttons"
id="custom_button"
class="custom_buttons"
select="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_BUTTON_SELECT"
icon="list"
maximum="7">
<fields name="custom_button_fields" label="">
<fieldset hidden="true" name="custom_button_modal" repeat="true">
<!-- Icomoon Field. Type: List. (joomla) -->
<field
type="list"
name="icomoon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICOMOON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICOMOON_DESCRIPTION"
class="list_class fieldMedium"
multiple="false">
<!-- Option Set. -->
<option value="joomla">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JOOMLA</option>
<option value="address">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADDRESS</option>
<option value="pencil">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PENCIL</option>
<option value="archive">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARCHIVE</option>
<option value="arrow-down-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_DOWN_TWO</option>
<option value="arrow-down-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_DOWN_THREE</option>
<option value="arrow-down-4">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_DOWN_FOUR</option>
<option value="arrow-first">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_FIRST</option>
<option value="arrow-last">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_LAST</option>
<option value="arrow-left-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_LEFT_TWO</option>
<option value="arrow-left-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_LEFT_THREE</option>
<option value="arrow-left-4">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_LEFT_FOUR</option>
<option value="arrow-right-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_RIGHT_TWO</option>
<option value="arrow-right-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_RIGHT_THREE</option>
<option value="arrow-right-4">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_RIGHT_FOUR</option>
<option value="arrow-up-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_UP_TWO</option>
<option value="arrow-up-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_UP_THREE</option>
<option value="arrow-up-4">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_UP_FOUR</option>
<option value="attachment">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ATTACHMENT</option>
<option value="reply">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_REPLY</option>
<option value="backward-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BACKWARD_CIRCLE</option>
<option value="ban-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BAN_CIRCLE</option>
<option value="bars">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BARS</option>
<option value="basket">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BASKET</option>
<option value="book">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOK</option>
<option value="bookmark">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOKMARK</option>
<option value="bookmark-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOOKMARK_TWO</option>
<option value="box-add">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOX_ADD</option>
<option value="box-remove">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOX_REMOVE</option>
<option value="briefcase">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BRIEFCASE</option>
<option value="wifi">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WIFI</option>
<option value="brush">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BRUSH</option>
<option value="calendar">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CALENDAR</option>
<option value="calendar-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CALENDAR_TWO</option>
<option value="calendar-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CALENDAR_THREE</option>
<option value="camera">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CAMERA</option>
<option value="camera-2 / video">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CAMERA_TWO_VIDEO</option>
<option value="cancel-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CANCEL_CIRCLE</option>
<option value="cart">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CART</option>
<option value="chart">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHART</option>
<option value="checkbox-partial">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHECKBOX_PARTIAL</option>
<option value="checkbox-unchecked">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHECKBOX_UNCHECKED</option>
<option value="lock">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LOCK</option>
<option value="checkbox">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHECKBOX</option>
<option value="checkmark-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHECKMARK_TWO</option>
<option value="checkmark-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CHECKMARK_CIRCLE</option>
<option value="arrow-down">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_DOWN</option>
<option value="arrow-left">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_LEFT</option>
<option value="arrow-right">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_RIGHT</option>
<option value="arrow-up">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ARROW_UP</option>
<option value="circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CIRCLE</option>
<option value="clock">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CLOCK</option>
<option value="cogs">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_COGS</option>
<option value="comment">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_COMMENT</option>
<option value="comments-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_COMMENTS_TWO</option>
<option value="compass">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_COMPASS</option>
<option value="contract">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CONTRACT</option>
<option value="contract-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CONTRACT_TWO</option>
<option value="credit">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREDIT</option>
<option value="credit-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREDIT_TWO</option>
<option value="cube">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUBE</option>
<option value="dashboard">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DASHBOARD</option>
<option value="database">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DATABASE</option>
<option value="delete">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DELETE</option>
<option value="download">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DOWNLOAD</option>
<option value="enter">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ENTER</option>
<option value="envelope">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ENVELOPE</option>
<option value="envelope-opened">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ENVELOPE_OPENED</option>
<option value="equalizer">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_EQUALIZER</option>
<option value="exit">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_EXIT</option>
<option value="expand">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_EXPAND</option>
<option value="expand-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_EXPAND_TWO</option>
<option value="expired">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_EXPIRED</option>
<option value="eye-close">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_EYE_CLOSE</option>
<option value="eye-open">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_EYE_OPEN</option>
<option value="featured">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FEATURED</option>
<option value="feed">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FEED</option>
<option value="file">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FILE</option>
<option value="file-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FILE_TWO</option>
<option value="file-add">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FILE_ADD</option>
<option value="file-check">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FILE_CHECK</option>
<option value="file-minus">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FILE_MINUS</option>
<option value="file-remove">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FILE_REMOVE</option>
<option value="filter">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FILTER</option>
<option value="first">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FIRST</option>
<option value="flag">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLAG</option>
<option value="flag-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLAG_THREE</option>
<option value="folder-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_THREE</option>
<option value="folder-close">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_CLOSE</option>
<option value="folder-minus">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_MINUS</option>
<option value="folder-open">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_OPEN</option>
<option value="folder-plus">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_PLUS</option>
<option value="folder-plus-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_PLUS_TWO</option>
<option value="folder-remove">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FOLDER_REMOVE</option>
<option value="forward-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FORWARD_TWO</option>
<option value="forward-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FORWARD_CIRCLE</option>
<option value="grid">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GRID</option>
<option value="grid-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GRID_TWO</option>
<option value="health">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HEALTH</option>
<option value="heart">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HEART</option>
<option value="heart-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HEART_TWO</option>
<option value="home">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HOME</option>
<option value="home-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_HOME_TWO</option>
<option value="info">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INFO</option>
<option value="info-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INFO_CIRCLE</option>
<option value="key">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_KEY</option>
<option value="lamp">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LAMP</option>
<option value="last">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LAST</option>
<option value="flash">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_FLASH</option>
<option value="link">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LINK</option>
<option value="list">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIST</option>
<option value="list-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIST_TWO</option>
<option value="location">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LOCATION</option>
<option value="loop">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LOOP</option>
<option value="menu">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MENU</option>
<option value="menu-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MENU_TWO</option>
<option value="menu-3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MENU_THREE</option>
<option value="minus">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MINUS</option>
<option value="minus-sign">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MINUS_SIGN</option>
<option value="mobile">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MOBILE</option>
<option value="move">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MOVE</option>
<option value="music">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MUSIC</option>
<option value="plus">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PLUS</option>
<option value="next">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NEXT</option>
<option value="notification">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTIFICATION</option>
<option value="notification-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTIFICATION_CIRCLE</option>
<option value="cog">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_COG</option>
<option value="new-tab">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NEW_TAB</option>
<option value="new-tab-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NEW_TAB_TWO</option>
<option value="palette">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PALETTE</option>
<option value="paragraph-center">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_CENTER</option>
<option value="paragraph-justify">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_JUSTIFY</option>
<option value="paragraph-left">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_LEFT</option>
<option value="paragraph-right">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PARAGRAPH_RIGHT</option>
<option value="pause">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PAUSE</option>
<option value="pause-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PAUSE_CIRCLE</option>
<option value="pencil-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PENCIL_TWO</option>
<option value="warning">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WARNING</option>
<option value="phone">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHONE</option>
<option value="phone-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHONE_TWO</option>
<option value="image">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_IMAGE</option>
<option value="images">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_IMAGES</option>
<option value="pie">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PIE</option>
<option value="pin">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PIN</option>
<option value="play">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PLAY</option>
<option value="youtube">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YOUTUBE</option>
<option value="play-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PLAY_CIRCLE</option>
<option value="plus-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PLUS_CIRCLE</option>
<option value="power-cord">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_POWER_CORD</option>
<option value="previous">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PREVIOUS</option>
<option value="print">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PRINT</option>
<option value="publish">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PUBLISH</option>
<option value="purge">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PURGE</option>
<option value="puzzle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PUZZLE</option>
<option value="question">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_QUESTION</option>
<option value="question-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_QUESTION_TWO</option>
<option value="quotes-left">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_QUOTES_LEFT</option>
<option value="quotes-right">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_QUOTES_RIGHT</option>
<option value="bubble-quote">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BUBBLE_QUOTE</option>
<option value="generic">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_GENERIC</option>
<option value="radio-unchecked">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_RADIO_UNCHECKED</option>
<option value="save-copy">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SAVE_COPY</option>
<option value="save-new">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SAVE_NEW</option>
<option value="scissors">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SCISSORS</option>
<option value="screen">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SCREEN</option>
<option value="screwdriver">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SCREWDRIVER</option>
<option value="search">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SEARCH</option>
<option value="share">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SHARE</option>
<option value="share-alt">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SHARE_ALT</option>
<option value="shield">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SHIELD</option>
<option value="shuffle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SHUFFLE</option>
<option value="signup">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SIGNUP</option>
<option value="smiley">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SMILEY</option>
<option value="smiley-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SMILEY_TWO</option>
<option value="smiley-neutral">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SMILEY_NEUTRAL</option>
<option value="smiley-neutral-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SMILEY_NEUTRAL_TWO</option>
<option value="smiley-sad">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SMILEY_SAD</option>
<option value="smiley-sad-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SMILEY_SAD_TWO</option>
<option value="square">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SQUARE</option>
<option value="stack">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STACK</option>
<option value="star-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STAR_TWO</option>
<option value="stop">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STOP</option>
<option value="stop-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_STOP_CIRCLE</option>
<option value="support">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SUPPORT</option>
<option value="switch">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SWITCH</option>
<option value="tablet">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TABLET</option>
<option value="tag">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TAG</option>
<option value="tag-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TAG_TWO</option>
<option value="tags">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TAGS</option>
<option value="tags-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TAGS_TWO</option>
<option value="thumbs-down">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_THUMBS_DOWN</option>
<option value="thumbs-up">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_THUMBS_UP</option>
<option value="tree">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TREE</option>
<option value="tree-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TREE_TWO</option>
<option value="unarchive">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNARCHIVE</option>
<option value="unblock">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNBLOCK</option>
<option value="undo">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNDO</option>
<option value="undo-2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNDO_TWO</option>
<option value="unfeatured">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNFEATURED</option>
<option value="unlock">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNLOCK</option>
<option value="unpublish">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UNPUBLISH</option>
<option value="upload">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_UPLOAD</option>
<option value="user">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USER</option>
<option value="users">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_USERS</option>
<option value="vcard">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_VCARD</option>
<option value="wand">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WAND</option>
<option value="warning-circle">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WARNING_CIRCLE</option>
<option value="wrench">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_WRENCH</option>
<option value="zoom-in">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ZOOM_IN</option>
<option value="zoom-out">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ZOOM_OUT</option>
</field>
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NAME_HINT"
/>
<!-- Method Field. Type: Text. (joomla) -->
<field
type="text"
name="method"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_DESCRIPTION"
class="text_area"
filter="CMD"
message="Error! Please add controller method name here."
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_METHOD_HINT"
/>
<!-- Target Field. Type: List. (joomla) -->
<field
type="list"
name="target"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TARGET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_TARGET_DESCRIPTION"
class="list_class fieldMedium"
filter="INT"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_SINGLE</option>
<option value="2">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LIST</option>
<option value="3">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_BOTH</option>
</field>
</fieldset>
</fields>
</field>
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Php_controller Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_controller"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT"
required="true"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this custom_admin_view"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="custom_admin_view"
/>
</fieldset>
</form>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

474
admin/models/forms/field.js Normal file
View File

@ -0,0 +1,474 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage field.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_odulURejbt_required = false;
jform_DJPbqmGjIL_required = false;
jform_LpOkvnXoNS_required = false;
jform_wrNjHBTlMG_required = false;
jform_tkSrzJlrAk_required = false;
jform_QOZdfZqODr_required = false;
jform_oaPXjpsdHg_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_odulURe = jQuery("#jform_datalenght").val();
odulURe(datalenght_odulURe);
var datadefault_DJPbqmG = jQuery("#jform_datadefault").val();
DJPbqmG(datadefault_DJPbqmG);
var datatype_LpOkvnX = jQuery("#jform_datatype").val();
LpOkvnX(datatype_LpOkvnX);
var store_ZXWBoOl = jQuery("#jform_store").val();
var datatype_ZXWBoOl = jQuery("#jform_datatype").val();
ZXWBoOl(store_ZXWBoOl,datatype_ZXWBoOl);
var add_css_view_wrNjHBT = jQuery("#jform_add_css_view input[type='radio']:checked").val();
wrNjHBT(add_css_view_wrNjHBT);
var add_css_views_tkSrzJl = jQuery("#jform_add_css_views input[type='radio']:checked").val();
tkSrzJl(add_css_views_tkSrzJl);
var add_javascript_view_footer_QOZdfZq = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
QOZdfZq(add_javascript_view_footer_QOZdfZq);
var add_javascript_views_footer_oaPXjps = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
oaPXjps(add_javascript_views_footer_oaPXjps);
});
// the odulURe function
function odulURe(datalenght_odulURe)
{
if (isSet(datalenght_odulURe) && datalenght_odulURe.constructor !== Array)
{
var temp_odulURe = datalenght_odulURe;
var datalenght_odulURe = [];
datalenght_odulURe.push(temp_odulURe);
}
else if (!isSet(datalenght_odulURe))
{
var datalenght_odulURe = [];
}
var datalenght = datalenght_odulURe.some(datalenght_odulURe_SomeFunc);
// set this function logic
if (datalenght)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
if (jform_odulURejbt_required)
{
updateFieldRequired('datalenght_other',0);
jQuery('#jform_datalenght_other').prop('required','required');
jQuery('#jform_datalenght_other').attr('aria-required',true);
jQuery('#jform_datalenght_other').addClass('required');
jform_odulURejbt_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_odulURejbt_required)
{
updateFieldRequired('datalenght_other',1);
jQuery('#jform_datalenght_other').removeAttr('required');
jQuery('#jform_datalenght_other').removeAttr('aria-required');
jQuery('#jform_datalenght_other').removeClass('required');
jform_odulURejbt_required = true;
}
}
}
// the odulURe Some function
function datalenght_odulURe_SomeFunc(datalenght_odulURe)
{
// set the function logic
if (datalenght_odulURe == 'Other')
{
return true;
}
return false;
}
// the DJPbqmG function
function DJPbqmG(datadefault_DJPbqmG)
{
if (isSet(datadefault_DJPbqmG) && datadefault_DJPbqmG.constructor !== Array)
{
var temp_DJPbqmG = datadefault_DJPbqmG;
var datadefault_DJPbqmG = [];
datadefault_DJPbqmG.push(temp_DJPbqmG);
}
else if (!isSet(datadefault_DJPbqmG))
{
var datadefault_DJPbqmG = [];
}
var datadefault = datadefault_DJPbqmG.some(datadefault_DJPbqmG_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_DJPbqmGjIL_required)
{
updateFieldRequired('datadefault_other',0);
jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_datadefault_other').addClass('required');
jform_DJPbqmGjIL_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_DJPbqmGjIL_required)
{
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
jform_DJPbqmGjIL_required = true;
}
}
}
// the DJPbqmG Some function
function datadefault_DJPbqmG_SomeFunc(datadefault_DJPbqmG)
{
// set the function logic
if (datadefault_DJPbqmG == 'Other')
{
return true;
}
return false;
}
// the LpOkvnX function
function LpOkvnX(datatype_LpOkvnX)
{
if (isSet(datatype_LpOkvnX) && datatype_LpOkvnX.constructor !== Array)
{
var temp_LpOkvnX = datatype_LpOkvnX;
var datatype_LpOkvnX = [];
datatype_LpOkvnX.push(temp_LpOkvnX);
}
else if (!isSet(datatype_LpOkvnX))
{
var datatype_LpOkvnX = [];
}
var datatype = datatype_LpOkvnX.some(datatype_LpOkvnX_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
if (jform_LpOkvnXoNS_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_LpOkvnXoNS_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_LpOkvnXoNS_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_LpOkvnXoNS_required = true;
}
}
}
// the LpOkvnX Some function
function datatype_LpOkvnX_SomeFunc(datatype_LpOkvnX)
{
// set the function logic
if (datatype_LpOkvnX == 'CHAR' || datatype_LpOkvnX == 'VARCHAR' || datatype_LpOkvnX == 'TEXT' || datatype_LpOkvnX == 'MEDIUMTEXT' || datatype_LpOkvnX == 'LONGTEXT')
{
return true;
}
return false;
}
// the ZXWBoOl function
function ZXWBoOl(store_ZXWBoOl,datatype_ZXWBoOl)
{
if (isSet(store_ZXWBoOl) && store_ZXWBoOl.constructor !== Array)
{
var temp_ZXWBoOl = store_ZXWBoOl;
var store_ZXWBoOl = [];
store_ZXWBoOl.push(temp_ZXWBoOl);
}
else if (!isSet(store_ZXWBoOl))
{
var store_ZXWBoOl = [];
}
var store = store_ZXWBoOl.some(store_ZXWBoOl_SomeFunc);
if (isSet(datatype_ZXWBoOl) && datatype_ZXWBoOl.constructor !== Array)
{
var temp_ZXWBoOl = datatype_ZXWBoOl;
var datatype_ZXWBoOl = [];
datatype_ZXWBoOl.push(temp_ZXWBoOl);
}
else if (!isSet(datatype_ZXWBoOl))
{
var datatype_ZXWBoOl = [];
}
var datatype = datatype_ZXWBoOl.some(datatype_ZXWBoOl_SomeFunc);
// set this function logic
if (store && datatype)
{
jQuery('.note_vdm_encryption').closest('.control-group').show();
}
else
{
jQuery('.note_vdm_encryption').closest('.control-group').hide();
}
}
// the ZXWBoOl Some function
function store_ZXWBoOl_SomeFunc(store_ZXWBoOl)
{
// set the function logic
if (store_ZXWBoOl == 4)
{
return true;
}
return false;
}
// the ZXWBoOl Some function
function datatype_ZXWBoOl_SomeFunc(datatype_ZXWBoOl)
{
// set the function logic
if (datatype_ZXWBoOl == 'CHAR' || datatype_ZXWBoOl == 'VARCHAR' || datatype_ZXWBoOl == 'TEXT' || datatype_ZXWBoOl == 'MEDIUMTEXT' || datatype_ZXWBoOl == 'LONGTEXT')
{
return true;
}
return false;
}
// the wrNjHBT function
function wrNjHBT(add_css_view_wrNjHBT)
{
// set the function logic
if (add_css_view_wrNjHBT == 1)
{
jQuery('#jform_css_view').closest('.control-group').show();
if (jform_wrNjHBTlMG_required)
{
updateFieldRequired('css_view',0);
jQuery('#jform_css_view').prop('required','required');
jQuery('#jform_css_view').attr('aria-required',true);
jQuery('#jform_css_view').addClass('required');
jform_wrNjHBTlMG_required = false;
}
}
else
{
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_wrNjHBTlMG_required)
{
updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required');
jform_wrNjHBTlMG_required = true;
}
}
}
// the tkSrzJl function
function tkSrzJl(add_css_views_tkSrzJl)
{
// set the function logic
if (add_css_views_tkSrzJl == 1)
{
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_tkSrzJlrAk_required)
{
updateFieldRequired('css_views',0);
jQuery('#jform_css_views').prop('required','required');
jQuery('#jform_css_views').attr('aria-required',true);
jQuery('#jform_css_views').addClass('required');
jform_tkSrzJlrAk_required = false;
}
}
else
{
jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_tkSrzJlrAk_required)
{
updateFieldRequired('css_views',1);
jQuery('#jform_css_views').removeAttr('required');
jQuery('#jform_css_views').removeAttr('aria-required');
jQuery('#jform_css_views').removeClass('required');
jform_tkSrzJlrAk_required = true;
}
}
}
// the QOZdfZq function
function QOZdfZq(add_javascript_view_footer_QOZdfZq)
{
// set the function logic
if (add_javascript_view_footer_QOZdfZq == 1)
{
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_QOZdfZqODr_required)
{
updateFieldRequired('javascript_view_footer',0);
jQuery('#jform_javascript_view_footer').prop('required','required');
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
jQuery('#jform_javascript_view_footer').addClass('required');
jform_QOZdfZqODr_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
if (!jform_QOZdfZqODr_required)
{
updateFieldRequired('javascript_view_footer',1);
jQuery('#jform_javascript_view_footer').removeAttr('required');
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
jQuery('#jform_javascript_view_footer').removeClass('required');
jform_QOZdfZqODr_required = true;
}
}
}
// the oaPXjps function
function oaPXjps(add_javascript_views_footer_oaPXjps)
{
// set the function logic
if (add_javascript_views_footer_oaPXjps == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
if (jform_oaPXjpsdHg_required)
{
updateFieldRequired('javascript_views_footer',0);
jQuery('#jform_javascript_views_footer').prop('required','required');
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
jQuery('#jform_javascript_views_footer').addClass('required');
jform_oaPXjpsdHg_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
if (!jform_oaPXjpsdHg_required)
{
updateFieldRequired('javascript_views_footer',1);
jQuery('#jform_javascript_views_footer').removeAttr('required');
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
jQuery('#jform_javascript_views_footer').removeClass('required');
jform_oaPXjpsdHg_required = true;
}
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}
function getFieldOptions_server(fieldId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldOptions&format=json";
if(token.length > 0 && fieldId > 0){
var request = 'token='+token+'&id='+fieldId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getFieldOptions(id,setValue){
getFieldOptions_server(id).done(function(result) {
if(result.values){
if(setValue){
jQuery('textarea#jform_xml').val(result.values);
}
jQuery('#help').remove();
jQuery('.helpNote').append('<div id="help" style="margin: 10px;">'+result.description+'<br />'+result.values_description+'</div>');
}
})
}

View File

@ -0,0 +1,459 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_FIELD_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_FIELD_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELD_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_FIELD_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_FIELD_VERSION_LABEL"
description="COM_COMPONENTBUILDER_FIELD_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_FIELD_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_FIELD_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_FIELD_NAME_HINT"
/>
<!-- Type Field. Type: Fieldtypes. (custom) -->
<field
type="fieldtypes"
name="type"
label="COM_COMPONENTBUILDER_FIELD_TYPE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_TYPE_DESCRIPTION"
class="btn-group"
multiple="false"
required="true"
button="true"
/>
<!-- Datatype Field. Type: List. (joomla) -->
<field
type="list"
name="datatype"
label="COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATATYPE_DESCRIPTION"
class="btn-group"
multiple="false"
required="true">
<!-- Option Set. -->
<option value="CHAR">
COM_COMPONENTBUILDER_FIELD_CHAR</option>
<option value="VARCHAR">
COM_COMPONENTBUILDER_FIELD_VARCHAR</option>
<option value="TEXT">
COM_COMPONENTBUILDER_FIELD_TEXT</option>
<option value="MEDIUMTEXT">
COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT</option>
<option value="LONGTEXT">
COM_COMPONENTBUILDER_FIELD_LONGTEXT</option>
<option value="DATETIME">
COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="DATE">
COM_COMPONENTBUILDER_FIELD_DATE</option>
<option value="INT">
COM_COMPONENTBUILDER_FIELD_INT</option>
<option value="TINYINT">
COM_COMPONENTBUILDER_FIELD_TINYINT</option>
<option value="BIGINT">
COM_COMPONENTBUILDER_FIELD_BIGINT</option>
<option value="FLOAT">
COM_COMPONENTBUILDER_FIELD_FLOAT</option>
<option value="DECIMAL">
COM_COMPONENTBUILDER_FIELD_DECIMAL</option>
<option value="DOUBLE">
COM_COMPONENTBUILDER_FIELD_DOUBLE</option>
</field>
<!-- Indexes Field. Type: List. (joomla) -->
<field
type="list"
name="indexes"
label="COM_COMPONENTBUILDER_FIELD_INDEXES_LABEL"
class="btn-group"
multiple="false"
filter="INT"
required="true"
default="0">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_UNIQUE_KEY</option>
<option value="2">
COM_COMPONENTBUILDER_FIELD_KEY</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NONE</option>
</field>
<!-- Null_switch Field. Type: Radio. (joomla) -->
<field
type="radio"
name="null_switch"
label="COM_COMPONENTBUILDER_FIELD_NULL_SWITCH_LABEL"
class="btn-group btn-group-yesno"
default="NOT NULL"
required="true">
<!-- Option Set. -->
<option value="NULL">
COM_COMPONENTBUILDER_FIELD_NULL</option>
<option value="NOT NULL">
COM_COMPONENTBUILDER_FIELD_NOT_NULL</option>
</field>
<!-- Datalenght_other Field. Type: Text. (joomla) -->
<field
type="text"
name="datalenght_other"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add other data length/values here."
hint="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT"
/>
<!-- Datadefault Field. Type: List. (joomla) -->
<field
type="list"
name="datadefault"
label="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_DESCRIPTION"
class="btn-group"
multiple="false">
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_FIELD_NONE</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_ZERO</option>
<option value="1">
COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="CURRENT_TIMESTAMP">
COM_COMPONENTBUILDER_FIELD_CURRENT_TIMESTAMP</option>
<option value="DATETIME">
COM_COMPONENTBUILDER_FIELD_DATETIME</option>
<option value="Other">
COM_COMPONENTBUILDER_FIELD_OTHER</option>
</field>
<!-- Css_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_view"
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEW_HINT"
required="true"
/>
<!-- Datadefault_other Field. Type: Text. (joomla) -->
<field
type="text"
name="datadefault_other"
label="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_LABEL"
size="10"
maxlength="50"
description="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add other default here."
hint="COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_HINT"
/>
<!-- Note_filter_information Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_filter_information" label="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION" class="note_filter_information" />
<!-- Datalenght Field. Type: List. (joomla) -->
<field
type="list"
name="datalenght"
label="COM_COMPONENTBUILDER_FIELD_DATALENGHT_LABEL"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION"
class="btn-group"
multiple="false">
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_FIELD_NONE_SET</option>
<option value="1">
COM_COMPONENTBUILDER_FIELD_ONE</option>
<option value="7">
COM_COMPONENTBUILDER_FIELD_SEVEN</option>
<option value="10">
COM_COMPONENTBUILDER_FIELD_TEN</option>
<option value="11">
COM_COMPONENTBUILDER_FIELD_ELEVEN</option>
<option value="50">
COM_COMPONENTBUILDER_FIELD_FIFTY</option>
<option value="64">
COM_COMPONENTBUILDER_FIELD_SIXTY_FOUR</option>
<option value="100">
COM_COMPONENTBUILDER_FIELD_ONE_HUNDRED</option>
<option value="255">
COM_COMPONENTBUILDER_FIELD_TWO_HUNDRED_AND_FIFTY_FIVE</option>
<option value="1024">
COM_COMPONENTBUILDER_FIELD_ONE_THOUSAND_AND_TWENTY_FOUR</option>
<option value="2048">
COM_COMPONENTBUILDER_FIELD_TWO_THOUSAND_AND_FORTY_EIGHT</option>
<option value="Other">
COM_COMPONENTBUILDER_FIELD_OTHER</option>
</field>
<!-- Css_views Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_views"
label="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_HINT"
required="true"
/>
<!-- Javascript_view_footer Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="javascript_view_footer"
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT"
required="true"
/>
<!-- Xml Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="xml"
label="COM_COMPONENTBUILDER_FIELD_XML_LABEL"
rows="17"
cols="720"
description="COM_COMPONENTBUILDER_FIELD_XML_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_XML_HINT"
required="true"
/>
<!-- Javascript_views_footer Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="javascript_views_footer"
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_HINT"
required="true"
/>
<!-- Add_css_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_view"
label="COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Catid Field. Type: Category. (joomla) -->
<field
type="category"
name="catid"
label="COM_COMPONENTBUILDER_FIELD_CATID_LABEL"
extension="com_componentbuilder.fields"
description="COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION"
class="inputbox"
/>
<!-- Add_css_views Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css_views"
label="COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Helpnote Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="helpnote" label="COM_COMPONENTBUILDER_FIELD_HELPNOTE_LABEL" class="helpNote helpnote" />
<!-- Add_javascript_view_footer Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_view_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Store Field. Type: List. (joomla) -->
<field
type="list"
name="store"
label="COM_COMPONENTBUILDER_FIELD_STORE_LABEL"
description="COM_COMPONENTBUILDER_FIELD_STORE_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="true"
default="0">
<!-- Option Set. -->
<option value="0">
COM_COMPONENTBUILDER_FIELD_DEFAULT</option>
<option value="1">
COM_COMPONENTBUILDER_FIELD_JSON</option>
<option value="2">
COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR</option>
<option value="3">
COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALKEY</option>
<option value="4">
COM_COMPONENTBUILDER_FIELD_ADVANCE_ENCRYPTION_VDMKEY</option>
</field>
<!-- Add_javascript_views_footer Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_javascript_views_footer"
label="COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEWS_FOOTER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELD_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELD_NO</option>
</field>
<!-- Note_vdm_encryption Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_vdm_encryption" label="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_DESCRIPTION" heading="h4" class="alert alert-success note_vdm_encryption" close="true" />
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this field"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="field"
/>
</fieldset>
</form>

View File

@ -0,0 +1,26 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/

View File

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_FIELDTYPE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_FIELDTYPE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_FIELDTYPE_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_FIELDTYPE_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT"
/>
<!-- Note_on_fields Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_fields" label="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_LABEL" description="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_DESCRIPTION" heading="h4" class="alert alert-info note_on_fields" close="true" />
<!-- Catid Field. Type: Category. (joomla) -->
<field
type="category"
name="catid"
label="COM_COMPONENTBUILDER_FIELDTYPE_CATID_LABEL"
extension="com_componentbuilder.fieldtypes"
description="COM_COMPONENTBUILDER_FIELDTYPE_CATID_DESCRIPTION"
class="inputbox"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT"
/>
<!-- Short_description Field. Type: Text. (joomla) -->
<field
type="text"
name="short_description"
label="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_DESCRIPTION"
class="text_area"
required="true"
filter="HTML"
message="Error! Please add some short description here."
hint="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_HINT"
/>
<!-- Properties Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
name="properties"
label="Properties"
description="COM_COMPONENTBUILDER_FIELDTYPE_PROPERTIES_DESCRIPTION"
id="addproperties"
class="addproperty"
select="COM_COMPONENTBUILDER_FIELDTYPE_PROPERTIES_SELECT"
icon="list"
maximum="500">
<fields name="properties_fields" label="">
<fieldset hidden="true" name="properties_modal" repeat="true">
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_FIELDTYPE_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_FIELDTYPE_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT"
/>
<!-- Example Field. Type: Text. (joomla) -->
<field
type="text"
name="example"
label="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_LABEL"
size="40"
maxlength="150"
class="text_area"
readonly="false"
disabled="false"
filter="STRING"
message="Error! Please add value/example here."
hint="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_HINT"
/>
<!-- Adjustable Field. Type: Radio. (joomla) -->
<field
type="radio"
name="adjustable"
label="COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_DESCRIPTION"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELDTYPE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELDTYPE_NO</option>
</field>
<!-- Mandatory Field. Type: Radio. (joomla) -->
<field
type="radio"
name="mandatory"
label="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_DESCRIPTION"
default="0">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELDTYPE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELDTYPE_NO</option>
</field>
<!-- Translatable Field. Type: Radio. (joomla) -->
<field
type="radio"
name="translatable"
label="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_LABEL"
description="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_DESCRIPTION"
default="0">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELDTYPE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELDTYPE_NO</option>
</field>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_LABEL"
rows="5"
cols="8"
description="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_DESCRIPTION"
class="text_area"
filter="HTML"
hint="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT"
/>
</fieldset>
</fields>
</field>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this fieldtype"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="fieldtype"
/>
</fieldset>
</form>

View File

@ -0,0 +1,312 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_document.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_yFtNPtFIwT_required = false;
jform_gIDlqEybXp_required = false;
jform_nJukvrTsmK_required = false;
jform_hGjAuYOaHr_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_LsMmLfT = jQuery("#jform_location input[type='radio']:checked").val();
LsMmLfT(location_LsMmLfT);
var location_TWLSbOQ = jQuery("#jform_location input[type='radio']:checked").val();
TWLSbOQ(location_TWLSbOQ);
var type_yFtNPtF = jQuery("#jform_type").val();
yFtNPtF(type_yFtNPtF);
var type_gIDlqEy = jQuery("#jform_type").val();
gIDlqEy(type_gIDlqEy);
var type_nJukvrT = jQuery("#jform_type").val();
nJukvrT(type_nJukvrT);
var target_hGjAuYO = jQuery("#jform_target input[type='radio']:checked").val();
hGjAuYO(target_hGjAuYO);
});
// the LsMmLfT function
function LsMmLfT(location_LsMmLfT)
{
// set the function logic
if (location_LsMmLfT == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
}
}
// the TWLSbOQ function
function TWLSbOQ(location_TWLSbOQ)
{
// set the function logic
if (location_TWLSbOQ == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
}
}
// the yFtNPtF function
function yFtNPtF(type_yFtNPtF)
{
if (isSet(type_yFtNPtF) && type_yFtNPtF.constructor !== Array)
{
var temp_yFtNPtF = type_yFtNPtF;
var type_yFtNPtF = [];
type_yFtNPtF.push(temp_yFtNPtF);
}
else if (!isSet(type_yFtNPtF))
{
var type_yFtNPtF = [];
}
var type = type_yFtNPtF.some(type_yFtNPtF_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_yFtNPtFIwT_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_yFtNPtFIwT_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_yFtNPtFIwT_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_yFtNPtFIwT_required = true;
}
}
}
// the yFtNPtF Some function
function type_yFtNPtF_SomeFunc(type_yFtNPtF)
{
// set the function logic
if (type_yFtNPtF == 3)
{
return true;
}
return false;
}
// the gIDlqEy function
function gIDlqEy(type_gIDlqEy)
{
if (isSet(type_gIDlqEy) && type_gIDlqEy.constructor !== Array)
{
var temp_gIDlqEy = type_gIDlqEy;
var type_gIDlqEy = [];
type_gIDlqEy.push(temp_gIDlqEy);
}
else if (!isSet(type_gIDlqEy))
{
var type_gIDlqEy = [];
}
var type = type_gIDlqEy.some(type_gIDlqEy_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_gIDlqEybXp_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_gIDlqEybXp_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_gIDlqEybXp_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_gIDlqEybXp_required = true;
}
}
}
// the gIDlqEy Some function
function type_gIDlqEy_SomeFunc(type_gIDlqEy)
{
// set the function logic
if (type_gIDlqEy == 1)
{
return true;
}
return false;
}
// the nJukvrT function
function nJukvrT(type_nJukvrT)
{
if (isSet(type_nJukvrT) && type_nJukvrT.constructor !== Array)
{
var temp_nJukvrT = type_nJukvrT;
var type_nJukvrT = [];
type_nJukvrT.push(temp_nJukvrT);
}
else if (!isSet(type_nJukvrT))
{
var type_nJukvrT = [];
}
var type = type_nJukvrT.some(type_nJukvrT_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_nJukvrTsmK_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_nJukvrTsmK_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_nJukvrTsmK_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_nJukvrTsmK_required = true;
}
}
}
// the nJukvrT Some function
function type_nJukvrT_SomeFunc(type_nJukvrT)
{
// set the function logic
if (type_nJukvrT == 2)
{
return true;
}
return false;
}
// the hGjAuYO function
function hGjAuYO(target_hGjAuYO)
{
// set the function logic
if (target_hGjAuYO == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_hGjAuYOaHr_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_hGjAuYOaHr_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_hGjAuYOaHr_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_hGjAuYOaHr_required = true;
}
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}

View File

@ -0,0 +1,245 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Title Field. Type: Text. (joomla) -->
<field
type="text"
name="title"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TITLE_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_TITLE_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add title here."
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_TITLE_HINT"
/>
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TYPE_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
required="true">
<!-- Option Set. -->
<option value="">
COM_COMPONENTBUILDER_HELP_DOCUMENT_SELECT_AN_OPTION</option>
<option value="1">
COM_COMPONENTBUILDER_HELP_DOCUMENT_JOOMLA_ARTICLE</option>
<option value="2">
COM_COMPONENTBUILDER_HELP_DOCUMENT_TEXT</option>
<option value="3">
COM_COMPONENTBUILDER_HELP_DOCUMENT_URL</option>
</field>
<!-- Groups Field. Type: Usergroup. (joomla) -->
<field
type="usergroup"
name="groups"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_GROUPS_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_GROUPS_DESCRIPTION"
required="true"
multiple="true"
/>
<!-- Location Field. Type: Radio. (joomla) -->
<field
type="radio"
name="location"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_LOCATION_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_LOCATION_DESCRIPTION"
class="btn-group"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN</option>
<option value="2">
COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE</option>
</field>
<!-- Admin_view Field. Type: Folderlist. (joomla) -->
<field
type="folderlist"
name="admin_view"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN_VIEW_LABEL"
directory="/administrator/components/com_componentbuilder/views"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN_VIEW_DESCRIPTION"
hide_none="true"
hide_default="true"
/>
<!-- Site_view Field. Type: Folderlist. (joomla) -->
<field
type="folderlist"
name="site_view"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE_VIEW_LABEL"
directory="/components/com_componentbuilder/views"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE_VIEW_DESCRIPTION"
hide_none="true"
hide_default="true"
/>
<!-- Target Field. Type: Radio. (joomla) -->
<field
type="radio"
name="target"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_TARGET_LABEL"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_TARGET_DESCRIPTION"
class="btn-group"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_HELP_DOCUMENT_SOME</option>
<option value="2">
COM_COMPONENTBUILDER_HELP_DOCUMENT_ALL</option>
</field>
<!-- Content Field. Type: Editor. (joomla) -->
<field
type="editor"
name="content"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_CONTENT_LABEL"
width="100%"
height="300 px"
buttons="false"
filter="safehtml"
required="true"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="JFIELD_ALIAS_LABEL"
description="JFIELD_ALIAS_DESC"
filter="STRING"
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_ALIAS_HINT"
/>
<!-- Article Field. Type: Articles. (custom) -->
<field
type="articles"
name="article"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_ARTICLE_LABEL"
class="list_class"
multiple="false"
default="0"
required="true"
/>
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_LABEL"
size="60"
maxlength="150"
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_DESCRIPTION"
class="text_area"
required="true"
filter="url"
validated="url"
message="Error! Please add url here."
hint="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_HINT"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this help_document"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="help_document"
/>
</fieldset>
</form>

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,226 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_GfhPETHicS_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_GfhPETH = jQuery("#jform_add_php_view input[type='radio']:checked").val();
GfhPETH(add_php_view_GfhPETH);
});
// the GfhPETH function
function GfhPETH(add_php_view_GfhPETH)
{
// set the function logic
if (add_php_view_GfhPETH == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_GfhPETHicS_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_GfhPETHicS_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_GfhPETHicS_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_GfhPETHicS_required = true;
}
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
var request = 'token='+token+'&id='+snippetId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getSnippetDetails(id){
getSnippetDetails_server(id).done(function(result) {
if(result.snippet){
var description = '';
if (result.description.length > 0)
{
description = '<p>'+result.description+'</p>';
}
var code = '<div id="snippet-code"><b>'+result.name+' ('+result.type+')</b> <a href="'+result.url+'" target="_blank" >see more details</a><br /><em>'+result.heading+'</em><br /><textarea id="snippet" class="span12" rows="11">'+result.snippet+'</textarea></div>';
jQuery('#snippet-code').remove();
jQuery('.snippet-code').append(code);
// make sure the code block is active
jQuery("#snippet").focus(function() {
var jQuerythis = jQuery(this);
jQuerythis.select();
// Work around Chrome's little problem
jQuerythis.mouseup(function() {
// Prevent further mouseup intervention
jQuerythis.unbind("mouseup");
return false;
});
});
}
if(result.usage){
var usage = '<div id="snippet-usage"><p>'+result.usage+'</p></div>';
jQuery('#snippet-usage').remove();
jQuery('.snippet-usage').append(usage);
}
})
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=layout&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicValues(id){
getDynamicValues_server(id).done(function(result) {
if(result){
jQuery('#dynamic_values').remove();
jQuery('.dynamic_values').append('<div id="dynamic_values">'+result+'</div>');
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getLayoutDetails(id){
getLayoutDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getDynamicFormDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}

View File

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_LAYOUT_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_LAYOUT_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_LAYOUT_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_LAYOUT_VERSION_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_LAYOUT_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_LAYOUT_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_LAYOUT_NAME_HINT"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_LAYOUT_ALIAS_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_LAYOUT_ALIAS_DESCRIPTION"
class="text_area"
filter="CMD"
message="Error! Please add name in code here."
hint="COM_COMPONENTBUILDER_LAYOUT_ALIAS_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_LABEL"
size="80"
maxlength="150"
description="COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add description here."
hint="COM_COMPONENTBUILDER_LAYOUT_DESCRIPTION_HINT"
/>
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
<field
type="dynamicgets"
name="dynamic_get"
label="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="true"
button="true"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_LAYOUT_SNIPPET_LABEL"
class="list_class"
multiple="false"
required="false"
button="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_HINT"
required="true"
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_LAYOUT_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Layout Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="layout"
label="COM_COMPONENTBUILDER_LAYOUT_LAYOUT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_LAYOUT_LAYOUT_HINT"
required="true"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_LAYOUT_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_LAYOUT_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_LAYOUT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_LAYOUT_NO</option>
</field>
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_LAYOUT_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_LAYOUT_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this layout"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="layout"
/>
</fieldset>
</form>

View File

@ -0,0 +1,556 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_view.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_LpuMPafofr_required = false;
jform_UbkxbKzEHT_required = false;
jform_UkONGHPtYz_required = false;
jform_bJKCoADBPH_required = false;
jform_NLIYoKIJhs_required = false;
jform_vdKpTjWEJU_required = false;
jform_eFFQiSsJtk_required = false;
jform_jcUPaiBNPC_required = false;
jform_jqMQDzaAkK_required = false;
jform_jqMQDzawms_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_LpuMPaf = jQuery("#jform_add_php_view input[type='radio']:checked").val();
LpuMPaf(add_php_view_LpuMPaf);
var add_php_jview_display_UbkxbKz = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
UbkxbKz(add_php_jview_display_UbkxbKz);
var add_php_jview_UkONGHP = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
UkONGHP(add_php_jview_UkONGHP);
var add_php_document_bJKCoAD = jQuery("#jform_add_php_document input[type='radio']:checked").val();
bJKCoAD(add_php_document_bJKCoAD);
var add_css_document_NLIYoKI = jQuery("#jform_add_css_document input[type='radio']:checked").val();
NLIYoKI(add_css_document_NLIYoKI);
var add_js_document_vdKpTjW = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vdKpTjW(add_js_document_vdKpTjW);
var add_css_eFFQiSs = jQuery("#jform_add_css input[type='radio']:checked").val();
eFFQiSs(add_css_eFFQiSs);
var add_php_ajax_jcUPaiB = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
jcUPaiB(add_php_ajax_jcUPaiB);
var add_custom_button_jqMQDza = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
jqMQDza(add_custom_button_jqMQDza);
});
// the LpuMPaf function
function LpuMPaf(add_php_view_LpuMPaf)
{
// set the function logic
if (add_php_view_LpuMPaf == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_LpuMPafofr_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_LpuMPafofr_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_LpuMPafofr_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_LpuMPafofr_required = true;
}
}
}
// the UbkxbKz function
function UbkxbKz(add_php_jview_display_UbkxbKz)
{
// set the function logic
if (add_php_jview_display_UbkxbKz == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_UbkxbKzEHT_required)
{
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_UbkxbKzEHT_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_UbkxbKzEHT_required)
{
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
jform_UbkxbKzEHT_required = true;
}
}
}
// the UkONGHP function
function UkONGHP(add_php_jview_UkONGHP)
{
// set the function logic
if (add_php_jview_UkONGHP == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_UkONGHPtYz_required)
{
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
jform_UkONGHPtYz_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_UkONGHPtYz_required)
{
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
jform_UkONGHPtYz_required = true;
}
}
}
// the bJKCoAD function
function bJKCoAD(add_php_document_bJKCoAD)
{
// set the function logic
if (add_php_document_bJKCoAD == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_bJKCoADBPH_required)
{
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
jform_bJKCoADBPH_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_bJKCoADBPH_required)
{
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
jform_bJKCoADBPH_required = true;
}
}
}
// the NLIYoKI function
function NLIYoKI(add_css_document_NLIYoKI)
{
// set the function logic
if (add_css_document_NLIYoKI == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_NLIYoKIJhs_required)
{
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
jform_NLIYoKIJhs_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_NLIYoKIJhs_required)
{
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
jform_NLIYoKIJhs_required = true;
}
}
}
// the vdKpTjW function
function vdKpTjW(add_js_document_vdKpTjW)
{
// set the function logic
if (add_js_document_vdKpTjW == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vdKpTjWEJU_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_vdKpTjWEJU_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vdKpTjWEJU_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_vdKpTjWEJU_required = true;
}
}
}
// the eFFQiSs function
function eFFQiSs(add_css_eFFQiSs)
{
// set the function logic
if (add_css_eFFQiSs == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_eFFQiSsJtk_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_eFFQiSsJtk_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_eFFQiSsJtk_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_eFFQiSsJtk_required = true;
}
}
}
// the jcUPaiB function
function jcUPaiB(add_php_ajax_jcUPaiB)
{
// set the function logic
if (add_php_ajax_jcUPaiB == 1)
{
jQuery('#jform_ajax_input').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
if (jform_jcUPaiBNPC_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
jform_jcUPaiBNPC_required = false;
}
}
else
{
jQuery('#jform_ajax_input').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
if (!jform_jcUPaiBNPC_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
jform_jcUPaiBNPC_required = true;
}
}
}
// the jqMQDza function
function jqMQDza(add_custom_button_jqMQDza)
{
// set the function logic
if (add_custom_button_jqMQDza == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_jqMQDzaAkK_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_jqMQDzaAkK_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_jqMQDzawms_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_jqMQDzawms_required = false;
}
}
else
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_jqMQDzaAkK_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_jqMQDzaAkK_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_jqMQDzawms_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_jqMQDzawms_required = true;
}
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
var request = 'token='+token+'&id='+snippetId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getSnippetDetails(id){
getSnippetDetails_server(id).done(function(result) {
if(result.snippet){
var description = '';
if (result.description.length > 0)
{
description = '<p>'+result.description+'</p>';
}
var code = '<div id="snippet-code"><b>'+result.name+' ('+result.type+')</b> <a href="'+result.url+'" target="_blank" >see more details</a><br /><em>'+result.heading+'</em><br /><textarea id="snippet" class="span12" rows="11">'+result.snippet+'</textarea></div>';
jQuery('#snippet-code').remove();
jQuery('.snippet-code').append(code);
// make sure the code block is active
jQuery("#snippet").focus(function() {
var jQuerythis = jQuery(this);
jQuerythis.select();
// Work around Chrome's little problem
jQuerythis.mouseup(function() {
// Prevent further mouseup intervention
jQuerythis.unbind("mouseup");
return false;
});
});
}
if(result.usage){
var usage = '<div id="snippet-usage"><p>'+result.usage+'</p></div>';
jQuery('#snippet-usage').remove();
jQuery('.snippet-usage').append(usage);
}
})
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=template&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicValues(id){
getDynamicValues_server(id).done(function(result) {
if(result){
jQuery('#dynamic_values').remove();
jQuery('.dynamic_values').append('<div id="dynamic_values">'+result+'</div>');
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getLayoutDetails(id){
getLayoutDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getTemplateDetails(id){
getTemplateDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getDynamicFormDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,26 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippet.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/

View File

@ -0,0 +1,215 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_SNIPPET_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_SNIPPET_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_SNIPPET_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_SNIPPET_VERSION_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_SNIPPET_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_SNIPPET_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_SNIPPET_NAME_HINT"
/>
<!-- Url Field. Type: Url. (joomla) -->
<field
type="url"
name="url"
label="COM_COMPONENTBUILDER_SNIPPET_URL_LABEL"
size="60"
maxlength="150"
description="COM_COMPONENTBUILDER_SNIPPET_URL_DESCRIPTION"
class="text_area"
required="true"
filter="url"
validated="url"
message="Error! Please add url here."
hint="COM_COMPONENTBUILDER_SNIPPET_URL_HINT"
/>
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
name="type"
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_LABEL"
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION"
class="list_class"
multiple="false"
filter="INT"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_SNIPPET_LAYOUT</option>
<option value="2">
COM_COMPONENTBUILDER_SNIPPET_NAVIGATIONS</option>
<option value="3">
COM_COMPONENTBUILDER_SNIPPET_ELEMENTS</option>
<option value="4">
COM_COMPONENTBUILDER_SNIPPET_COMMON</option>
<option value="5">
COM_COMPONENTBUILDER_SNIPPET_JAVASCRIPT</option>
<option value="6">
COM_COMPONENTBUILDER_SNIPPET_CHARTS</option>
</field>
<!-- Heading Field. Type: Text. (joomla) -->
<field
type="text"
name="heading"
label="COM_COMPONENTBUILDER_SNIPPET_HEADING_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_SNIPPET_HEADING_DESCRIPTION"
class="text_area"
required="true"
filter="HTML"
message="Error! Please add some short heading here."
hint="COM_COMPONENTBUILDER_SNIPPET_HEADING_HINT"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="description"
label="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_SNIPPET_DESCRIPTION_HINT"
/>
<!-- Usage Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="usage"
label="COM_COMPONENTBUILDER_SNIPPET_USAGE_LABEL"
rows="11"
cols="10"
description="COM_COMPONENTBUILDER_SNIPPET_USAGE_DESCRIPTION"
class="text_area span12"
filter="STRING"
hint="COM_COMPONENTBUILDER_SNIPPET_USAGE_HINT"
/>
<!-- Snippet Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="snippet"
label="COM_COMPONENTBUILDER_SNIPPET_SNIPPET_LABEL"
rows="27"
cols="10"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SNIPPET_SNIPPET_HINT"
required="true"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this snippet"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="snippet"
/>
</fieldset>
</form>

View File

@ -0,0 +1,267 @@
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.0.8
@build 30th January, 2016
@created 30th April, 2015
@package Component Builder
@subpackage template.js
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
@my wife Roline van der Merwe <http://www.vdm.io/>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_VeAOEddKqi_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_VeAOEdd = jQuery("#jform_add_php_view input[type='radio']:checked").val();
VeAOEdd(add_php_view_VeAOEdd);
});
// the VeAOEdd function
function VeAOEdd(add_php_view_VeAOEdd)
{
// set the function logic
if (add_php_view_VeAOEdd == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_VeAOEddKqi_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_VeAOEddKqi_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_VeAOEddKqi_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_VeAOEddKqi_required = true;
}
}
}
// update required fields
function updateFieldRequired(name,status)
{
var not_required = jQuery('#jform_not_required').val();
if(status == 1)
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required+','+name;
}
else
{
not_required = ','+name;
}
}
else
{
if (isSet(not_required) && not_required != 0)
{
not_required = not_required.replace(','+name,'');
}
}
jQuery('#jform_not_required').val(not_required);
}
// the isSet function
function isSet(val)
{
if ((val != undefined) && (val != null) && 0 !== val.length){
return true;
}
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
var request = 'token='+token+'&id='+snippetId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getSnippetDetails(id){
getSnippetDetails_server(id).done(function(result) {
if(result.snippet){
var description = '';
if (result.description.length > 0)
{
description = '<p>'+result.description+'</p>';
}
var code = '<div id="snippet-code"><b>'+result.name+' ('+result.type+')</b> <a href="'+result.url+'" target="_blank" >see more details</a><br /><em>'+result.heading+'</em><br /><textarea id="snippet" class="span12" rows="11">'+result.snippet+'</textarea></div>';
jQuery('#snippet-code').remove();
jQuery('.snippet-code').append(code);
// make sure the code block is active
jQuery("#snippet").focus(function() {
var jQuerythis = jQuery(this);
jQuerythis.select();
// Work around Chrome's little problem
jQuerythis.mouseup(function() {
// Prevent further mouseup intervention
jQuerythis.unbind("mouseup");
return false;
});
});
}
if(result.usage){
var usage = '<div id="snippet-usage"><p>'+result.usage+'</p></div>';
jQuery('#snippet-usage').remove();
jQuery('.snippet-usage').append(usage);
}
})
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=template&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicValues(id){
getDynamicValues_server(id).done(function(result) {
if(result){
jQuery('#dynamic_values').remove();
jQuery('.dynamic_values').append('<div id="dynamic_values">'+result+'</div>');
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getLayoutDetails(id){
getLayoutDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getTemplateDetails(id){
getTemplateDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getDynamicFormDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}

View File

@ -0,0 +1,228 @@
<?xml version="1.0" encoding="utf-8"?>
<form
addrulepath="/administrator/components/com_componentbuilder/models/rules"
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
>
<fieldset name="details">
<!-- Default Fields. -->
<!-- Id Field. Type: Text (joomla) -->
<field
name="id"
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
readonly="true"
/>
<!-- Date Created Field. Type: Calendar (joomla) -->
<field
name="created"
type="calendar"
label="COM_COMPONENTBUILDER_TEMPLATE_CREATED_DATE_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_CREATED_DATE_DESC"
size="22"
format="%Y-%m-%d %H:%M:%S"
filter="user_utc"
/>
<!-- User Created Field. Type: User (joomla) -->
<field
name="created_by"
type="user"
label="COM_COMPONENTBUILDER_TEMPLATE_CREATED_BY_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_CREATED_BY_DESC"
/>
<!-- Published Field. Type: List (joomla) -->
<field name="published" type="list" label="JSTATUS"
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
filter="intval" size="1" default="1" >
<option value="1">
JPUBLISHED</option>
<option value="0">
JUNPUBLISHED</option>
<option value="2">
JARCHIVED</option>
<option value="-2">
JTRASHED</option>
</field>
<!-- Date Modified Field. Type: Calendar (joomla) -->
<field name="modified" type="calendar" class="readonly"
label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_CONTENT_FIELD_MODIFIED_DESC"
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
<!-- User Modified Field. Type: User (joomla) -->
<field name="modified_by" type="user"
label="JGLOBAL_FIELD_MODIFIED_BY_LABEL"
class="readonly"
readonly="true"
filter="unset"
/>
<!-- Access Field. Type: Accesslevel (joomla) -->
<field name="access"
type="accesslevel"
label="JFIELD_ACCESS_LABEL"
description="JFIELD_ACCESS_DESC"
default="1"
required="false"
/>
<!-- Ordering Field. Type: Numbers (joomla) -->
<field
name="ordering"
type="number"
class="inputbox validate-ordering"
label="COM_COMPONENTBUILDER_TEMPLATE_ORDERING_LABEL"
description=""
default="0"
size="6"
required="false"
/>
<!-- Version Field. Type: Text (joomla) -->
<field
name="version"
type="text"
class="readonly"
label="COM_COMPONENTBUILDER_TEMPLATE_VERSION_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_VERSION_DESC"
size="6"
readonly="true"
filter="unset"
/>
<!-- Dynamic Fields. -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_TEMPLATE_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_TEMPLATE_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_TEMPLATE_NAME_HINT"
/>
<!-- Alias Field. Type: Text. (joomla) -->
<field
type="text"
name="alias"
label="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_LABEL"
size="40"
maxlength="50"
description="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_DESCRIPTION"
class="text_area"
filter="CMD"
message="Error! Please add name in code here."
hint="COM_COMPONENTBUILDER_TEMPLATE_ALIAS_HINT"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_LABEL"
size="80"
maxlength="150"
description="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add description here."
hint="COM_COMPONENTBUILDER_TEMPLATE_DESCRIPTION_HINT"
/>
<!-- Snippet Field. Type: Snippets. (custom) -->
<field
type="snippets"
name="snippet"
label="COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_LABEL"
class="list_class"
multiple="false"
required="false"
button="true"
/>
<!-- Template Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="template"
label="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_HINT"
required="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_HINT"
required="true"
/>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_TEMPLATE_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_TEMPLATE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_TEMPLATE_NO</option>
</field>
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
<field
type="dynamicgets"
name="dynamic_get"
label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="true"
button="true"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
</fieldset>
<!-- Access Control Fields. -->
<fieldset name="accesscontrol">
<!-- Asset Id Field. Type: Hidden (joomla) -->
<field
name="asset_id"
type="hidden"
filter="unset"
/>
<!-- Rules Field. Type: Rules (joomla) -->
<field
name="rules"
type="rules"
label="Permissions in relation to this template"
translate_label="false"
filter="rules"
validate="rules"
class="inputbox"
component="com_componentbuilder"
section="template"
/>
</fieldset>
</form>