config.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * @var yii\web\View $this
  4. */
  5. $this->title = '项目配置';
  6. ?>
  7. <div class="box">
  8. <div class="box-header">
  9. <!-- <h3 class="box-title">Responsive Hover Table</h3>-->
  10. <form action="/walle/config" method="POST">
  11. <div class="col-xs-12 col-sm-8" style="padding-left: 0;margin-bottom: 10px;">
  12. <div class="input-group">
  13. <input type="text" name="kw" class="form-control search-query" placeholder="上线标题、commit号">
  14. <span class="input-group-btn">
  15. <button type="submit"
  16. class="btn btn-default btn-sm">
  17. Search
  18. <i class="icon-search icon-on-right bigger-110"></i>
  19. </button>
  20. </span>
  21. </div>
  22. </div>
  23. </form>
  24. <a class="btn btn-default btn-sm" href="/walle/config-edit">
  25. <i class="icon-pencil align-top bigger-125"></i>
  26. 新建项目
  27. </a>
  28. </div><!-- /.box-header -->
  29. <div class="box-body table-responsive no-padding">
  30. <table class="table table-striped table-bordered table-hover">
  31. <tbody><tr>
  32. <th>项目名称</th>
  33. <th>项目配置名</th>
  34. <th>环境</th>
  35. <th>状态</th>
  36. <th>操作</th>
  37. </tr>
  38. <?php foreach ($list as $item) { ?>
  39. <tr>
  40. <td><?= $item['name'] ?></td>
  41. <td><?= $item['conf'] ?></td>
  42. <td><?= \Yii::t('status', 'conf_level_' . $item['level']) ?></td>
  43. <td><?= \Yii::t('status', 'conf_status_' . $item['status']) ?></td>
  44. <td class="<?= \Yii::t('status', 'conf_status_' . $item['status'] . '_color') ?>">
  45. <a class="btn btn-xs btn-success" href="/walle/config-edit?projectId=<?= $item['id'] ?>">
  46. <i class="icon-edit bigger-120"></i>修改
  47. </a>
  48. </td>
  49. </tr>
  50. <?php } ?>
  51. </tbody></table>
  52. </div><!-- /.box-body -->
  53. </div>