|
@model Parichay.Data.Entity.MemberInvitations
@{
ViewBag.Title = "Invite";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Invite a Friend</h2>
<script src="@Url.Content("~/Content/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<table class="tblAllBorders">
<tr><th><div class="editor-label">
@Html.LabelFor(model => model.Email)
</div>
</th><td><div class="editor-field">
@Html.HiddenFor(model => model.Senderid)
@Html.EditorFor(model => model.Email)
@Html.ValidationMessageFor(model => model.Email)
</div></td></tr>
<tr><th><div class="editor-label">
@Html.LabelFor(model => model.UserMessage)
</div>
</th><td><div class="editor-field">
@Html.TextAreaFor(model => model.UserMessage, 5, 50,null)
@Html.ValidationMessageFor(model => model.UserMessage)
</div></td></tr>
<tr><th><div class="editor-label">
@Html.LabelFor(model => model.Createdate)
</div>
</th><td><div class="editor-field">
@Html.DisplayFor(model => model.Createdate)
@Html.ValidationMessageFor(model => model.Createdate)
</div></td></tr>
<tr><th><div class="editor-label">
@Html.LabelFor(model => model.Version)
</div>
</th><td><div class="editor-field">
@Html.DisplayFor(model => model.Version)
@Html.ValidationMessageFor(model => model.Version)
</div></td></tr>
<tr><td colspan="2"><input type="submit" value="Invite" /> </td></tr>
</table>
</fieldset>
}
<br /><br />
<table class="tblAllBorders">
<tr><th colspan="5">My Previous Invitations:</th></tr>
<tr><th>Id </th> <th>Email </th><th>Unique Key </th><th>Sent Date </th><th>Joined UserId</th></tr>
@foreach (var itm in Model.MyInvites)
{
<tr><td>@itm.Id</td><td>@itm.Email</td><td>@itm.Guid</td><td>@itm.Createdate</td><td>@itm.BecameUserId</td></tr>
}
</table>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I love programming, reading, and meditation. I like to explore management and productivity.