@extends('theme.default.m.member.profile.frame')

@section('pageTitle','我的资料')
@section('headerTitle','我的资料')

@section('bodyContentMember')

    <div class="page-block">
        <div class="body">
            <form action="?" class="uk-form" method="post" data-ajax-form>
                <div class="line">
                    <div class="label">用户名:</div>
                    <div class="field">
                        @if(empty($_memberUser['username']))
                            <input type="text" name="username" class="uk-width-1-1" />
                            <div class="help">
                                用户名设定后将不能修改
                            </div>
                        @else
                            {{$_memberUser['username']}}
                        @endif
                    </div>
                </div>
                <div class="line">
                    <div class="label">性别:</div>
                    <div class="field">
                        <div class="widget-radio widget-radio-primary needsclickchild" data-tab-only>
                            <label><input type="radio" name="gender" value="{{\Edwin404\Member\Types\Gender::MALE}}" @if($_memberUser['gender']==\Edwin404\Member\Types\Gender::MALE) checked @endif /> 男</label>
                            <label><input type="radio" name="gender" value="{{\Edwin404\Member\Types\Gender::FEMALE}}" @if($_memberUser['gender']==\Edwin404\Member\Types\Gender::FEMALE) checked @endif /> 女</label>
                            <label><input type="radio" name="gender" value="{{\Edwin404\Member\Types\Gender::UNKNOWN}}" @if($_memberUser['gender']==\Edwin404\Member\Types\Gender::UNKNOWN) checked @endif /> 保密</label>
                        </div>
                    </div>
                </div>
                <div class="line">
                    <div class="label">真实姓名:</div>
                    <div class="field">
                        <input type="text" name="realname" value="{{$_memberUser['realname'] or ''}}" placeholder="" class="uk-width-1-1" />
                    </div>
                </div>
                <div class="line">
                    <div class="label">个性签名:</div>
                    <div class="field">
                        <input type="text" name="signature" value="{{$_memberUser['signature'] or ''}}" placeholder="" class="uk-width-1-1" />
                    </div>
                </div>
                <div class="line">
                    <div class="label">&nbsp;</div>
                    <div class="field">
                        <button type="submit" class="uk-button uk-button-primary uk-width-1-1">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

@endsection