<br />
{% include 'weixin.html' %}
{% if house_type == 1%}
{% include 'addFeature.html' %}
{% endif %}
<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">城市</span>
            <span>
                <select id="baseCity" name="baseCity" class="form-control"  style="width: 75px;">
                    <option value="-1"> 城市</option>
                    {% for item in city %}
                    <option  {% if result.city_id %}{{ item.id == result.city_id ?"selected":"" }}{% else %}{{ item.id == 2 ?"selected" }}{% endif %} value="{{ item.id }}">{{ item.value }}</option>
                    {% endfor %}
                </select>
            </span>
            <span>
                <select id="baseAreaId" name="baseAreaId" class="form-control" style="width: 100px;">
                    <option value = "-1">区域</option>
                    {% if district %}
                    {% for item in district %}
                    <option {{ item.id == result.district_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
                    {% endfor %}
                    {% endif %}
                </select>
            </span>
            <span>
                <select id="basePlateId" name="basePlateId" class="form-control" style="width: 100px;">
                    <option value = "-1">板块</option>
                    {% if district %}
                    {% for item in plate %}
                    <option {{ item.id == result.plate_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
                    {% endfor %}
                    {% endif %}
                </select>
            </span>
        </div>

    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">小区名称</span>
            <input name="community_name" type="text" value="{{result.community_name}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">地址</span>
            <input name="address" type="text" value="{{result.address}}" class="form-control">
        </div>
    </div>
</div>
<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">门牌号码</span>
            <input name="suite" type="text" value="{{result.suite}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">楼层</span>
            <input name="floor" type="text" value="{{result.floor}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">总层</span>
            <input type="text" name="totalFloor" value="{{result.totalFloor}}" class="form-control">
        </div>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">朝向</span>
            <select name="faceto" class="form-control">
                <option value="其他">其他</option>
                <option value="东">东</option>
                <option value="南">南</option>
                <option value="西">西</option>
                <option value="北">北</option>
                <option value="南南">南南</option>
                <option value="东西">东西</option>
                <option value="东南">东南</option>
                <option value="东北">东北</option>
                <option value="西南">西南</option>
                <option value="西北">西北</option>
            </select>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">建筑年代</span>
            <select name="age" id="pageAge" class="form-control">
                <option value="未知">未知</option>
            </select>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">装修程度</span>
            <select name="decoration" class="form-control">
                <option value="毛坯">毛坯</option>
                <option value="简单装修">简单装修</option>
                <option value="中等装修">中等装修</option>
                <option value="精装修">精装修</option>
                <option value="豪华装修">豪华装修</option>
            </select>
        </div>
    </div>
</div>
<div class="row form-group">
    <div class="col-xs-8">
        <div class="input-group">
            <span class="input-group-addon color-red">户型</span>
            <select name="roomNum" class="form-control">
                <option value="0">0</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
                <option value="8">8</option>
            </select>
            <span class="input-group-addon">室</span>
            <select name="livingRoom" class="form-control">
                <option value="0">0</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
            </select>
            <span class="input-group-addon">厅</span>
            <select name="bathRoom" class="form-control">
                <option value="0">0</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
            </select>
            <span class="input-group-addon">卫</span>
            <select name="kitchen" class="form-control">
                <option value="0">0</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
            </select>
            <span class="input-group-addon">厨</span>
            <select name="balcony" class="form-control">
                <option value="0">0</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
            </select>
            <span class="input-group-addon">阳台</span>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">建筑类型</span>
            <select id="baseRoom" name="baseRoom" class="form-control">
                {% for item in room %}
                <option {{ item.id == result.room_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
                {% endfor %}
            </select>
        </div>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">建筑面积</span>
            <input name="covered_area" type="text" value="{{result.covered_area}}" class="form-control">
            <span class="input-group-addon">㎡</span>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">使用面积</span>
            <input type="text" name="useArea" value="{{result.useArea}}" class="form-control">
            <span class="input-group-addon">㎡</span>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">使用面积</span>
            <select name="structure" class="form-control">
                <option value="其他">其他</option>
                <option value="框架">框架</option>
                <option value="砖混">砖混</option>
                <option value="剪力">剪力</option>
                <option value="钢混">钢混</option>
                <option value="木混">木混</option>
                <option value="砖木">砖木</option>
            </select>
        </div>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">产权</span>
            <select name="propertyRight" class="form-control">
                <option value="个人产权">个人产权</option>
                <option value="单位产权">单位产权</option>
                <option value="售后产权">售后产权</option>
                <option value="家庭成员共有">家庭成员共有</option>
                <option value="使用权">使用权</option>
                <option value="小产权">小产权</option>
                <option value="协议房">协议房</option>
                <option value="私产">私产</option>
                <option value="公产">公产</option>
                <option value="合同发票">合同发票</option>
                <option value="三联单">三联单</option>
                <option value="其他">其他</option>
            </select>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">产证</span>
            <input type="text" name="propertyProof" value="{{result.propertyProof}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon widthAuto"><input type="checkbox" id="keyCheck" {{ result.key?"checked":"" }} class="form-control widthAuto"></span>
            <span class="input-group-addon"> 钥匙
            </span>
            <input type="text" {% if not result.key %} disabled="true" {% endif %} id="key" name="key" value="{{result.key}}" class="form-control">
        </div>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon widthAuto">
                <input type="checkbox" id="garageCheck" {{ result.garage?"checked":"" }} class="form-control widthAuto">
            </span>
            <span class="input-group-addon"> 车库
            </span>
            <input type="text" {% if not result.garage %}disabled="true"{% endif %} id="garage" name="garage" value="{{result.garage}}" class="form-control">
        </div>
    </div>

    {% if house_type == 1 %}
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">总价</span>
            <input name="total_price" id="total_price" type="text" value="{{result.total_price}}" class="form-control">
            <span class="input-group-addon">万元</span>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">单价</span>
            <input name="average_price" id="average_price" type="text" value="{{result.average_price}}" class="form-control">
            <span class="input-group-addon">元</span>
        </div>
    </div>
    {% elseif house_type== 2 %}
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">租金</span>
            <input name="rent" id="rent" type="text" value="{{result.rent}}" class="form-control">
            <span class="input-group-addon">元/月</span>
        </div>
    </div>
    {% endif %}
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">委托日</span>
            <input type="date" name="entrustDay" id="entrustDay" value="{{result.entrustDay}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">到期日</span>
            <input name="deadLine" type="date" id="deadLine" value="{{result.deadLine}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">街道</span>
            <input type="text" name="street" value="{{result.street}}" class="form-control">
        </div>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">交通线路</span>
            <input name="traffic" type="text" value="{{result.traffic}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">周边配套</span>
            <input name="periphery" type="text" value="{{result.periphery}}" class="form-control">
        </div>
    </div>
    {% if house_type == 1%}
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">物业费</span>
            <input name="property_money" type="text" value="{{result.property_money}}" class="form-control" >
            <span class="input-group-addon">元</span>
        </div>
    </div>
    {% endif %}
</div>
{% if house_type == 1 %}
<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">车位</span>
            <input type="text" name="parking_spaces" value="{{result.parking_spaces}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">抵押</span>
            <input type="text" name="mortgage" value="{{result.mortgage}}" class="form-control">
        </div>
    </div>
</div>
{% endif %}

<div class="row form-group">
    <div class="col-xs-8">
        <div class="input-group">
            <span class="input-group-addon">设施</span>
            <input type="text" name="matching_facilities" value="{{result.matching_facilities}}" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon">地域坐标</span>
            <input name="location" id="location" type="text" value="{{result.location}}" class="form-control">
        </div>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-8">
        <div class="input-group">
            <span class="input-group-addon color-red">房源点评</span>
            <textarea name="overview" rows="4" cols="60" class="form-control">{{result.overview}}</textarea>
        </div>
    </div>
</div>

{% if not houseId %}
<div class="row form-group">
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">业主姓名</span>
            <input name="owner_name" id="owner_name" type="text" value="" class="form-control">
        </div>
    </div>
    <div class="col-xs-4">
        <div class="input-group">
            <span class="input-group-addon color-red">业主电话</span>
            <input name="owner_phone" id="owner_phone" type="text" value="" class="form-control">
        </div>
    </div>
</div>
{% endif %}


