67 lines
No EOL
2.9 KiB
HTML
67 lines
No EOL
2.9 KiB
HTML
<h2>Edit Group</h2>
|
|
|
|
{* Loading Form Fields *}
|
|
{assign var='requiredFields' value=$cbgroup->load_required_fields($group,true)}
|
|
{assign var='optionFields' value=$cbgroup->load_other_fields($group)}
|
|
|
|
<div class="head">Editing {$group.title}</div>
|
|
<form name="edit_group" method="post">
|
|
<fieldset class="fieldset">
|
|
<legend>Thumbs</legend>
|
|
<div class="form-group">
|
|
<img src="{$cbgroup->get_group_thumb($group)}" class="thumbnail"/>
|
|
<span>{$LANG.grp_must_be} JPG | GIF | PNG</span>
|
|
<span>{$LANG.grp_90x90}</span>
|
|
<span>{$LANG.grp_thumb_warn}</span>
|
|
<input type="file" class="form-control" name="thumb_file" id="thumb_file" />
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</fieldset>
|
|
<legend>Required Details</legend>
|
|
{foreach from=$requiredFields item=field}
|
|
<div class="form-group">
|
|
{$field.class='form-control'}
|
|
<label for="$field.id">{$field.title} </label>
|
|
{if $field.hint_1}{$field.hint_1}<br />{/if}
|
|
{if $field.anchor_before}{ANCHOR place=$field.anchor_before}<br />{/if}
|
|
{$formObj->createField($field)} <br />
|
|
|
|
{$field.hint_2}
|
|
|
|
{/foreach}
|
|
</div>
|
|
<legend>Group Stats</legend>
|
|
<div class="form-group">
|
|
<label for="total_views">Total Views</label>
|
|
<input name="total_views" class="form-control" type="text" id="total_views" value="{$group.total_views}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="total_members">Total Members</label>
|
|
<input name="total_members" class="form-control" type="text" id="total_members" value="{$group.total_members}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="total_videos">Total Videos</label>
|
|
<input name="total_videos" class="form-control" type="text" id="total_views4" value="{$group.total_videos}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="total_topics">Total Topics</label>
|
|
<input name="total_topics" class="form-control" type="text" id="total_views5" value="{$group.total_topics}" />
|
|
</div>
|
|
<legend>Other Details</legend>
|
|
{foreach from=$optionFields item=field}
|
|
{$field.class='form-control'}
|
|
<div class="form-group">
|
|
<label class="text-muted $field.id">{$field.title} </label><br>
|
|
{if $field.hint_1}{$field.hint_1}<br />{/if}
|
|
{if $field.anchor_before}{ANCHOR place=$field.anchor_before}<br />{/if}
|
|
{$formObj->createField($field)} <br />
|
|
|
|
{$field.hint_2}
|
|
|
|
{/foreach}
|
|
</div>
|
|
|
|
<div class="button">
|
|
<input type="submit" class="btn btn-primary" value="Update Group details" name="update_group" id="update_group">
|
|
</div>
|
|
</form> |