{% extends 'TopxiaWebBundle::bootstrap-modal-layout.html.twig' %}

{% set modalSize = 'large' %}

{% block title %}修改{% endblock %}
{% block body %}

<form id="edit-form" class="form-horizontal" method="post" action="{{path('admin_coin_admin_edit',{id:id})}}">

  <div class="row form-group">
    <div class="col-md-3 control-label">
      <label for="name">类型</label>
    </div>
    <div class="col-md-7 controls">
      <input type="radio" id="type_0" name="type"  value="add" checked=true >
              <label for="type_0" class="required" style="padding: 0 20px 0 0px;">添加</label>
              <input type="radio" id="type_1" name="type"value="cut" >
              <label for="type_1"  >扣除</label>
    </div>
  </div>

  <div class="row form-group">
    <div class="col-md-3 control-label">
      <label for="amount">数量</label>
    </div>
    <div class="col-md-7 controls">
      <input type="text" id="amount" name="amount"  class="form-control" >
    </div>
  </div>

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

</form>
{% endblock %}

{% block footer %}
  <button id="create-btn" data-submiting-text="正在提交" type="submit" class="btn btn-primary pull-right" data-toggle="form-submit" data-target="#edit-form">提交</button>
  <button type="button" class="btn btn-link pull-right" data-dismiss="modal">取消</button>
  <script>app.load('coin/edit')</script>
{% endblock %}