<form bindsubmit="formSubmit" bindreset="formReset">
<input hidden='true' type='text' name="id" value='{{info.id}}'></input>
<input name="cardType" type='text' hidden='true' value='{{cardType}}'></input>
<view class='bar-bottom buttons-row'>
  <button id="deletParentInfo" bindtap='del' class='button button-light' hidden="{{info.act == 'edit' ? false : true}}">删除</button>
  <button id="saveParentInfo" formType="submit" class='button button-subtitle'>保存</button>
</view>
<view class='content'>
  <view class='content-box content-pad'>
    <view class='add-title'>
      <text class="icon icon-guarder middle"></text><text class="middle">监护人信息</text>
    </view>
    <view class='list-block add-box'>
      <view class='item-content'>
        <view class='item-title label'>姓名</view>
        <view class='item-input'>
          <input type="text" name="name" value="{{info.name}}" placeholder='请输入监护人姓名' ></input>
        </view>
      </view>
      <view class='item-content'>
        <view class='item-title label'>证件类型</view>
        <view class='item-input'>
          <input type="text" bindtap='selectCard' disabled value="{{cardTypeStr}}"></input>
        </view>
      </view>
      <view class='item-content'>
        <view class='item-title label'>{{cardTypeStr}}</view>
        <view class='item-input'>
          <input type="text" name="idcard" value="{{info.idcard}}"  placeholder='请输入证件号码' type="{{cardTypeStr == '内地身份证号'?'idcard':'text'}}" bindinput="cardBlur" maxlength="{{cardTypeStr == '内地身份证号'?'18':'50'}}"></input>
        </view>
      </view>
      <view class='item-content'>
        <view class='item-title label'>出生日期</view>
          <picker name="birthday" class='item-input' mode="date" value="{{birthday}}" bindchange="bindDateChange">
            <view class="item-date">{{birthday}}</view>
          </picker>
      </view>
      <view class='item-content'>
        <view class='item-title label'>性别</view>
        <radio-group name="sex" class='item-input label-checkbox' bindchange="changeSex">
            <radio value="1" color="#EE3A43" checked="{{sex == 1 ? true:false}}"/>男
            <radio value="0" color="#EE3A43" checked="{{sex == 0 ? true:false}}"/>女
        </radio-group>
      </view>
    </view>
  </view>
</view>
</form>