<?php 
   Template::show('ICSFleet/header.php');
   ?>
<div class="row">
	<div class="col-md-12">
		<div class="block">
			<div class="block-title">
				<h3><strong>Upload</strong> screenshots for <?php echo $registration; ?></h3>
			</div>
			<form action="<?php echo url('/ICSFleet/process_screenshot');?>" class="form-horizontal" method="post" enctype="multipart/form-data">
			<div class="block-header">
				<h3><strong>Rules</strong></h3>
			</div>
				<ul>
                    <li>Upload must ONLY be a <span class="text-danger">flight simulator</span> screenshot.</li>
                    <li>Uploading screenshots of liveries other than that of the fleet of <?php echo SITE_NAME; ?> will be treated as spam and deleted!</li>
                    <li>By uploading your screenshot to the <?php echo SITE_NAME; ?> database, you give your full consent for the staff to use your screenshot for media purposes.</li>
                    <li>You will be given full credit, if the staff decides to use your upload on the website or on their social media accounts.</li>
                </ul>
                
                <hr />
            
            <div class="form-group">
              <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size ?>">
              <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
                    <label class="col-md-3 control-label" for="file">Choose Screenshot (.png, .jpg, .bmp, .gif)</label>
              <div class="col-md-3">
                <input class="mail btn btn-md btn-default" id="file" type="file" name="uploadedfile" />
              </div>
            </div>
              
			
			<div class="form-group">
              <label class="col-md-3 control-label" for="description">Aircraft Registration</label>
              <div class="col-md-4">
              	<input type="text" class="form-control" value="<?php echo $registration; ?>" disabled>
              	<input type="hidden" name="registration" value="<?php echo $registration; ?>">
              </div> 
            </div> 
            
            <div class="form-group">
              <label class="col-md-3 control-label" for="description">Description </label>
              <div class="col-md-4">
                <textarea class="mail form-control" name="description" placeholder="Additional information about the screenshot "rows="2" cols="70"></textarea>
              </div>
            </div> 
            
             <div class="form-group text-center">
              <input type="hidden" name="action" value="save_upload" />
              <input class="mail btn btn-md btn-primary" type="submit" value="Upload">
            </div> 
			</form>
		</div>
	</div>
</div>
