Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kiosk improve highlighting in reservations questions #260

Merged
merged 6 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions NEMO/static/nemo.css
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,20 @@ li.area-tree-node a, li.area-tree-node a:hover, li.area-tree-node a:focus
#additional_event_parameters input:invalid, #additional_event_parameters select:invalid, #additional_event_parameters textarea:invalid
{
border-color: #dc3545!important;
border-width: 2px;
background: #ffebeb;
}
#tool_control input:invalid::placeholder, #tool_control select:invalid::placeholder, #tool_control textarea:invalid::placeholder,
#additional_event_parameters input:invalid::placeholder, #additional_event_parameters select:invalid::placeholder, #additional_event_parameters textarea:invalid::placeholder
{
color: #505050 ;
}

.required-question-star
{
color:red;
font-size: 20px;
font-weight: bold;
}

/* Make form-control look like plain text */
Expand Down
2 changes: 1 addition & 1 deletion NEMO/widgets/dynamic_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
class PostUsageQuestion:
question_type = "Question"

required_span = '<span style="color:red">*</span>'
required_span = '<span class="required-question-star">*</span>'

def __init__(self, properties: Dict, index: int = None, initial_data=None):
self.properties = properties
Expand Down