|
|
- @model IQueryable<Sevomin.Models.Ad>
-
- @if (Model.Any())
- {
- <div class="row">
- <div class="col-md-12 rtl">
- <div class="panel panel-default" id="ad-management-panel">
- <div class="panel-heading">
- <h4 class="panel-title"><a data-toggle="collapse" data-parent="ad-management-panel" href="#ad-management-panel-body">ویرایش متن راهنمای پارامترها</a></h4>
- </div>
- <div id="ad-management-panel-body" class="panel-collapse collapse in">
- <div class="panel-body">
- <div class="panel-heading">
- <div class="panel-title">
- آگهی های فعال
- </div>
- </div>
- <div class="panel-body">
- <ul>
- @foreach (var ad in Model.Where(m => m.Active))
- {
- <li>
- <div class="col-md-6">
- @ad.Title
- </div>
- <div class="col-md-2">
- <input type="number" placeholder="تغییر روز" name="ChangeDays" value="@ad.Duration" />
- </div>
- <div class="col-md-2">
- <button type="submit" class="btn btn-success">
- <a href="@Url.Action("ChangeDays", new { id = ad.Id })">تغییر روز</a>
- </button>
- </div>
- <div class="col-md-2">
- <button type="submit" class="btn btn-default">
- <a href="@Url.Action("ToggleAd", new { id = ad.Id })">غیر فعالسازی</a>
- </button>
- </div>
- </li>
- }
- </ul>
- </div>
- <div class="panel-heading">
- <div class="panel-title">
- آگهی های غیر فعال
- </div>
- </div>
- <div class="panel-body">
- <ul>
- @foreach (var ad in Model.Where(m => !m.Active))
- {
- <li>
- <div class="col-md-3">
- @ad.Title
- </div>
- <div class="col-md-7">
- @ad.Description
- </div>
- <div class="col-md-2">
- <button type="submit" class="btn btn-default">
- <a href="@Url.Action("ToggleAd", new { id = ad.Id })">فعالسازی</a>
- </button>
- </div>
- </li>
- }
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- }
|