2015-02-26 13:50:40 +00:00
{if BACK_END}
< script type = "text/javascript" src = "{$PLUG_URL}/customfield/js/dynamic_fields.js" > < / script >
< div class = "heading" >
< h2 > Custom Field< / h2 >
< / div >
{if $signup=='signup'}
< script type = "text/javascript" >
$('#myTab3').trigger('click'); //here, select by ID the tab you need to show
< / script >
{else}{$active=''}{/if}
< div class = "tabbable" >
< ul class = "nav nav-tabs" id = "myTab3" >
< li class = "active" >
< a data-toggle = "tab" href = "#risession" >
Video
< / a >
< / li >
< li id = "tab2" >
< a data-toggle = "tab" href = "#ruserlog" >
Signup
< / a >
< / li >
< / ul >
< div class = "tab-content" >
< div id = "risession" class = "tab-pane in active" >
2016-03-11 01:57:49 -08:00
< h3 > Video Custom Fields< / h3 >
< hr >
2015-02-26 13:50:40 +00:00
< form method = "post" >
< div id = "itemRows" >
Field Name: < input type = "text" name = "fieldname" size = "20" class = "fieldname" / > Field Title(Label): < input type = "text" name = "fieldtitle" size = "20" / > Type: < select name = "type" id = "test2" >
< option value = "" > < / option >
< option value = "textfield" > Textfield< / option >
< option value = "password" > Password< / option >
< option value = "textarea" > Textarea< / option >
< option value = "checkbox" > Checkbox< / option >
< option value = "radiobutton" > Radiobutton< / option >
< option value = "dropdown" > Dropdown< / option >
2016-03-11 01:57:49 -08:00
< / select > Default Values:< textarea name = "default_value" placeholder = "Use Comma Separated values for drop down, radio buttons and checkboxes" cols = "19" rows = "4" id = "default_video" > < / textarea >
< input type = "hidden" name = "section_type" value = "video" > < / input >
2015-02-26 13:50:40 +00:00
< / div > < br / >
< div class = "form-group" >
< input class = "btn btn-primary btn-xs" type = "submit" value = "Submit" name = "submit" / >
< / div >
2016-03-11 01:57:49 -08:00
< / form >
< input type = "hidden" name = "section_type" value = "video" > < / input >
2015-02-26 13:50:40 +00:00
< table class = "table table-bordered table-striped manageUsersTable" >
< tr >
< td > Custom Field ID< / td >
2016-03-11 01:57:49 -08:00
< td > Video Custom Field Name< / td >
2015-02-26 13:50:40 +00:00
< td > Custom Field Title< / td >
< td > Custom Field Type< / td >
2016-03-10 06:37:14 -08:00
< td > Action< / td >
2015-02-26 13:50:40 +00:00
< / tr >
2016-03-11 01:57:49 -08:00
{foreach from=$vcustom_fields key=k item=field}
2016-03-10 06:37:14 -08:00
< tr >
< td > {$field.custom_field_list_id}< / td >
< td > {$field.custom_field_name}< / td >
< td > {$field.custom_field_title}< / td >
< td > {$field.custom_field_type}< / td >
< td >
< div class = "dropdown" >
< button class = "btn btn-primary btn-xs dropdown-toggle" id = "dropdownMenu1" data-toggle = "dropdown" > Actions
< i class = "icon-angle-down icon-on-right" > < / i > < / button >
< ul class = "dropdown-menu pull-right" role = "menu" aria-labelledby = "dropdownMenu1" style = "margin-left:100px;" >
< li >
< a href = '{$baseurl}/{$custom_field_edit_page}&custom_edit={$field.custom_field_list_id}' > Edit< / a >
< / li >
< li >
< / li >
< li >
2016-03-11 01:57:49 -08:00
< a tabindex = "-1" href = "{$baseurl}/{$custom_field_edit_page}&del_custom_field={$field.custom_field_list_id}" role = "menuitem" > Delete< / a > < / li > < / ul >
2016-03-10 06:37:14 -08:00
< / div >
< / td >
< / tr >
{/foreach}
{section name=listscustom loop=$custom_fields}
2015-02-26 13:50:40 +00:00
{if $listscustom[listscustom].customfields_flag =='video'}
< tr >
< td > {$listscustom[listscustom].custom_field_list_id}< / td >
< td > {$listscustom[listscustom].field_name}< / td >
< td > {$listscustom[listscustom].field_title}< / td >
< td > {$listscustom[listscustom].field_type}< / td >
< td > {$listscustom[listscustom].db_field}< / td >
< td >
< div class = "dropdown" >
< button class = "btn btn-primary btn-xs dropdown-toggle" id = "dropdownMenu1" data-toggle = "dropdown" > Actions
< i class = "icon-angle-down icon-on-right" > < / i > < / button >
< ul class = "dropdown-menu pull-right" role = "menu" aria-labelledby = "dropdownMenu1" style = "margin-left:100px;" >
< li >
< a href = '{$cb_custom_fields_edit_page}&edit_customfield={$listscustom[listscustom].custom_field_list_id}' > Edit< / a >
< / li >
< li >
< / li >
< li >
< a tabindex = "-1" href = "{$smarty.server.REQUEST_URI}&deletefield={$listscustom[listscustom].custom_field_list_id}&deletefield_name={$listscustom[listscustom].field_name}&dbfield_name={$listscustom[listscustom].db_field}&page_type={$listscustom[listscustom].customfields_flag}" role = "menuitem" > Delete< / a > < / li > < / ul >
< / div >
< / td >
< / tr >
{/if}
{/section}
< / table >
< / div >
2016-03-11 01:57:49 -08:00
< div id = "ruserlog" class = "tab-pane in active" >
< h3 > User Custom Fields< / h3 >
< hr >
< form method = "post" >
< div id = "itemRows" >
Field Name: < input type = "text" name = "fieldname" size = "20" class = "fieldname" / > Field Title(Label): < input type = "text" name = "fieldtitle" size = "20" / > Type: < select name = "type" id = "test2" >
2015-02-26 13:50:40 +00:00
< option value = "" > < / option >
< option value = "textfield" > Textfield< / option >
< option value = "password" > Password< / option >
< option value = "textarea" > Textarea< / option >
< option value = "checkbox" > Checkbox< / option >
< option value = "radiobutton" > Radiobutton< / option >
< option value = "dropdown" > Dropdown< / option >
2016-03-11 01:57:49 -08:00
< / select >
Default Values:< textarea name = "default_value" placeholder = "Use Comma Separated values for drop down, radio buttons and checkboxes" cols = "19" rows = "4" id = "default_video" > < / textarea > < br / >
< input type = "hidden" name = "section_type" value = "signup" > < / input >
2015-02-26 13:50:40 +00:00
< / div > < br / >
< div class = "form-group" >
2016-03-11 01:57:49 -08:00
< input class = "btn btn-primary btn-xs" type = "submit" value = "Submit" name = "submit" / >
2015-02-26 13:50:40 +00:00
< / div >
< / form >
2016-03-11 01:57:49 -08:00
< table class = "table table-bordered table-striped manageUsersTable" >
2015-02-26 13:50:40 +00:00
< tr >
< td > Custom Field ID< / td >
2016-03-11 01:57:49 -08:00
< td > User Custom Field Name< / td >
2015-02-26 13:50:40 +00:00
< td > Custom Field Title< / td >
< td > Custom Field Type< / td >
2016-03-11 01:57:49 -08:00
< td > Action< / td >
2015-02-26 13:50:40 +00:00
< / tr >
2016-03-11 01:57:49 -08:00
{foreach from=$scustom_fields key=k item=field}
< tr >
< td > {$field.custom_field_list_id}< / td >
< td > {$field.custom_field_name}< / td >
< td > {$field.custom_field_title}< / td >
< td > {$field.custom_field_type}< / td >
< td >
< div class = "dropdown" >
< button class = "btn btn-primary btn-xs dropdown-toggle" id = "dropdownMenu1" data-toggle = "dropdown" > Actions
< i class = "icon-angle-down icon-on-right" > < / i > < / button >
< ul class = "dropdown-menu pull-right" role = "menu" aria-labelledby = "dropdownMenu1" style = "margin-left:100px;" >
< li >
< a href = '{$baseurl}/{$custom_field_edit_page}&custom_edit={$field.custom_field_list_id}' > Edit< / a >
< / li >
< li >
< / li >
< li >
< a tabindex = "-1" href = "{$baseurl}/{$custom_field_edit_page}&del_custom_field={$field.custom_field_list_id}" role = "menuitem" > Delete< / a > < / li > < / ul >
< / div >
< / td >
< / tr >
{/foreach}
{section name=listscustom loop=$custom_fields}
{if $listscustom[listscustom].customfields_flag =='video'}
2015-02-26 13:50:40 +00:00
< tr >
< td > {$listscustom[listscustom].custom_field_list_id}< / td >
< td > {$listscustom[listscustom].field_name}< / td >
< td > {$listscustom[listscustom].field_title}< / td >
< td > {$listscustom[listscustom].field_type}< / td >
< td > {$listscustom[listscustom].db_field}< / td >
< td >
< div class = "dropdown" >
2016-03-11 01:57:49 -08:00
< button class = "btn btn-primary btn-xs dropdown-toggle" id = "dropdownMenu1" data-toggle = "dropdown" > Actions
< i class = "icon-angle-down icon-on-right" > < / i > < / button >
2015-02-26 13:50:40 +00:00
< ul class = "dropdown-menu pull-right" role = "menu" aria-labelledby = "dropdownMenu1" style = "margin-left:100px;" >
< li >
< a href = '{$cb_custom_fields_edit_page}&edit_customfield={$listscustom[listscustom].custom_field_list_id}' > Edit< / a >
< / li >
< li >
< / li >
< li >
2016-03-11 01:57:49 -08:00
< a tabindex = "-1" href = "{$smarty.server.REQUEST_URI}&deletefield={$listscustom[listscustom].custom_field_list_id}&deletefield_name={$listscustom[listscustom].field_name}&dbfield_name={$listscustom[listscustom].db_field}&page_type={$listscustom[listscustom].customfields_flag}" role = "menuitem" > Delete< / a > < / li > < / ul >
2015-02-26 13:50:40 +00:00
< / div >
< / td >
< / tr >
{/if}
{/section}
< / table >
2016-03-11 01:57:49 -08:00
< / div >
2015-02-26 13:50:40 +00:00
< / div >
<!-- </div> -->
{/if}