<div id="SectionAdminNotes" class="insights_widget card w-100 p-0">
	<div class="card-header">
		<h5 class="card-title">{{ strings.note_title }}</h5>
		<h6 class="card-subtitle text-muted">{{ strings.use_this_area }}</h6>
	</div>
	<div class="card-body overflow_container">
		<form class="form-inline" id="NewAdminNote" action="#" method="post" autocomplete="off">
			<label class="sr-only" for="AdminNote">{{ strings.note_title }}</label>
			<div class="input-group w-100">
				<div class="input-group-prepend">
					<div class="input-group-text" style="border-radius: 0">{{ strings.note_new }}:</div>
				</div>
				<input class="form-control" id="AdminNote" name="admin_note" type="text"
					   placeholder="{{ strings.note_enter }}"
				/>
				<div class="input-group-append">
					<button type="submit" class="btn btn-info action insert" style="border-radius: 0;" name="subbutt"
					>{{ strings.note_add }}</button>
				</div>
			</div>
		</form>

		<div id="TableAdminNotes" class="p-0"></div>

	</div>
</div>
<script>
	var $oTableAdminNotes = jQuery( '#TableAdminNotes' ).icwpWpsfAjaxTable(
		{
			'ajax_render':{{ ajax.render_table_adminnotes|raw }}
		}
	);
	jQuery( '#SectionAdminNotes' ).icwpWpsfTableActions(
		{
			'table': $oTableAdminNotes,
			'ajax_item_action':{{ ajax.item_action_notes|raw }},
			'ajax_item_delete':{{ ajax.item_delete|raw }},
			'ajax_item_insert':{{ ajax.item_insert|raw }},
			'ajax_bulk_action':{{ ajax.bulk_action|raw }},
			'forms': {
				'insert': jQuery( 'form#NewAdminNote' )
			}
		}
	);
</script>