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

{% set modalSize = 'large' %}

{% block title %}{{'修改'|trans}}{% 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">{{'类型'|trans}}</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;">{{'添加'|trans}}</label>
              <input type="radio" id="type_1" name="type"value="cut" >
              <label for="type_1"  >{{'扣除'|trans}}</label>
    </div>
  </div>

  <div class="row form-group">
    <div class="col-md-3 control-label">
      <label for="amount">{{'数量'|trans}}</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="{{'正在提交'|trans}}" type="submit" class="btn btn-primary pull-right" data-toggle="form-submit" data-target="#edit-form">{{'提交'|trans}}</button>
  <button type="button" class="btn btn-link pull-right" data-dismiss="modal">{{'取消'|trans}}</button>
  
  <script>app.load('coin/edit');</script>
{% endblock %}