@using MrCMS.Helpers
@model MrCMS.Web.Apps.Amazon.Models.AmazonListingModel
@{
    ViewBag.Title = "Choose Product Variants for new Amazon Listings";
}

 @using (Html.BeginForm("AddMany", "Listing", new {id = ""}, FormMethod.Post, new {id = "add-listing-form"}))
 {
     <fieldset>
         <legend>Enter Product Variant SKUs which will be used to create Amazon Listings
             <span class="btn-group  display-inline  pull-right">
                 @Html.ActionLink("Cancel", "Edit", "ListingGroup", new {id = Model.AmazonListingGroup.Id}, new {@class = "btn btn-danger"})
             </span>
         </legend>

         <div class="row">
             <div class="col-lg-12">
                 <div class="form-group">
                     @Html.HiddenFor(x => x.AmazonListingGroup.Id)
                     @Html.TextAreaFor(x => x.ChosenProductVariants, new { @class = "form-control" })
                 </div>
             </div>
         </div>
         <br/>
         <div class="row">
             <div class="col-lg-12">
                 <button type="submit" class="btn btn-primary">Save & Publish on Amazon</button>
             </div>
         </div>
     </fieldset>
 }

@{ Html.IncludeScript("~/Apps/Amazon/Areas/Admin/Content/Scripts/custom/listings.js"); }