<div class="row-fluid">

    <form class="form-horizontal span12">

        <fieldset>

            <legend>Airlines Details</legend>
            <br/>

            <div class="row">
                <div class="span8">

                    <div class="control-group">
                        <label for="airlinesId" class="control-label">Id:</label>

                        <div class="controls">
                            <input id="airlinesId" name="id" type="text" value="<%= _id === null ? '' : _id %>"
                                   disabled/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label for="name" class="control-label">Name:</label>

                        <div class="controls">
                            <input type="text" id="name" name="name" value="<%= name %>"/>
                            <span class="help-inline"></span>
                        </div>
                    </div>

                    <div class="control-group">
                        <label for="city" class="control-label">City:</label>

                        <div class="controls">
                            <input type="text" id="city" name="city" value="<%= city %>"/>
                            <span class="help-inline"></span>
                        </div>
                    </div>

                    <div class="control-group">
                        <label for="country" class="control-label">Country:</label>

                        <div class="controls">
                            <input type="text" id="country" name="country" value="<%= country %>"/>
                            <span class="help-inline"></span>
                        </div>
                    </div>

                    <div class="control-group">
                        <label for="region" class="control-label">Region:</label>

                        <div class="controls">
                            <input type="text" id="region" name="region" value="<%= region %>"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label for="year" class="control-label">Year:</label>

                        <div class="controls">
                            <select class="input-small" id="year" name="year" value="<%= year %>">
                                <option
                                <%= year == 2012?'selected':'' %>>2012</option>
                                <option
                                <%= year == 2011?'selected':'' %>>2011</option>
                                <option
                                <%= year == 2010?'selected':'' %>>2010</option>
                                <option
                                <%= year == 2009?'selected':'' %>>2009</option>
                                <option
                                <%= year == 2008?'selected':'' %>>2008</option>
                                <option
                                <%= year == 2007?'selected':'' %>>2007</option>
                            </select>
                        </div>
                    </div>

                    <div class="control-group">
                        <label for="description" class="control-label">Notes:</label>

                        <div class="controls">
                            <textarea id="description" name="description" style="width: 90%;" rows="6"><%= description
                                %></textarea>
                        </div>
                    </div>

                </div>

                <div class="span4">
                    <div class="well" style="width: 180px;text-align: center;width:50%;margin: 0px auto;">
                        <p><img id="picture" width="180" src="<%= picture === null ? 'pics/generic.jpg' : 'pics/' + picture %>"/></p>
                        <p style="color:#999;">To change the picture, drag a new picture from your file system onto the box above.</p>
                    </div>
                </div>

            </div>

        </fieldset>

        <div class="form-actions">
            <a href="#" class="btn btn-primary save">Save</a>
            <a href="#" class="btn delete">Delete</a>
        </div>

 <!--   <div id="ad1">
       <p><strong>Google Adsense Ad1 goes Here.</strong></p>
	     <ul>
	        <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    </ul>
	  </div>

    <div id="ad2">
       <p><strong>Google Adsense Ad1 goes Here.</strong></p>
	     <ul>
	        <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    </ul>
	  </div>

    <div id="ad3">
       <p><strong>Google Adsense Ad1 goes Here.</strong></p>
	     <ul>
	        <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    </ul>
	  </div>

    <div id="ad4">
       <p><strong>Google Adsense Ad1 goes Here.</strong></p>
	     <ul>
	        <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    </ul>
	  </div>
-->
    <div id="ad5">
       <p><strong>Google Adsense Ad1 goes Here.</strong></p>
	     <ul>
	        <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    </ul>
	  </div>

    <div id="ad6">
       <p><strong>Google Adsense Ad1 goes Here.</strong></p>
	     <ul>
	        <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
		      <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    <li><a href="http://www.adlink1.com">Adsense Google Ads</a></li>
			    </ul>
	  </div>

    </form>

</div>

<div class="row-fluid status-bar">
    <div class="span12">
        <div class="alert alert-success" style="display: none">
            <b>Success!</b> Airlines saved successfully
        </div>
    </div>
</div>
<script>
  $(function () {
  console.log("AirlinesView I am here");
  })
</script>	
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
		  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
			  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

				  ga('create', 'UA-48099344-1', 'airlinestracker.com');
					  ga('send', 'pageview');

						</script>

