<?php defined('IN_ECJIA') or exit('No permission resources.');?>
<!-- {extends file="ecjia-merchant.dwt.php"} -->

<!-- {block name="footer"} -->
<script type="text/javascript">
	ecjia.merchant.goods_type.init();
</script>
<!-- {/block} -->

<!-- {block name="home-content"} -->

<div class="page-header">
	<div class="pull-left">
		<h2><!-- {if $ur_here}{$ur_here}{/if} --></h2>
  	</div>
  	<div class="pull-right">
  		{if $action_link}
		<a href="{$action_link.href}" class="btn btn-primary data-pjax">
			<i class="fa fa-reply"></i> {$action_link.text}
		</a>
		{/if}
  	</div>
  	<div class="clearfix"></div>
</div>

<div class="row">
	<div class="col-lg-12">
      	<section class="panel">
        	<div class="panel-body">
            	<div class="form edit-page">
              		<form class="form-horizontal tasi-form" method="post" action="{$form_action}" name="theForm">
              			<div class="form-group">
              				<label class="control-label col-lg-2">{lang key='goods::goods_type.label_goods_type_name'}</label>
              				<div class="controls col-lg-6">
                            	<input class="form-control" name="cat_name" type="text" value="{$goods_type.cat_name|escape}" />
                          	</div>
                          	<span class="input-must">{lang key='system::system.require_field'}</span>
              			</div>
                                    
              			<div class="form-group">
              				<label class="control-label col-lg-2">{lang key='goods::goods_type.label_goods_type_status'}</label>
                     		<div class="col-lg-6">
                     			<input type="radio" id="enabled_2" name="enabled" value="1" {if $goods_type.enabled eq 1} checked {/if}>
                      			<label for="enabled_2">{lang key='goods::goods_type.arr_goods_status.1'}</label>
                      			
                  				<input type="radio" id="enabled_1" name="enabled" value="0" {if $goods_type.enabled eq 0} checked {/if}>
                      			<label for="enabled_1">{lang key='goods::goods_type.arr_goods_status.0'}</label>
        					</div> 
              			</div>
              			
              			<div class="form-group">
              				<label class="control-label col-lg-2">{lang key='goods::goods_type.label_attr_groups'}</label>
              				<div class="col-lg-6">
                            	<textarea class="form-control" name="attr_group" rows="5">{$goods_type.attr_group|escape}</textarea>
                          	</div>
              			</div>
              			
              			<div class="form-group">
              				<div class="col-lg-offset-2 col-lg-6">
                      			<button class="btn btn-info" type="submit">{lang key='system::system.button_submit'}</button>
                             	<input type="hidden" name="cat_id" value="{$goods_type.cat_id}" />
                         	</div>
              			</div>
              		</form>
              	</div>
          	</div>
    	</section>
	</div>
</div>
<!-- {/block} -->