imagecms/ImageCMS

View on GitHub
application/modules/callbacks/assets/admin/edit_theme.tpl

Summary

Maintainability
Test Coverage
<section class="mini-layout">
    <div class="frame_title clearfix">
        <div class="pull-left">
            <span class="help-inline"></span>
            <span class="title w-s_n">{lang('Сallback topic editing','admin')}</span>
        </div>

        <div class="pull-right">
            <span class="help-inline"></span>
            <div class="d-i_b">
                <a href="{$ADMIN_URL}callbacks/themes" class="pjax t-d_n m-r_15"><span class="f-s_14">←</span> <span class="t-d_u">{lang('Go back','admin')}</span></a>
                <button type="button" class="btn btn-small btn-primary action_on formSubmit" data-action="edit" data-form="#addCallbackStatusForm" data-submit><i class="icon-ok icon-white"></i>{lang('Save','admin')}</button>
                <button type="button" class="btn btn-small action_on formSubmit" data-action="close" data-form="#addCallbackStatusForm"><i class="icon-check"></i>{lang('Save and go back','admin')}</button>
                    {echo create_language_select($languages, $locale, '/admin/components/run/callbacks/updateTheme/'. $model->getId())}
            </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','admin')}
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="6">
                    <div class="inside_padd span9">
                        <form method="post" class="form-horizontal span9" action="{$ADMIN_URL}callbacks/updateTheme/{echo $model->getId()}/{$locale}" id="addCallbackStatusForm">
                            <div class="control-group">
                                <label class="control-label" for="Text">
                                    {lang('Title','admin')}:
                                </label>
                                <div class="controls">
                                    <input type="text" name="Text" id="Text" class="required" value="{echo $model->getText()}" />    
                                    <span class="must">*</span>
                                </div>
                            </div>
                            {form_csrf()}
                        </form>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</section>