Skip to content

Commit

Permalink
Updated app preview to show required asterisks
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejenny committed Jun 11, 2024
1 parent 1c635c8 commit 15e030b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script type="text/template" id="query-view-group-template">
<td class="search-query-group">
<% if (named) { %>
<div class="search-query-group-header <% if (required) { %> required<% } %>" data-bs-toggle="collapse" data-bs-target="#group-<%- groupKey %>" aria-expanded="true" aria-controls="group-<%- groupKey %>">
<label class="search-query-group-header-label fw-bold"><%= groupName %></label>
<div class="search-query-group-header d-flex<% if (required) { %> required<% } %>" data-bs-toggle="collapse" data-bs-target="#group-<%- groupKey %>" aria-expanded="true" aria-controls="group-<%- groupKey %>">
<label class="search-query-group-header-label fw-bold flex-fill"><%= groupName %></label>
<i class="fa fa-angle-double-down float-end fs-5"></i>
</div>
<% } %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ version of FORMPLAYER
@import "formplayer-common/formnav";
@import "formplayer-common/markdown-table";
@import "formplayer-common/address";
@import "formplayer-common/query";
@import "formplayer-common/webforms";

@import "debugger/debugger";
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.query-caption.required label::before, .search-query-group-header.required .search-query-group-header-label::before {
content: '*';
font-weight: bold;
color: $danger;
margin: 0 3px;
float: left;
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ input:invalid {
.required-group .gr-header .caption::before {
content: '*';
font-weight: bold;
color: #c0392b;
color: $danger;
margin: 0 3px;
float: left;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,6 @@
}
}

.query-caption.required label::before, .search-query-group-header.required .search-query-group-header-label::before {
content: '*';
font-weight: bold;
color: #c0392b;
margin: 0 3px;
float: left;
}

.search-query-group-header-label {
font-size: larger;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@
.q.required {
transition: all .5s;
margin-bottom: 0;
label:before {
display: none;
}
}

.q.required.on {
Expand Down

0 comments on commit 15e030b

Please sign in to comment.