<element_template et_MyContent_DaysOfWeek>
	<CHECKBOX chk_DaysOfWeek  bmp="$chk_lb_0.bmp#2" z=1 x=115 y=0  boolmodel="*.blocked" clickmodel="mydata.blocked_roads.current_weekdays.setcurrent $i" onrelease='lstMyContent_HoursOfDay.redraw'>
	<BUTTON   xxx  template=btn_lb5a  bmp="btn_lb_5d.bmp#2" z=0 x=0 textmodel_wstr="*.name" clickmodel="mydata.blocked_roads.current_weekdays.setcurrent $i" selectable onrelease='lstMyContent_HoursOfDay.redraw'>
</element_template>
  
<element_template et_MyContent_HoursOfDay>
	<TEXT   xxx x=4 y=10 w=60 valign="CENTER" fonttype=bw textmodel_wstr="*.long_name" watchstate=bt_HoursOfDay>
	<CHECKBOX xxx bmp="$chk_lb_0.bmp#2" x=58 y=0 z=1 boolmodel="*.blocked" onrelease='lstMyContent_DaysOfWeek.redraw'>
</element_template>
  
<layer ui_MyContent_DaysOfWeek z=35>
	<LIST   lstMyContent_DaysOfWeek x=44 y=18 cellw=159 cellh=35 row=4 col=2 showselection=1 element_template="et_MyContent_DaysOfWeek" listmodel="mydata.blocked_roads.current_weekdays">
	<BUTTON bt_Show_Block template=footer2_1a  text="Map" onrelease='run sc_btnMBR_ShowOnMap'>
	<BUTTON bt_Create_Block template=footer2_1a  text="Create" onrelease='run sc_CreateNewRoadBlock'>
	<BUTTON bt_Delete_Block template=footer2_1a  text="Delete" onrelease='run btnPMO_RemoveBlock_OnRelease'>
	<BUTTON xxx template=footer4_3a  text="Select All" onrelease='run sc_select_all_block 1'>
	<BUTTON xxx template=footer4_4a  text="Clear All" onrelease='run sc_select_all_block 0'>

	<BUTTON bt_HoursOfDay template=btn_5a  x=24  y=160 onrelease='run sc_HOURSOFDAY_block'>
	<LIST   lstMyContent_HoursOfDay x=24 y=160 cellw=86 cellh=35 row=1 col=4 element_template="et_MyContent_HoursOfDay" listmodel="mydata.blocked_roads.current_periods">
</layer>


<element_template et_MyContent_BlockedRoads>
	<BUTTON xxx template=btn_4d iconspr="x.bmp" text="" clickmodel="mydata.blocked_roads.list.setcurrent $i" onrelease='run sc_DeleteBlockedRoadItem' enabledmodel="!*.isempty" usefocus=0>
	<BUTTON xxx template=btn_4b textmodel_wstr="*.name" clickmodel="mydata.blocked_roads.list.setcurrent $i" onrelease='run sc_EditBlockedRoad' enabledmodel="!*.isempty">
</element_template>

<layer ui_MyContent_BlockedRoads z=35>    
	<LIST   lstMyContent_BlockedRoads template=tlist element_template="et_MyContent_BlockedRoads" listmodel="mydata.blocked_roads.list">
	<TEXT   xxx template=pageindex textmodel_wstr="ui.lstMyContent_BlockedRoads.page_counter">
	<BUTTON xxx template=prevpage clickmodel="ui.lstMyContent_BlockedRoads.prevpage" enabledmodel="ui.lstMyContent_BlockedRoads.prevpage.valid" template=slow_repeat>
	<BUTTON xxx template=nextpage clickmodel="ui.lstMyContent_BlockedRoads.nextpage" enabledmodel="ui.lstMyContent_BlockedRoads.nextpage.valid" template=slow_repeat>

	<BUTTON xxx template=footer2_1a text="Clear All" onrelease='run sc_DeleteAllBlocks' enabledmodel="!mydata.blocked_roads.list.isempty">
</layer>
