<?xml version="1.0" encoding="UTF-8"?>
<form class="wpfdAddonparams" method="POST" action="admin.php?page=wpfdAddon-aws&amp;task=aws.saveAwsParams">
    <label>Amazon S3 configuration</label>
    <input
        type="heading3"
        label="Amazon S3"
        value=""
        class="ju-heading"
        namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
        type="Importantnote"
        note="The plugin folders and files mapping with S3 files is automatic. Please do not rename the original files from the S3 server (file titles in the plugin are editable, though), or you may experience missing files or folders on the website frontend."
        namespace="Joomunited\WP_File_Download_Cloud_Addon\Admin\Fields\"
    />
    <input
        name="awsKey"
        type="text2full"
        label="Access Key ID"
        value=""
        class="ju-input ju-large-text"
        help="Insert your Access Key ID here. You can find this ID in the Amazon Console"
        namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />
    <input
        name="awsSecret"
        type="text2full"
        label="Secret Access Key"
        value=""
        class="ju-input ju-large-text"
        help="Insert your Secret Access Key here. You can find this secret in the Amazon Console"
        namespace="Joomunited\WP_File_Download\Admin\Fields\"
    />

    <input
        name="awsBucketName"
        type="Awsbucketname"
        label="Bucket Name"
        value=""
        class="ju-input ju-large-text"
        error_message=""
        namespace="Joomunited\WP_File_Download_Cloud_Addon\Admin\Fields\"
    />

    <input 
        type="hidden"
        name="awsRegion"
        default="us-east-1"
        namespace="Joomunited\WP_File_Download_Cloud_Addon\Admin\Fields\"
    />

    <input type="radio2" name="awsSyncMethod" label="Sync Method" class="ju-input"
           help="The Amazon S3 synchronization method. Default is AJAX, advanced user only."
           namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option type="radio" class="ju-radiobox" name="awsSyncMethod" value="sync_page_curl">Use Curl</option>
        <option type="radio" class="ju-radiobox" name="awsSyncMethod" value="sync_page_curl_ajax">Use Ajax</option>
        <option type="radio" class="ju-radiobox" name="awsSyncMethod" value="setup_on_server">Crontab url</option>
    </input>

    <input type="select2" name="awsSyncTime" label="Sync periodicity" class="ju-input ju-large-text"
           default="30"
           help="Automatic Amazon S3 content synchronization delay. Default is 30 minutes."
           namespace="Joomunited\WP_File_Download\Admin\Fields\"
    >
        <option value="never">Never</option>
        <option value="5">5 Mins</option>
        <option value="15">15 Mins</option>
        <option value="30">30 Mins</option>
        <option value="60">1 Hour</option>
        <option value="300">5 Hour</option>
        <option value="600">10 Hour</option>
        <option value="1440">24 Hour</option>
        <option value="2880">48 Hour</option>
    </input>
    <input
        name="last_log"
        type="hidden"
        namespace="Joomunited\WP_File_Download_Cloud_Addon\Admin\Fields\"
        default=""/>
    <input
        name="awsConnectedBy"
        type="hidden"
        namespace="Joomunited\WP_File_Download_Cloud_Addon\Admin\Fields\"
        default=""/>
    <button
        type="submit"
        value="Save AWS settings"
        class="ju-button orange-button ju-button-inline aws-submit"
        id="submitAWS"
        namespace="Joomunited\WP_File_Download\Admin\Fields\"/>
</form>
