Fixed : no option to edit user category from backend
This commit is contained in:
parent
1f1e4280ec
commit
8ded80530a
2 changed files with 15 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
{assign var='signup_fields' value=$userquery->load_signup_fields($u)}
|
||||
{assign var='channel_profile_fields' value=$userquery->load_user_fields($p)}
|
||||
{$thecats = pullCategories('channels')}
|
||||
|
||||
<div class="row">
|
||||
<div class="lead dropdown">
|
||||
|
@ -180,6 +181,18 @@
|
|||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first"> <label for="category">User Category</label></td>
|
||||
<td class="last">
|
||||
<p><select class="form-control" name="category" id="category" >
|
||||
|
||||
{foreach from=$thecats item=cat}
|
||||
<option value="{$cat.category_id}" {if $cat.category_id == $u.category}selected="selected"{/if}>{$cat.category_name}</option>
|
||||
{/foreach}
|
||||
</select></p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first"><label for="country">Country</label></td>
|
||||
<td class="last">
|
||||
|
|
|
@ -82,6 +82,7 @@ if($udetails)
|
|||
$user_profile = array_merge($udetails,$profile);
|
||||
assign('u',$udetails);
|
||||
assign('p',$user_profile);
|
||||
assign("catparmas",'catparmas');
|
||||
|
||||
|
||||
/*$type = "u";
|
||||
|
|
Loading…
Add table
Reference in a new issue