modified!
This commit is contained in:
parent
2175a47b6b
commit
2f27305c98
1 changed files with 92 additions and 61 deletions
|
@ -1,66 +1,97 @@
|
||||||
<h2>Add New Group</h2>
|
{assign var='requiredFields' value=$cbgroup->load_required_fields()}
|
||||||
<form name="add_group" action="" method="post" enctype="multipart/form-data">
|
{assign var='optionFields' value=$cbgroup->load_other_fields()}
|
||||||
<p class="alert alert-info">* are required fields</p>
|
{assign var='customFields' value=$cbgroup->custom_group_fields}
|
||||||
<div class="form-group">
|
<h2>Add Group</h2>
|
||||||
<label for="users">Select User *</label>
|
<p class="alert alert-info">Required Member Details</p>
|
||||||
{assign var=users value=$userquery->get_users()}
|
<form name="upload_form" class="upload_form" method="post" action="">
|
||||||
<select class="form-control" name="users" tabindex="1">
|
<div class="row">
|
||||||
<option>Select User</option>
|
{foreach from=$requiredFields item=field}
|
||||||
{foreach from=$users item=user}
|
{$field.class = 'form-control'}
|
||||||
<option value="{$user.userid}">{$user.username}</option>
|
{if $field.title == 'Group name'}
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label for="{$field.id}">{$field.title}</label>
|
||||||
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}</div>
|
||||||
|
{/if}
|
||||||
|
{$field.class = 'form-control'}
|
||||||
|
{if $field.title == 'Tags'}
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label for="{$field.id}">{$field.title}</label>
|
||||||
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}</div>
|
||||||
|
{/if}
|
||||||
|
{$field.class = 'form-control'}
|
||||||
|
{if $field.title == 'Description'}
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label for="{$field.id}">{$field.title}</label>
|
||||||
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}</div>
|
||||||
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</select>
|
|
||||||
<!--<select class="form-control" name="users" tabindex="1">
|
|
||||||
<option>Select User</option>
|
|
||||||
|
|
||||||
{section name=u_list loop=$users}
|
|
||||||
<option value="{$users[u_list].userid}">{$users[u_list].username}</option>
|
|
||||||
{/section}
|
|
||||||
</select>-->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="row">
|
||||||
<label for="title">Group Title *</label>
|
{foreach from=$requiredFields item=field}
|
||||||
<input class="form-control" name="title" id="titile" tabindex="2">
|
{$field.class = 'form-control'}
|
||||||
</div>
|
{if $field.title == 'Choose a unique group name URL:'}
|
||||||
|
<div class="col-md-3">
|
||||||
<div class="form-group">
|
<label for="{$field.id}">{$field.title}</label>
|
||||||
<label for="description">Group Description *</label>
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}</div>
|
||||||
<textarea class="form-control" name="descriptio" id="description" rows="5" tabindex="3"></textarea>
|
{/if}
|
||||||
</div>
|
{$field.class = 'form-control'}
|
||||||
|
{if $field.title == 'Group Category:'}
|
||||||
<div class="form-group">
|
<div class="col-md-3">
|
||||||
<label for="tags">Group Tags *</label>
|
<label for="{$field.id}">{$field.title}</label><br>
|
||||||
<input class="form-control" name="tags" id="tag" tabindex="4">
|
{$field.hint_1}
|
||||||
</div>
|
<div class="tab-content scroll">
|
||||||
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}</div>
|
||||||
<div class="form-group">
|
{/if}
|
||||||
<label for="gp_url">Group Url *</label>
|
|
||||||
<input class="form-control" name="gp_url" id="gp_url" tabindex="5">
|
|
||||||
<small>Only these characters are allowed. a-z, 0-9, Hypen (-), Underscore(_), Period(.)</small>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="gptype">Group Type </label>
|
|
||||||
<input name="gptype" class="radio-inline" type="radio" tabindex="7" value="1">Public
|
|
||||||
<input name="gptype" class="radio-inline"type="radio" tabindex="8" value="2">Only Invited Members
|
|
||||||
<input name="gptype" class="radio-inline" type="radio" tabindex="7" value="1">Private
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="category">Group Category *</label>
|
|
||||||
{assign var=categories value=$userquery->get_categories()}
|
|
||||||
<select class="form-control" name="category" tabindex="9">
|
|
||||||
<option>Choose A Category</option>
|
|
||||||
{foreach from=$categories item=category}
|
|
||||||
<option value="{$category.category_id}">{$category.category_name}</option>
|
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<label for="gpthumb">Group Thumb</label>
|
|
||||||
<input class="form-control" type="file" name="gpThumb" id="gpThumb" tabindex="10">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<input type="submit" tabindex="11" name="create_group" id="create_group" value="Add Group" class="btn btn-primary"/>
|
<!-- MORE Fields -->
|
||||||
|
|
||||||
|
<div class="tabbable">
|
||||||
|
<ul class="nav nav-tabs" id="myTab">
|
||||||
|
<li class="active">
|
||||||
|
<a data-toggle="tab" href="#privacy">
|
||||||
|
Privacy
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="">
|
||||||
|
<a data-toggle="tab" href="#forums">
|
||||||
|
Forum Posting
|
||||||
|
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="privacy" class="tab-pane active">
|
||||||
|
{foreach from=$optionFields item=field}
|
||||||
|
{if $field.title == 'Privacy'}
|
||||||
|
<div class="cb-box">
|
||||||
|
<label for="{$field.id}" class="label label-danger">{$field.title}</label><br>
|
||||||
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
<div id="forums" class="tab-pane">
|
||||||
|
{foreach from=$optionFields item=field}
|
||||||
|
{if $field.title == 'Forum Posting:'}
|
||||||
|
<div class="cb-box">
|
||||||
|
<label for="{$field.id}" class="label label-danger">{$field.title}</label><br>
|
||||||
|
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- MORE Fields -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div align="right" style="margin-top:10px"><input type="submit" name="create_group" value="{lang code='grp_crt_grp'}" class="btn btn-primary btn-sm"></div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue