Added icon to edit
Added edit link to success notification
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user