<% if (m.mode == 'new_fields') { %>
	<div id="organizer_field_type_list_outer" class="field_type_list_outer">
		<div class="field_type_list_header field_type_section">
			<h5>Add fields</h5>
		</div>
		<h6>Simple</h6>
		<div class="field_type_list field_type_section">
			<div class="field_type" data-type="text"><span class="text"></span><h4>Text</h4></div>
			<div class="field_type" data-type="textarea"><span class="textarea"></span><h4>Textarea</h4></div>
			<div class="field_type" data-type="checkbox"><span class="checkbox"></span><h4>Checkbox</h4></div>
			<div class="field_type" data-type="checkboxes"><span class="checkboxes"></span><h4>Checkbox group</h4></div>
			<div class="field_type" data-type="select"><span class="select"></span><h4>Select list</h4></div>
			<div class="field_type" data-type="radios"><span class="radios"></span><h4>Radios</h4></div>
		</div>
		<h6>Fancy</h6>
		<div class="field_type_list field_type_section">
			<% if (m.use_groups_field) { %>
				<div class="field_type" data-type="group"><span class="group"></span><h4>Group</h4></div>
				<div class="field_type" data-type="consent"><span class="consent"></span><h4>Consent</h4></div>
			<% } %>
			<div class="field_type" data-type="date"><span class="date"></span><h4>Date</h4></div>
			<div class="field_type" data-type="url"><span class="url"></span><h4>URL</h4></div>
			<div class="field_type" data-type="editor"><span class="editor"></span><h4>Editor</h4></div>
			<div class="field_type" data-type="file_picker"><span class="file_picker"></span><h4>File picker</h4></div>
		</div>
		<h6>Centralised data source</h6>
		<div id="organizer_centralised_field_type_list" class="field_type_list field_type_section">
			<div class="field_type" data-type="centralised_radios"><span class="centralised_radios"></span><h4>Radios</h4></div>
			<div class="field_type" data-type="centralised_select"><span class="centralised_select"></span><h4>Select list</h4></div>
			<div class="field_type" data-type="dataset_select"><span class="dataset_select"></span><h4>Dataset select</h4></div>
			<div class="field_type" data-type="dataset_picker"><span class="dataset_picker"></span><h4>Dataset picker</h4></div>
		</div>
	</div>
<% } else if (m.mode == 'edit_field' || m.mode == 'edit_page') { %>
	<div id="organizer_field_details_outer" class="field_details_outer">
		<div id="organizer_field_details_inner" class="field_details_inner">
			<form id="organizer_field_details_form">
				<div class="field_details_header">
					<div id="zenario_field_details_header_content" class="field_details_header_content">
						<div class="field_name">
							<h5>{{m.label|e}}</h5>
						</div>
						<div class="field_buttons">
							<span class="add_new_field">Done</span>
						</div>
						<% if (m.mode == 'edit_field') { %>
							<div class="field_info">
								<% if (m.field_name) { %>
									<span class="field_code_name_message">{{m.field_name|e}}</span>
								<% } else if (m.db_column) { %>
									<span class="field_code_name_message">{{m.db_column|e}}</span>
								<% } %>
								<span class="field_type_message">{{m.type|e}} {{m.record_count|e}}</span>
							</div> 
						<% } %>
					</div>
				</div>
				<% if (!m.hide_tab_bar) { %>
					<div id="organizer_field_details_tabs" class="field_details_tabs">
						<!-- TUIX tabs -->
					</div>
				<% } %>
				<div id="organizer_field_details" class="field_details">
					<!-- TUIX fields -->
				</div>
				
				<% if (m.mode == 'edit_page' && !m.is_system_field) { %>
					<div class="bottom_buttons">
						<input id="organizer_remove_form_tab" type="button" value="Delete tab"/>
					</div>
				<% } %>
			</form>
		</div>
	</div>
<% } %>