Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Mar 11, 2024
1 parent 11480f8 commit f5cf12a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
54 changes: 32 additions & 22 deletions src/main/resources/web/admin/metadata/field-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
.support-plat2 {
margin-left: -22px;
}
.J_advOpt .custom-control-inline {
margin-bottom: 0.8rem;
}
</style>
</head>
<body>
Expand Down Expand Up @@ -215,7 +218,7 @@ <h5>[[${bundle.L('常用')}]]</h5>
</div>
</div>
<div th:if="${fieldType == 'IMAGE'}" class="form-group row J_for-IMAGE">
<label class="col-md-12 col-xl-3 col-lg-4 col-form-label text-lg-right pt-1">[[${bundle.L('仅允许拍照上传')}]] </label>
<label class="col-md-12 col-xl-3 col-lg-4 col-form-label text-lg-right pt-1">[[${bundle.L('仅允许拍照上传')}]]</label>
<div class="col-md-12 col-xl-6 col-lg-8">
<label class="custom-control custom-control-sm custom-checkbox custom-control-inline mb-0">
<input class="custom-control-input" type="checkbox" id="imageCapture" />
Expand Down Expand Up @@ -449,28 +452,34 @@ <h5>[[${bundle.L('常用')}]]</h5>
<div class="form-group row hide J_advOpt">
<label class="col-md-12 col-xl-3 col-lg-4 col-form-label text-lg-right pt-1">[[${bundle.L('高级选项')}]] <sup class="rbv"></sup></label>
<div class="col-md-12 col-xl-6 col-lg-8">
<label class="custom-control custom-control-sm custom-checkbox bosskey-show">
<input class="custom-control-input" type="checkbox" id="fieldQueryable" th:data-o="${fieldQueryable}" />
<span class="custom-control-label">
[[${bundle.L('允许使用')}]]
<i class="zmdi zmdi-help zicon" data-toggle="tooltip" th:title="${bundle.L('不允许使用的字段对普通用户不可见')}"></i>
</span>
</label>
<label class="custom-control custom-control-sm custom-checkbox">
<input class="custom-control-input" type="checkbox" id="textScanCode" th:data-o="${textScanCode}" />
<span class="custom-control-label">
[[${bundle.L('启用扫码')}]]
<i class="zmdi zmdi-help zicon" data-toggle="tooltip" th:title="${bundle.L('仅可在手机版企业微信、钉钉中使用')}"></i>
</span>
</label>
<label class="custom-control custom-control-sm custom-checkbox">
<input class="custom-control-input" type="checkbox" id="advDesensitized" />
<span class="custom-control-label">
[[${bundle.L('信息脱敏')}]]
<i class="zmdi zmdi-help zicon" data-toggle="tooltip" th:title="${bundle.L('可在权限角色中启用“允许查看明文”选项')}"></i>
</span>
</label>
<div>
<label class="custom-control custom-control-sm custom-checkbox custom-control-inline bosskey-show">
<input class="custom-control-input" type="checkbox" id="fieldQueryable" th:data-o="${fieldQueryable}" />
<span class="custom-control-label">
[[${bundle.L('允许使用')}]]
<i class="zmdi zmdi-help zicon" data-toggle="tooltip" th:title="${bundle.L('不允许使用的字段对普通用户不可见')}"></i>
</span>
</label>
</div>
<div>
<label class="custom-control custom-control-sm custom-checkbox custom-control-inline">
<input class="custom-control-input" type="checkbox" id="textScanCode" th:data-o="${textScanCode}" />
<span class="custom-control-label">
[[${bundle.L('启用扫码')}]]
<i class="zmdi zmdi-help zicon" data-toggle="tooltip" th:title="${bundle.L('仅可在手机版企业微信、钉钉中使用')}"></i>
</span>
</label>
</div>
<div>
<label class="custom-control custom-control-sm custom-checkbox custom-control-inline">
<input class="custom-control-input" type="checkbox" id="advDesensitized" />
<span class="custom-control-label">
[[${bundle.L('信息脱敏')}]]
<i class="zmdi zmdi-help zicon" data-toggle="tooltip" th:title="${bundle.L('可在权限角色中启用“允许查看明文”选项')}"></i>
</span>
</label>
</div>
<div style="margin-top: 0.25rem">
<input
type="text"
class="form-control form-control-sm"
Expand All @@ -493,6 +502,7 @@ <h5>[[${bundle.L('常用')}]]</h5>
</div>
</div>
</div>

<div class="form-group row footer">
<div class="col-md-12 col-xl-6 col-lg-8 offset-xl-3 offset-lg-4">
<div th:if="${!fieldBuildin}" class="J_action">
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/web/assets/js/metadata/field-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ $(document).ready(function () {
// 正则
if (SHOW_ADVPATTERN.includes(dt)) {
$('.J_advOpt').removeClass('hide')

$('.J_advPattern .badge').on('click', function () {
$('#advPattern').val($(this).data('patt'))
})
Expand Down

0 comments on commit f5cf12a

Please sign in to comment.