Saturday, April 25, 2015

Flight editor template

@model RegMSW.Web.Models.flightInfo
  
    <div class="form-inline">
            @Html.ValidationSummary(true, "", new { @class = "text-danger" })
            <div class="form-group">
                @Html.LabelFor(model => model.pickup, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-1">
                    <div class="checkbox">
                        @Html.EditorFor(model => model.pickup)
                        @Html.ValidationMessageFor(model => model.pickup, "", new { @class = "text-danger" })
                    </div>
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.airport, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-1">
                    @Html.EditorFor(model => model.airport, new { htmlAttributes = new { size = 3, @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.airport, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.airline, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-1">
                    @Html.EditorFor(model => model.airline, new { htmlAttributes = new { size = 8, @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.airline, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.fligtNo, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-1">
                    @Html.EditorFor(model => model.fligtNo, new { htmlAttributes = new { size = 6, @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.fligtNo, "", new { @class = "text-danger" })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(model => model.fligtDateTime, htmlAttributes: new { @class = "control-label col-md-2" })
                <div class="col-md-1">
                    @Html.EditorFor(model => model.fligtDateTime, new { htmlAttributes = new { size = 17, @class = "form-control" } })
                    @Html.ValidationMessageFor(model => model.fligtDateTime, "", new { @class = "text-danger" })
                </div>
            </div>
        </div>

No comments:

Post a Comment