<div class="container-fluid">
    <div class="block-header">
        <h2>Tools > Auto Page Like</h2>
    </div>
    <div class="row">
        <div class="col-lg-6 col-md-6">
            <div class="card">
                <div class="header">
                    <h2>Auto Page Like</h2> 
                    <br>
                    <small>When a user creates a new account, choose which page you would like to get auto like.</small>
                </div>
                <div class="body">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <input type="text" id="users" name="users" class="form-control" value="<?php echo $wo['config']['auto_page_like']; ?>">
                                <label class="form-label">page name(s), sperated by a comma (,)</label>
                            </div>
                        </div>
                        <div class="clearfix"></div><br>
                        <small>This process might take some time, you can check for your site changes after few minutes.</small><br>
                  <button type="submit" class="btn btn-danger waves-effect waves-light m-t-20" id="users-btn">Save</button>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
    </div>
<script>
$(document).on('click', '#users-btn', function(event) {
	event.preventDefault();
	$(this).text('Please wait..');
	$.get(Wo_Ajax_Requests_File(), {f:'admin_setting', s: 'auto_page_like', users: $('#users').val()}, function(data, textStatus, xhr) {
		$('#users-btn').text('Saved!');
		setTimeout(function () {
			$('#users-btn').text('Save');
		}, 4000);
	});
});
</script>