modified..
This commit is contained in:
parent
0bf35fcefe
commit
0910ecdcbb
1 changed files with 134 additions and 40 deletions
|
@ -3,65 +3,159 @@
|
|||
{* 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">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<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>
|
||||
<button id="hideshow" class="btn btn-default pull-right dropdown-toggle" data-toggle="dropdown">
|
||||
Group Stats <i class="caret"></i></button>
|
||||
<div class="col-md-6" id="content" style="display: none">
|
||||
|
||||
<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>
|
||||
</div>
|
||||
</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}
|
||||
{if $field.title=='Group name'}
|
||||
{$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 />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label for="$field.id">Group name </label>
|
||||
{$formObj->createField($field)}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{foreach from=$requiredFields item=field}
|
||||
{if $field.title=='Tags'}
|
||||
{$field.class='form-control'}
|
||||
<div class="col-md-4">
|
||||
<label for="$field.id">TAgs </label>
|
||||
{$formObj->createField($field)}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{foreach from=$requiredFields item=field}
|
||||
{if $field.title=='Description'}
|
||||
{$field.class='form-control'}
|
||||
<div class="col-md-4">
|
||||
<label for="$field.id">Description</label>
|
||||
{$formObj->createField($field)}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{foreach from=$requiredFields item=field}
|
||||
{if $field.title=='Choose a unique group name URL:'}
|
||||
{$field.class='form-control'}
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label for="$field.id">Choose a unique group name URL: </label>
|
||||
{$formObj->createField($field)}
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{foreach from=$requiredFields item=field}
|
||||
{if $field.title=='Group Category:'}
|
||||
{$field.class='form-control'}
|
||||
<div class="col-md-4">
|
||||
<label for="$field.id">Category </label>
|
||||
{$formObj->createField($field)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{$field.hint_2}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
<!--<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}-->
|
||||
|
||||
|
||||
|
||||
<div class="tabbable">
|
||||
<ul class="nav nav-tabs" id="myTab3">
|
||||
<li class="active">
|
||||
<a data-toggle="tab" href="#privacy">
|
||||
Privacy
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a data-toggle="tab" href="#fpostings">
|
||||
Forum Postings
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="privacy" class="tab-pane in active">
|
||||
{foreach from=$optionFields item=field}
|
||||
{if $field.title=='Privacy'}
|
||||
{$field.class='form-control'}
|
||||
<label class="label label-danger $field.id">{$field.title} </label><br>
|
||||
{if $field.hint_1}{$field.hint_1}<br />{/if}
|
||||
{$formObj->createField($field)}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<div id="fpostings" class="tab-pane">
|
||||
{foreach from=$optionFields item=field}
|
||||
{if $field.title=='Forum Posting:'}
|
||||
{$field.class='form-control'}
|
||||
<label class="label label-danger $field.id">{$field.title} </label><br>
|
||||
{if $field.hint_1}{$field.hint_1}<br />{/if}
|
||||
{$formObj->createField($field)}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="button">
|
||||
<input type="submit" class="btn btn-primary" value="Update Group details" name="update_group" id="update_group">
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var button = document.getElementById('hideshow'); // Assumes element with id='button'
|
||||
|
||||
button.onclick = function() {
|
||||
var div = document.getElementById('content');
|
||||
if (div.style.display !== 'none') {
|
||||
div.style.display = 'none';
|
||||
}
|
||||
else {
|
||||
div.style.display = 'block';
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Reference in a new issue