
{% extends 'TopxiaAdminBundle:System:layout.html.twig' %}

{% block title %}虚拟币设置 - {{ parent() }}{% endblock %}

{% set script_controller = "coin/range" %}
{% set menu = 'coin' %}
{% set submenu = 'settings' %}

{% block main %}
    {% include 'TopxiaAdminBundle:Coin:coin-ul.html.twig' %}

  {{ web_macro.flash_messages() }}
  <form class="form-horizontal" method="post" id="coin-settings-form">
    <fieldset>
      <legend>虚拟币设置</legend>
    	<div class="form-group">
      	<div class="col-md-3 control-label">
        	<label>网校虚拟币</label>
      	</div>
      	<div class="controls col-md-4 radios">
      		{{ radios('coin_enabled', {'1':'开启', '0':'关闭'},coin_settings_posted.coin_enabled) }} 
        	<div class="help-block">开启后网校支付将通过虚拟币支付</div>
      	</div>
    	</div>  	
      <div class="form-group">
    		<div class="col-md-3 control-label">
    			<label for="coin_name">虚拟币名称</label>
    		</div>
    		<div class="controls col-md-4">
    			<input type="text" id="coin_name" name="coin_name" class="form-control" value="{{coin_settings_posted.coin_name}}">
    		</div>
      </div>
    </fieldset>


    <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">

    <div class="row form-group">
    	<div class="controls col-md-offset-3 col-md-8">
    		<button type="submit" class="btn btn-primary">提交更新</button>
    	</div>
    </div>
  </form>
{% endblock %}