Skip to content

Instantly share code, notes, and snippets.

@tnayanam
Created September 7, 2017 06:11
Show Gist options
  • Save tnayanam/2ec6303d56afa96241a4e22ad73f1da0 to your computer and use it in GitHub Desktop.
Save tnayanam/2ec6303d56afa96241a4e22ad73f1da0 to your computer and use it in GitHub Desktop.
@model Bridge.ViewModels.SmallButtonViewModel
@using Bridge.ViewModels
@*<td style="width: 125px;">*@
<td>
<div class="btn-group" role="group">
@Html.Partial("_SmallButtonPartial",
new SmallButtonViewModel
{
Action = "Edit",
ButtonType = "btn-primary",
Glyph = "pencil",
Text = "Edit button",
ReferralId = Model.ReferralId,
ResumeId = Model.ResumeId,
CoverLetterId = Model.CoverLetterId
})
@Html.Partial("_SmallButtonPartial",
new SmallButtonViewModel
{
Action = "Details",
ButtonType = "btn-success",
Glyph = "list",
Text = "Detail button",
ReferralId = Model.ReferralId,
ResumeId = Model.ResumeId,
CoverLetterId = Model.CoverLetterId,
CandidateId = Model.CandidateId
})
@using (Html.BeginForm("Delete", Model.Action, FormMethod.Post, new { @class = "delete-form css-inline" }))
{
@Html.AntiForgeryToken()
@Html.HiddenFor(m=>m.ResumeId)
<button type="submit" class="btn btn-danger css-btn-style">
<span class="glyphicon glyphicon-trash"></span>
</button>
}
</div>
</td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment