Sha256: 8daa6b34340f2b67bee430fa1db0c0c584daa022e8571aa7b4054ad4a4394567
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
<%- province = '440000' city = '440300' district = '440305' provinces = ChinaCitys.list cities = ChinaCitys.list(province) districtes = ChinaCitys.list(city) %> <div class='rails-helper city-group'> <%= select_tag :province, options_for_select(provinces, province) , prompt: '--省份--', class: ['city-select', 'city-province'] %> <%= select_tag :city , options_for_select(cities, city) , prompt: '--城市--', class: ['city-select', 'city-city'] %> <%= select_tag :district, options_for_select(districtes, district), prompt: '--地区--', class: ['city-select', 'city-district'] %> </div> <div class='html-tag city-group'> <select class='city-select city-province'> <option>--省份--</option> <%= options_for_select(ChinaCitys.list, province) %> </select> <select class='city-select city-city'> <option>--城市--</option> <%= options_for_select(cities, city) %> </select> <select class='city-select city-district'> <option>--地区--</option> <%= options_for_select(districtes, district) %> </select> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
china_citys-0.0.6 | app/views/china_citys/data/index.html.erb |
china_citys-0.0.5 | app/views/china_citys/data/index.html.erb |
china_citys-0.0.4 | app/views/china_citys/data/index.html.erb |