<br />
{% include 'weixin.html' %}
{% if house_type == 1%}
{% include 'addFeature.html' %}
{% endif %}
<div class="row form-group">
    <div class="col-xs-4">
        <label for="baseCity" class=" control-label col-xs-3" >城市:</label>
        <p class="col-xs-3">
            <select id="baseCity" name="baseCity" class="form-control"  style="width:75px;">
                <option value="-1"> 城市</option>
                {% for item in city %}
                <option {{ item.id == result.city_id?"selected":"" }} value="{{ item.id }}">{{ item.value }}</option>
                {% endfor %}
            </select>
        </p>
        <p class="col-xs-3">
            <select id="baseAreaId" name="baseAreaId" class="form-control" style="width:90px; margin-left:5px">
                <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>
        </p>
        <p class="col-xs-3">
            <select id="basePlateId" name="basePlateId" class="form-control" style="width:90px; margin-left: 25px">
                <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>
        </p>
    </div>
    <div class="col-xs-4 ">
        <label for="address"  class="control-label col-xs-5">小区名称:</label>
        <p class="col-xs-7">
            <input name="community_name" type="text" value="{{result.community_name}}" class="form-control">
        </p>

    </div>
    <div class="col-xs-4">
        <label for="address" class="control-label col-xs-5" >地址:</label>
        <p class="col-xs-7">
            <input name="address" type="text" value="{{result.address}}" class="form-control">
        </p>
    </div>
</div>
<div class="row form-group">
    <div class="col-xs-4">
        <label for="suite" class="col-xs-5 control-label">门牌号码:</label>
        <p class="col-xs-7">
            <input name="suite" type="text" value="{{result.suite}}" class="form-control">
        </p>
    </div>
    <div class="col-xs-4">
        <label for="floor" class="col-xs-5 control-label">楼层:</label>
        <p class="col-xs-7">
            <input name="floor"  type="text" value="{{result.floor}}" class="form-control">
        </p>
    </div>
    <div class="col-xs-4">
        <label for="totalFloor"  class="col-xs-5 control-label">总层:</label>
        <p class="col-xs-7">
            <input type="text" name="totalFloor"value="{{result.totalFloor}}" class="form-control">
        </p>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <label for="faceto" class="col-xs-5 control-label">朝向:</label>
        <p class="col-xs-7">
            <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>
        </p>
    </div>
    <div class="col-xs-4">
        <label for="age" class="col-xs-5 control-label">建筑年代:</label>
        <p class="col-xs-7">
            <select name="age" id="pageAge" class="form-control">
                <option value="未知">未知</option>
            </select>
        </p>
    </div>
    <div class="col-xs-4 ">
        <label for="decoration" class="col-xs-5 control-label">装修程度:</label>
        <p class="col-xs-7">
            <select name="decoration" class="form-control">
                <option value="毛坯">毛坯</option>
                <option value="简单装修">简单装修</option>
                <option value="中等装修">中等装修</option>
                <option value="精装修">精装修</option>
                <option value="豪华装修">豪华装修</option>
            </select>
        </p>
    </div>
</div>
<div class="row form-group">
    <div class="col-xs-8">
        <label for="from" class="col-xs-2 control-label">户型:</label>
        <p class="col-xs-1">
            <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>
        </p>
        <p class="col-xs-1" style="margin-top: 5px;margin-left: 5px">室</p>
        <p class="col-xs-1">
            <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>
        </p>
        <p class="col-xs-1" style="margin-top: 5px;margin-left: 5px">厅</p>
        <p class="col-xs-1">
            <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>
        </p>
        <p class="col-xs-1 " style="margin-top: 5px;margin-left: 5px">卫</p>
        <p class="col-xs-1">
            <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>
        </p>
        <p class="col-xs-1" style="margin-top: 5px;margin-left: 5px">厨</p>
        <p class="col-xs-1">
            <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>
        </p>
        <p class="col-xs-1=2" style="margin-top: 5px;margin-left:5px">阳台</p>
    </div>
    <div class="col-xs-4">
        <label for="baseRoom" class="col-xs-5 control-label">建筑类型:</label>
        <p class="col-xs-7">
            <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>
        </p>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4">
        <label for="covered_area" class="col-xs-5 control-label">建筑面积:</label>
        <p class="col-xs-6">
            <input name="covered_area" type="text" value="{{result.covered_area}}" class="form-control">
        </p>
        <p class="col-xs-1" style="margin-top: 10px">
            &nbsp;m<sup>2</sup>
        </p>
    </div>
    <div class="col-xs-4 ">
        <label for="useArea"  class="col-xs-5 control-label">使用面积:</label>
        <p class="col-xs-6">
            <input type="text" name="useArea" value="{{result.useArea}}" class="form-control">
        </p>
        <p class="col-xs-1"  style="margin-top: 10px">
            &nbsp;m<sup>2</sup>
        </p>
    </div>
    <div class="col-xs-4 ">
        <label for="structure" class="col-xs-5 control-label">结构:</label>
        <p class="col-xs-7">
            <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>
        </p>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-4 ">
        <label for="propertyRight"  class="col-xs-5 control-label">产权:</label>
        <p class="col-xs-7">
            <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>
        </p>
    </div>
    <div class="col-xs-4">
        <label for="propertyProof" class="col-xs-5 control-label">产证:</label>
        <p class="col-xs-7">
            <input type="text" name="propertyProof" value="{{result.propertyProof}}" class="form-control">
        </p>
    </div>
    <div class="col-xs-4 ">
        <label class="control-label col-xs-5">
            <input type="checkbox" id="keyCheck" {{ result.key?"checked":"" }} class="form-control"> 钥匙:
        </label>
        <p class="col-xs-7">
            <input type="text" {% if not result.key %} disabled="true" {% endif %} id="key" name="key" value="{{result.key}}" class="form-control">
        </p>
    </div>
</div>

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

    {% if house_type == 1 %}
    <div class="col-xs-4">
        <label for="total_price" class="col-xs-5 control-label">总价:</label>
        <p class="col-xs-5">
            <input name="total_price" id="total_price" type="text" value="{{result.total_price}}" class="form-control">
        </p>
        <p class="col-xs-2" style="margin-top: 10px">
            &nbsp;万元
        </p>
    </div>
    <div class="col-xs-4 ">
        <label for="average_price" class="col-xs-5 control-label">单价:</label>
        <p class="col-xs-6">
            <input name="average_price" id="average_price" type="text" value="{{result.average_price}}" class="form-control">
        </p>
        <p class="col-xs-1" style="margin-top: 10px">
            &nbsp;元
        </p>
    </div>
    {% elseif house_type== 2 %}
    <div class="col-xs-4 ">
        <label for="rent" class="col-xs-5 control-label" >租金:</label>
        <div class="col-xs-5">
            <input name="rent" id="rent" type="text" value="{{result.rent}}" class="form-control">
        </div>
        <p class="col-xs-2" style="margin-top: 10px">
            &nbsp;元/月
        </p>
    </div>
    {% endif %}
</div>

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

<div class="row form-group">
    <div class="col-xs-4 ">
        <label for="traffic" class="col-xs-5 control-label">交通线路:</label>
        <p class="col-xs-7">
            <input name="traffic" type="text" value="{{result.traffic}}" class="form-control">
        </p>
    </div>
    <div class="col-xs-4 ">
        <label for="periphery" class="col-xs-5 control-label">周边配套:</label>
        <p class="col-xs-7">
            <input name="periphery" type="text" value="{{result.periphery}}" class="form-control">
        </p>
    </div>
    {% if house_type == 1%}
    <div class="col-xs-4 ">
        <label for="property_money"  class="col-xs-5 control-label">物业费:</label>
        <p class="col-xs-6">
            <input name="property_money" type="text" value="{{result.property_money}}" class="form-control" >
        </p>
        <p style="margin-top: 10px">
            &nbsp;元
        </p>
    </div>
    {% endif %}
</div>
{% if house_type == 1 %}
<div class="row form-group">
    <div class="col-xs-4">
        <label for="parking_spaces"  class="col-xs-5 control-label">车位:</label>
        <p class="col-xs-7">
            <input type="text" name="parking_spaces" value="{{result.parking_spaces}}" class="form-control">
        </p>
    </div>
    <div class="col-xs-4">
        <label for="mortgage"  class="col-xs-5 control-label">抵押:</label>
        <p class="col-xs-7">
            <input type="text" name="mortgage" value="{{result.mortgage}}" class="form-control">
        </p>
    </div>
</div>
{% endif %}

<div class="row form-group">
    <div class="col-xs-8">
        <label for="matching_facilities" class="col-xs-2 control-label">设施:</label>
        <p class="col-xs-10">
            <input type="text" name="matching_facilities" value="{{result.matching_facilities}}" class="form-control">
        </p>
    </div>
    <div class="col-xs-4">
        <label for="location" class="col-xs-5 control-label">地域坐标:</label>
        <p class="col-xs-7">
            <input name="location" id="location" type="text" value="{{result.location}}" class="form-control">
        </p>
    </div>
</div>

<div class="row form-group">
    <div class="col-xs-8">
        <label for="overview" class="col-xs-2 control-label">房源点评:</label>
        <p class="col-xs-10">
            <textarea name="overview" rows="4" cols="60" class="form-control">{{result.overview}}</textarea>
        </p>
    </div>
</div>

{% if not houseId %}
<div class="row form-group">
    <div class="col-xs-4 ">
        <label for="owner_name" class="col-xs-5 control-label">业主姓名:</label>
        <p class="col-xs-7">
            <input name="owner_name" id="owner_name" type="text" value="" class="form-control">
        </p>
    </div>
    <div class="col-xs-4">
        <label for="owner_phone" class="col-xs-5 control-label">业主电话:</label>
        <p class="col-xs-7">
            <input name="owner_phone" id="owner_phone" type="text" value="" class="form-control">
        </p>
    </div>
</div>
{% endif %}


