{% if candedit %}
{% if can_read_kb %}
{% set search_solution_button %}
{% endset %}
{{ fields.field(
'',
search_solution_button,
'',
{
'full_width': true,
'icon_label': true,
}
) }}
{% endif %}
{% set sol_template_lbl %}
{% endset %}
{{ fields.dropdownField(
'SolutionTemplate',
'solutiontemplates_id',
0,
sol_template_lbl,
{
'full_width': true,
'icon_label': true,
'on_change': 'solutiontemplate_update' ~ rand ~ '(this.value)',
'rand': rand,
'disabled': disabled,
}
) }}
{% endif %}
{% set sol_type_lbl %}
{% endset %}
{{ fields.dropdownField(
'SolutionType',
'solutiontypes_id',
subitem.fields['solutiontypes_id'],
sol_type_lbl,
{
'full_width': true,
'icon_label': true,
'rand': rand,
'disabled': disabled,
}
) }}
{% if can_read_kb and kb_id_toload > 0 %}
{% set link_kb_lbl %}
{% endset %}
{{ fields.sliderField(
'kb_linked_id',
kb_id_toload,
link_kb_lbl,
{
'full_width': true,
'icon_label': true,
'rand': rand,
}
) }}
{% endif %}
{% if candedit and can_update_kb and not nokb %}
{% set sol_to_kb_lbl %}
{% endset %}
{{ fields.sliderField(
'_sol_to_kb',
0,
sol_to_kb_lbl,
{
'full_width': true,
'icon_label': true,
'rand': rand,
}
) }}
{% endif %}