Added icon to edit

Added edit link to success notification
This commit is contained in:
2014-01-21 15:11:10 -05:00
parent 9c2149d52c
commit 0ef5199048
4 changed files with 31 additions and 19 deletions
+2 -2
View File
@@ -15,8 +15,8 @@
@Html.Partial("_ValidationSummary")
@Html.EditorForModel()
<div class="form-actions">
<input type="submit" value="Submit" class="btn btn-primary" />
@Html.ActionLink("Cancel", "Index", new {}, new { @class = "btn" })
<input type="submit" value="Update" class="btn btn-primary" />
@Html.ActionLink("Cancel", "Index", new {}, new { @class = "btn btn-mini" })
</div>
</fieldset>
}
+6 -1
View File
@@ -39,6 +39,7 @@
@Html.Encode(log.LogType.Enum.GetDisplayShortName())
</td>
<td>
<div class='btn-group'>
@if (log.Date >= DomainRules.GetLogEntryCutoff())
{
@Html.ActionLink("Edit", "EditPast", new {id = log.LogId}, new {@class = "btn btn-mini"})
@@ -47,6 +48,7 @@
{
@Html.ActionLink("Edit", "EditPast", new {id = log.LogId}, new {@class = "btn btn-mini disabled", title="Previous Month" })
}
</div>
</td>
</tr>
}
@@ -57,5 +59,8 @@ else
<p>Mileage history not found for <strong>@ViewData["name"]</strong></p>
}
<script type="text/javascript">
$('a.btn.disabled').prop('disabled', true).removeAttr('href');
$(function () {
$('a.btn.disabled').prop('disabled', true).removeAttr('href');
addButtonIcons();
});
</script>