【发布时间】:2021-01-07 22:11:48
【问题描述】:
我想更改 Status 列 - 在 CMS 10 月的 columns.yaml 中使用颜色 ...
我如何添加这个:
<div class="control-list">
<table class="table data">
<thead>
<tr>
<th style="width: 150px"><span>Status</span></th>
<th class="active sort-asc"><a href="/">Title</a></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="oc-icon-circle text-success">
Approved
</span>
</td>
<td>The sun is shining</td>
</tr>
<tr>
<td>
<span class="oc-icon-circle text-danger">
Cancelled
</span>
</td>
<td>The weather is sweet here</td>
</tr>
</tbody>
</table>
</div>
如何将这样的东西添加到我的系统模型中?
【问题讨论】:
-
你能分享一下你做了什么努力,我们可以指导你
-
octobercms.com/docs/ui/list - 就像 CMS 十月 - 状态栏
-
我看到它看起来不错,但是我怎么能做到这一点,我在数据库状态上看不到:标签:状态类型:组条件:状态(:过滤)选项:待定:待定活动:活动关闭:关闭
-
将模型中的状态值定义为硬编码的静态变量,因为它们可能就像 4-5 状态一样,并部分使用它们进行检查
标签: octobercms octobercms-plugins octobercms-backend october-form-controller october-partial