imagecms/ImageCMS

View on GitHub
application/modules/cfcm/templates/admin/_form.tpl

Summary

Maintainability
Test Coverage
<section class="mini-layout">
    <div class="frame_title clearfix">
        <div class="pull-left w-s_n">
            <span class="help-inline"></span>
            <span class="title w-s_n">{echo $form->title}</span>
        </div>
        <div class="pull-right">
            <span class="help-inline"></span>
            <div class="d-i_b">
                <a href="/admin/components/cp/cfcm/index{if $form->type == "group"}#fields_groups{else:}#additional_fields{/if}" class="t-d_n m-r_15 pjax"><span class="f-s_14">←</span> <span class="t-d_u">{lang("Back", 'admin')}</span></a>
                <button type="button" class="btn btn-small action_on formSubmit {if strstr($CI->uri->segment(5), 'create')}btn-success{else:}btn-primary{/if}"  data-action="edit" data-form="#{echo $f_id = uniqid()}"><i class="icon-plus-sign icon-white"></i>{if strstr($CI->uri->segment(5), 'create')}{lang("Create", 'admin')}{else:}{lang("Save", 'cfcm')}{/if}</button>
                <button type="button" class="btn btn-small action_on formSubmit btn-default" data-action="close" data-form="#{echo $f_id}"><i class="icon-check"></i>{if strstr($CI->uri->segment(5), 'create')}{lang('Create and exit', 'admin')}{else:}{lang("Save and exit", 'cfcm')}{/if}</button>
            </div>
        </div>
    </div>
    <table class="table  table-bordered table-hover table-condensed content_big_td m-t_10">
        <thead>
            <tr>
                <th colspan="6">
                    {lang("Information", 'cfcm')}
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="6">
                    <div class="inside_padd">
                        <form action="{echo $form->action}" method="post" id="{$f_id}" class="form-horizontal additionals-one-fields">
                            {foreach $form->asArray() as $f}
                                <div class="control-group">
                                    <label class="control-label">
                                        {$f.label}
                                    </label>
                                    <div class="controls">
                                        {$f.field}
                                        {$f.help_text}
                                    </div>
                                </div>
                            {/foreach}
                        </form>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</section>