shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

ebay_template_form.twig (2599B)


      1 {{ header }}{{ column_left }}
      2 <div id="content">
      3   <div class="page-header">
      4     <div class="container-fluid">
      5       <div class="pull-right">
      6         <a onclick="$('#form').submit();" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-check-circle"></i></a>
      7         <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a>
      8       </div>
      9       <h1>{{ heading_title }}</h1>
     10       <ul class="breadcrumb">
     11         {% for breadcrumb in breadcrumbs %}
     12         <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
     13         {% endfor %}
     14       </ul>
     15     </div>
     16   </div>
     17   <div class="container-fluid">
     18 	{% if error_warning %}
     19 		<div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
     20 		  <button type="button" class="close" data-dismiss="alert">&times;</button>
     21 		</div>
     22 	{% endif %}
     23     <div class="panel panel-default">
     24       <div class="panel-heading">
     25         <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_manage }}</h3>
     26       </div>
     27       <div class="panel-body">
     28         <form action="{{ btn_save }}" method="post" enctype="multipart/form-data" id="form" class="form-horizontal">
     29           <input type="hidden" name="template_id" value="{{ template_id }}" />
     30             <div class="form-group">
     31               <label class="col-sm-2 control-label" for="name">{{ entry_template_name }}</label>
     32               <div class="col-sm-10">
     33                 <input type="text" name="name" value="{{ name }}" placeholder="{{ entry_template_name }}" id="name" class="form-control" />
     34               </div>
     35             </div>
     36             <div class="form-group">
     37               <label class="col-sm-2 control-label" for="code">{{ entry_template_html }}</label>
     38               <div class="col-sm-10">
     39                 <textarea name="html" cols="100" rows="100" placeholder="{{ entry_template_html }}" id="code" class="form-control">{{ html }}</textarea>
     40               </div>
     41             </div>
     42         </form>
     43       </div>
     44     </div>
     45   </div>
     46 </div>
     47 <style type="text/css"> .CodeMirror {border: 1px solid #888; height:1000px; width:100%;} </style>
     48 <script type="text/javascript"><!--
     49   var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
     50     mode: 'text/html',
     51     autoCloseTags: true,
     52     lineNumbers: true,
     53     tabMode: "indent",
     54     lineWrapping: true,
     55     indentUnit: 2,
     56     theme: 'monokai',
     57     autofocus: true
     58   });
     59 //--></script>
     60 {{ footer }}