@model Ninesky.Models.CommonModel
@{
ViewBag.Title = "进行咨询";
}
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<
h4
>进行咨询</
h4
>
<
hr
/>
<
div
class
=
"form-horizontal"
>
@Html.ValidationSummary(true)
<
div
class
=
"form-group"
>
<
label
class
=
"control-label col-sm-2"
>类型</
label
>
<
div
class
=
"col-sm-10"
>
<
input
id
=
"CategoryID"
name
=
"CategoryID"
data-options
=
"url:'@Url.Action("
JsonComboBox", "Category", new {
model
=
"Consultation"
})',valueField:'CategoryID',textField:'Name'"
class
=
"easyui-combobox"
style
=
"height: 34px; width: 280px;"
/>
@Html.ValidationMessageFor(model => model.CategoryID)
</
div
>
</
div
>
<
div
class
=
"form-group"
>
@Html.LabelFor(model => model.Title, new { @class = "control-label col-sm-2" })
<
div
class
=
"col-sm-10"
>
@Html.TextBoxFor(model => model.Title, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Title)
</
div
>
</
div
>
<
div
class
=
"form-group"
>
@Html.LabelFor(model => model.Consultation.Name, new { @class = "control-label col-sm-2" })
<
div
class
=
"col-sm-10"
>
@Html.TextBoxFor(model => model.Consultation.Name, new { @class = "form-control", @readonly = "readonly" })
@Html.ValidationMessageFor(model => model.Consultation.Name)
</
div
>
</
div
>
<
div
class
=
"form-group"
>
@Html.LabelFor(model => model.Consultation.QQ, new { @class = "control-label col-sm-2" })
<
div
class
=
"col-sm-10"
>
@Html.TextBoxFor(model => model.Consultation.QQ, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Consultation.QQ)
</
div
>
</
div
>
<
div
class
=
"form-group"
>
@Html.LabelFor(model => model.Consultation.IsPublic, new { @class = "control-label col-sm-2" })
<
div
class
=
"col-sm-10"
>
@Html.RadioButtonFor(model => model.Consultation.IsPublic,true) 公开
@Html.RadioButtonFor(model => model.Consultation.IsPublic, false) 仅自己查看
@Html.ValidationMessageFor(model => model.Consultation.IsPublic)
</
div
>
</
div
>
<
div
class
=
"form-group"
>
@Html.LabelFor(model => model.Consultation.Email, new { @class = "control-label col-sm-2" })
<
div
class
=
"col-sm-10"
>
@Html.TextBoxFor(model => model.Consultation.Email, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Consultation.Email)
</
div
>
</
div
>
<
div
class
=
"form-group"
>
@Html.LabelFor(model => model.Consultation.Content, new { @class = "control-label col-sm-2" })
<
div
class
=
"col-sm-10"
>
@Html.TextAreaFor(model => model.Consultation.Content, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Consultation.Content)
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-offset-2 col-sm-10"
>
<
input
type
=
"submit"
value
=
"提交"
class
=
"btn btn-default"
/>
</
div
>
</
div
>
</
div
>
}