57 lines
2.3 KiB
Plaintext
57 lines
2.3 KiB
Plaintext
@model Model_Contact
|
|
@inject SbmLocaliser Localiser
|
|
@{
|
|
/* Affiliates - Affiliate dialog panel */
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
sbm.dlg.title.createAffiliate = '@Localiser.GetJavascriptText("contact.caption.contact.create")';
|
|
sbm.dlg.title.updateAffiliate = '@Localiser.GetJavascriptText("contact.caption.contact.update")';
|
|
</script>
|
|
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmAffiliateId", @class = "sbm-form" }))
|
|
{
|
|
@Html.HiddenFor(model => model.AffiliateId, new { @class = "AffiliateId" })
|
|
}
|
|
<div id="dlgAffiliate" class="sbm-dialog" title="">
|
|
|
|
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmAffiliate", @class = "sbm-form", @onSubmit = "return false;" }))
|
|
{
|
|
@Html.HiddenFor(model => model.AffiliateId, new { @id = "", @class = "AffiliateId" })
|
|
|
|
@* Affiliate Type *@
|
|
<div class="sbm-form-control AffiliateType">
|
|
<div class="sbm-label">
|
|
<label for="cbAffiliateType"><span><span class="required">*</span> @Localiser["label.type"]</span></label>
|
|
</div>
|
|
<div class="sbm-control">
|
|
@Html.DropDownListFor(model => model.AffiliateType, Model.GetAffiliateTypeCodesForSelect(), Localiser["label.select"], new { @id = "cbAffiliateType", @class = "AffiliateType sbm-select" })
|
|
</div>
|
|
<div class="sbm-message"></div>
|
|
</div>
|
|
|
|
@* Affiliate Organisation Name *@
|
|
<div class="sbm-form-control AffiliateName">
|
|
<div class="sbm-label">
|
|
<label for="ifAffiliateName"><span><span class="required">*</span> @Localiser["label.name"]</span></label>
|
|
</div>
|
|
<div class="sbm-control">
|
|
@Html.TextBoxFor(model => model.AffiliateName, new { @id = "ifAffiliateName", @class = "AffiliateName sbm-input", @maxlength = @Model.GetControlMaxLength(SbmDbDfn.ColumnIdx.Affiliate_Name) })
|
|
</div>
|
|
<div class="sbm-message"></div>
|
|
</div>
|
|
|
|
@* Affiliate Notes *@
|
|
<div class="sbm-form-control AffiliateNotes">
|
|
<div class="sbm-label">
|
|
<label for="ifAffiliateNotes"><span><span class="required">*</span> @Localiser["label.notes"]</span></label>
|
|
</div>
|
|
<div class="sbm-control">
|
|
@Html.TextAreaFor(model => model.AffiliateNotes, new { @id = "ifAffiliateNotes", @class = "AffiliateNotes sbm-textarea", @maxlength = @Model.GetControlMaxLength(SbmDbDfn.ColumnIdx.Affiliate_Notes) })
|
|
</div>
|
|
<div class="sbm-message"></div>
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|