Added : Create group option for v3
This commit is contained in:
parent
71ca5b3449
commit
b632a389d5
3 changed files with 107 additions and 4 deletions
100
upload/styles/cbv3/layout/create_group.html
Normal file
100
upload/styles/cbv3/layout/create_group.html
Normal file
|
@ -0,0 +1,100 @@
|
|||
{assign var='requiredFields' value=$cbgroup->load_required_fields()}
|
||||
{assign var='optionFields' value=$cbgroup->load_other_fields()}
|
||||
{assign var='customFields' value=$cbgroup->custom_group_fields}
|
||||
|
||||
|
||||
<h2>{lang code='grp_crt_grp'}</h2>
|
||||
<form name="create_group_form form-vertical" class="create_group_form" method="post" action="">
|
||||
|
||||
<!-- Required Fields -->
|
||||
<fieldset>
|
||||
<legend>required fields</legend></fieldset>
|
||||
{foreach from=$requiredFields item=field}
|
||||
{$field.class='input-xxlarge'}
|
||||
|
||||
{if $field.type=='checkbox' || $field.type=='radiobutton'}
|
||||
{$field.sep=' '}
|
||||
|
||||
{if $field.type=='checkbox'}
|
||||
{$field.class='checkbox'}
|
||||
{else}
|
||||
{$field.class='radio'}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="{$field.id}">{$field.title}</label>
|
||||
<div class="controls">
|
||||
|
||||
{if $field.hint_1}
|
||||
<span class="help-block">{$field.hint_before}</span>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
{ANCHOR place=$field.anchor_before}
|
||||
{$formObj->createField($field)}
|
||||
{ANCHOR place=$field.anchor_after}
|
||||
|
||||
{if $field.hint_2}
|
||||
<span class="help-block">{$field.hint_after}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
|
||||
<!-- Required Fields -->
|
||||
|
||||
<div id="more_fields" >
|
||||
<!-- MORE Fields -->
|
||||
<fieldset>
|
||||
<legend>{lang code="More options"}</legend>
|
||||
</fieldset>
|
||||
{foreach from=$optionFields item=field}
|
||||
|
||||
{$field.class='input-xxlarge'}
|
||||
|
||||
{if $field.type=='checkbox' || $field.type=='radiobutton'}
|
||||
{$field.sep=' '}
|
||||
|
||||
{if $field.type=='checkbox'}
|
||||
{$field.class='checkbox'}
|
||||
{else}
|
||||
{$field.class='radio'}
|
||||
{/if}
|
||||
{/if}
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="{$field.id}">{$field.title}</label>
|
||||
<div class="controls">
|
||||
|
||||
{if $field.hint_1}
|
||||
<span class="help-block">{$field.hint_before}</span>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
{ANCHOR place=$field.anchor_before}
|
||||
{$formObj->createField($field)}
|
||||
{ANCHOR place=$field.anchor_after}
|
||||
|
||||
{if $field.hint_2}
|
||||
<span class="help-block">{$field.hint_after}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
<!-- MORE Fields -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="submit" name="create_group"
|
||||
value="{lang code='grp_crt_grp'}" class="btn btn-inverse btn-large">
|
||||
</div>
|
||||
</form>
|
|
@ -67,7 +67,7 @@
|
|||
<div class="controls">
|
||||
|
||||
{if $field.hint_1}
|
||||
<span class="help-block">{$field.hint_1}</span>
|
||||
<span class="help-block">{$field.hint_before}</span>
|
||||
{/if}
|
||||
|
||||
|
||||
|
@ -77,7 +77,7 @@
|
|||
{ANCHOR place=$field.anchor_after}
|
||||
|
||||
{if $field.hint_2}
|
||||
<span class="help-block">{$field.hint_2}</span>
|
||||
<span class="help-block">{$field.hint_after}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -109,7 +109,7 @@
|
|||
<div class="controls">
|
||||
|
||||
{if $field.hint_1}
|
||||
<span class="help-block">{$field.hint_1}</span>
|
||||
<span class="help-block">{$field.hint_before}</span>
|
||||
{/if}
|
||||
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
|||
{ANCHOR place=$field.anchor_after}
|
||||
|
||||
{if $field.hint_2}
|
||||
<span class="help-block">{$field.hint_2}</span>
|
||||
<span class="help-block">{$field.hint_after}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -170,3 +170,6 @@ box-shadow: 0px 2px 1px rgba(0,0,0,0.16)
|
|||
.group-video-block .video-thumb img{width: 100%; height:110px;}
|
||||
.group-video-info-cont{height: 80px; margin-bottom: 20px}
|
||||
.group-video-info-cont .title a{font-size: 12px; color: #333; text-decoration: none; font-weight: bold;}
|
||||
|
||||
.create_group_form legend{margin-left:0px}
|
||||
.create_group_form .form-actions .btn{width: 300px}
|
Loading…
Add table
Reference in a new issue