<div class="form-group" id="avatar-class"
{% if setting('default.defaultAvatar') == 0 %}
style="display:none;"
{% endif %}
>
  <div class="col-md-8 control-label"><b>自定义默认头像</b></div>
  <form id="avatar-form" method="post">
    <div class="controls col-md-8 controls">
      <img src="{{ system_default_path('avatar.png' ) }}">
    </div>

    <div class="form-group">
      <div class="col-md-2 control-label"></div>
      <div class="controls col-md-8 controls">
        <p class="help-block">你可以上传JPG、GIF或PNG格式的文件。</p>
      </div>
    </div>

    <div class="form-group">
      <div class="col-md-2 control-label"></div>
      <div class="controls col-md-8 controls">
        <a id="default-avatar-btn" 
          class="btn btn-default btn-sm"
          data-upload-token="{{ upload_token('system', 'image') }}"
          data-goto-url="{{path('admin_setting_default_avatar_crop')}}"
        >上传</a>
      </div>
    </div>
  </form>
</div>

<div class="form-group" id="system-avatar-class" 
{% if setting('default.defaultAvatar') == 1 %}
style="display:none;"
{% endif %}
>
  <div class="col-md-8 control-label"><b>系统默认头像</b></div>
    <div class="controls col-md-8 controls">
      <img src="{{ asset('assets/img/default/avatar.png') }}">
    </div>
</div>
