195 lines
No EOL
8.8 KiB
HTML
195 lines
No EOL
8.8 KiB
HTML
{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">
|
|
<h3>Video 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">
|
|
<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>
|
|
</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>
|
|
</div><br/>
|
|
<div class="form-group">
|
|
<input class="btn btn-primary btn-xs" type="submit" value="Submit" name="submit"/>
|
|
</div>
|
|
</form>
|
|
<input type="hidden" name="section_type" value="video"></input>
|
|
<table class="table table-bordered table-striped manageUsersTable">
|
|
<tr>
|
|
<td>Custom Field ID</td>
|
|
<td>Video Custom Field Name</td>
|
|
<td>Custom Field Title</td>
|
|
<td>Custom Field Type</td>
|
|
<td>Action</td>
|
|
</tr>
|
|
{foreach from=$vcustom_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'}
|
|
<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>
|
|
<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">
|
|
<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>
|
|
</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>
|
|
|
|
</div><br/>
|
|
<div class="form-group">
|
|
<input class="btn btn-primary btn-xs" type="submit" value="Submit" name="submit"/>
|
|
</div>
|
|
</form>
|
|
<table class="table table-bordered table-striped manageUsersTable">
|
|
<tr>
|
|
<td>Custom Field ID</td>
|
|
<td>User Custom Field Name</td>
|
|
<td>Custom Field Title</td>
|
|
<td>Custom Field Type</td>
|
|
<td>Action</td>
|
|
</tr>
|
|
{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'}
|
|
<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>
|
|
</div>
|
|
<!--</div>-->
|
|
{/if} |