Skip to content

Commit

Permalink
css class option for review
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpyle committed Jul 23, 2024
1 parent 116623c commit b8e752d
Show file tree
Hide file tree
Showing 804 changed files with 250 additions and 139 deletions.
337 changes: 206 additions & 131 deletions _data/example.yml

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions _docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@ layout: docs
title: Change Log
short_title: Change Log
---
## [1.4.110](https://github.com/jhpyle/docassemble/releases/tag/v1.4.110) - 2024-07-22


### Added
- The option of giving an item under `review` a `css class`.


### Changed
- The `bg-secondary-subtle` class is now used place of `bg-light`
since it has a better appearance in dark mode.


### Fixed
- Actions in the `menu_items` were not launched using Ajax.
- If `ask_object_type` is used, the `object_type` will be set to
`None`.
- When `hide corner interface` was used, the `navigation bar html` was
not shown.

## [1.4.109](https://github.com/jhpyle/docassemble/releases/tag/v1.4.109) - 2024-07-12


Expand Down
6 changes: 3 additions & 3 deletions _docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1341,9 +1341,9 @@ The default value is `medium`.
## <a name="footer css class"></a>Default CSS class for the footer

By default, if you use a footer, the footer has the CSS class
`bg-light`, in addition to the class `dafooter`. If you would like to
use a different class instead of `bg-light`, you can set this class
using `footer css class`.
`bg-secondary-subtle`, in addition to the class `dafooter`. If you
would like to use a different class instead of `bg-secondary-subtle`,
you can set this class using `footer css class`.

{% highlight yaml %}
footer css class: bg-dark text-white
Expand Down
19 changes: 18 additions & 1 deletion _docs/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ uploading signature images, see the [Uploads](#uploads) subsection.
## <a name="fields yesno"></a><a name="fields noyes"></a>Yes/no fields

`datatype: yesno` will show a checkbox with a label, aligned with
labeled fields. `datatype: noyes` is like `datatype: yesno`, except
labeled fields. `datatype: noyes` is like `datatype: yesno`, except
with True and False inverted.

{% include side-by-side.html demo="fields-yesno" %}
Expand Down Expand Up @@ -3453,6 +3453,23 @@ omitted.

{% include side-by-side.html demo="review-3" %}

By default, items in a `review` list have the [CSS] class of
`bg-secondary-subtle` so that each item is distinguishable from its
neighbors. However, `note` and `html` items do not have a class. Using
the `css class` modifier on an item, you can change the [CSS] class of
an item.

{% include side-by-side.html demo="review-10" %}

In this example, the `favorite_vegetable` item has been given a
different background color, and the `note`, which by default is
colorless, is given the color `bg-secondary-subtle` so that it matches
the other items.

If you want an item to have no background color, set the `css class`
to the name of a class that does not exist or that does not define a
background color.

If you include `note` and `html` as modifiers of an item under the
`review` specifier, the text will appear to the right of the item on
wide screens. On small screens, the HTML will appear after the item.
Expand Down
2 changes: 1 addition & 1 deletion _docs/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ __all__ = ['prog_disclose']

def prog_disclose(template, classname=None):
if classname is None:
classname = ' bg-light'
classname = ' bg-secondary-subtle'
else:
classname = ' ' + classname.strip()
the_id = re.sub(r'[^A-Za-z0-9]', '', template.instanceName)
Expand Down
Binary file modified img/examples/ab-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/action-button-html.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/action-buttons-before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/action-buttons-code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/action-buttons-http.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/action-buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/actions-demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/actions-parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/add-separators.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/address-autocomplete-cities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/address-autocomplete-establishment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/address-autocomplete-regions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/address-autocomplete-specific.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/address-autocomplete-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/address-autocomplete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/address-block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/age_in_years.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/ajax-calc-javascript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/ajax-calc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/ajax-flash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/ajax-refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/ajax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/alignment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/all-false.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/examples/all-mandatory.png
Binary file modified img/examples/all-true.png
Binary file modified img/examples/all_variables.png
Binary file modified img/examples/allow-downloading-true-zip-filename.png
Binary file modified img/examples/allow-downloading-true.png
Binary file modified img/examples/allow-emailing-false.png
Binary file modified img/examples/allow-emailing-true.png
Binary file modified img/examples/always-include.png
Binary file modified img/examples/animal.png
Binary file modified img/examples/as-datetime.png
Binary file modified img/examples/assemble-in-background.png
Binary file modified img/examples/assets.png
Binary file modified img/examples/attachment-code.png
Binary file modified img/examples/attachment-notice.png
Binary file modified img/examples/attachment-simple.png
Binary file modified img/examples/attorney.png
Binary file modified img/examples/audio-upload.png
Binary file modified img/examples/audio.png
Binary file modified img/examples/auto-terms.png
Binary file modified img/examples/background-error-action-demo.png
Binary file modified img/examples/background-error-action.png
Binary file modified img/examples/background-tail.png
Binary file modified img/examples/background_action.png
Binary file modified img/examples/background_action_fields.png
Binary file modified img/examples/background_action_flash.png
Binary file modified img/examples/background_action_javascript.png
Binary file modified img/examples/background_action_refresh.png
Binary file modified img/examples/background_action_with_response_action.png
Binary file modified img/examples/background_response_action_flash.png
Binary file modified img/examples/bates-number.png
Binary file modified img/examples/blank-label-field.png
Binary file modified img/examples/bootstrap-theme.png
Binary file modified img/examples/branch-error.png
Binary file modified img/examples/branch-mandatory.png
Binary file modified img/examples/branch-no-error.png
Binary file modified img/examples/breadcrumbs.png
Binary file modified img/examples/button-checkboxes.png
Binary file modified img/examples/buttons-code-color.png
Binary file modified img/examples/buttons-code-list-equivalent.png
Binary file modified img/examples/buttons-code-list-label-value-datatype.png
Binary file modified img/examples/buttons-code-list-label-value.png
Binary file modified img/examples/buttons-code-list-partial.png
Binary file modified img/examples/buttons-code-list.png
Binary file modified img/examples/buttons-code.png
Binary file modified img/examples/buttons-css-class-color.png
Binary file modified img/examples/buttons-icons-code-upload.png
Binary file modified img/examples/buttons-icons-code.png
Binary file modified img/examples/buttons-icons.png
Binary file modified img/examples/buttons-labels.png
Binary file modified img/examples/buttons-show-if.png
Binary file modified img/examples/buttons-variation-1.png
Binary file modified img/examples/buttons-variation-2.png
Binary file modified img/examples/buttons.png
Binary file modified img/examples/calendar.png
Binary file modified img/examples/capitalize.png
Binary file modified img/examples/cards.png
Binary file modified img/examples/catchall-guess.png
Binary file modified img/examples/catchall.png
Binary file modified img/examples/centered.png
Binary file modified img/examples/chart.png
Binary file modified img/examples/chat-example-1.png
Binary file modified img/examples/chat-partners-available.png
Binary file modified img/examples/check-in.png
Binary file modified img/examples/choices-combobox.png
Binary file modified img/examples/choices-css-class-color.png
Binary file modified img/examples/choices-dropdown.png
Binary file modified img/examples/choices-from-code.png
Binary file modified img/examples/choices-icons.png
Binary file modified img/examples/choices-show-if.png
Binary file modified img/examples/choices-with-default-item.png
Binary file modified img/examples/choices-with-default.png
Binary file modified img/examples/choices-with-help.png
Binary file modified img/examples/choices.png
Binary file modified img/examples/classify.png
Binary file modified img/examples/clauses.png
Binary file modified img/examples/code-example-01.png
Binary file modified img/examples/code-example-02.png
Binary file modified img/examples/code-example-03.png
Binary file modified img/examples/code-example-04.png
Binary file modified img/examples/code-example-05.png
Binary file modified img/examples/code-example-06.png
Binary file modified img/examples/code-example-07.png
Binary file modified img/examples/code-example-08.png
Binary file modified img/examples/code.png
Binary file modified img/examples/collate.png
Binary file modified img/examples/comment-weather.png
Binary file modified img/examples/comment.png
Binary file modified img/examples/complete-attribute-method.png
Binary file modified img/examples/context-code.png
Binary file modified img/examples/context-manual.png
Binary file modified img/examples/context.png
Binary file modified img/examples/continuation-page.png
Binary file modified img/examples/continue-button-color.png
Binary file modified img/examples/continue-button-field.png
Binary file modified img/examples/continue-button-label.png
Binary file modified img/examples/continue-participation.png
Binary file modified img/examples/continue.png
Binary file modified img/examples/copy-deep.png
Binary file modified img/examples/copy-shallow.png
Binary file modified img/examples/counter.png
Binary file modified img/examples/country-state.png
Binary file modified img/examples/country.png
Binary file modified img/examples/courtfile.png
Binary file modified img/examples/cron.png
Binary file modified img/examples/css-class.png
Binary file modified img/examples/css.png
Binary file modified img/examples/currency.png
Binary file modified img/examples/current-datetime.png
Binary file modified img/examples/customdate.png
Binary file modified img/examples/dadict.png
Binary file modified img/examples/dafile-url-for-temporary.png
Binary file modified img/examples/dafile-url-for.png
Binary file modified img/examples/dafile.png
Binary file modified img/examples/daglobal.png
Binary file modified img/examples/dalink.png
Binary file modified img/examples/daobject-language-functions.png
Binary file modified img/examples/daobject.png
Binary file modified img/examples/dastore.png
Binary file modified img/examples/dastore2.png
Binary file modified img/examples/data-code-objects.png
Binary file modified img/examples/data-code.png
Binary file modified img/examples/data-objects-gathered.png
Binary file modified img/examples/data-objects.png
Binary file modified img/examples/data-simple.png
Binary file modified img/examples/data.png
Binary file modified img/examples/database_storage.png
Binary file modified img/examples/date-and-time-fields.png
Binary file modified img/examples/date-default.png
Binary file modified img/examples/date-demo.png
Binary file modified img/examples/date-difference.png
Binary file modified img/examples/date-field.png
Binary file modified img/examples/date-interval.png
Binary file modified img/examples/date-limit.png
Binary file modified img/examples/date-parts.png
Binary file modified img/examples/datetime-field.png
Binary file modified img/examples/daweb.png
Binary file modified img/examples/dead-end.png
Binary file modified img/examples/debug-mode.png
Binary file modified img/examples/decoration.png
Binary file modified img/examples/def.png
Binary file modified img/examples/default-date-min.png
Binary file modified img/examples/default-screen-parts.png
Binary file modified img/examples/default-validation-messages.png
Binary file modified img/examples/define.png
Binary file modified img/examples/defined.png
Binary file modified img/examples/del.png
Binary file modified img/examples/demo-multi-sign-2.png
Binary file modified img/examples/demo-multi-sign.png
Binary file modified img/examples/demo-with-basic-questions.png
Binary file modified img/examples/dependency-demo-code.png
Binary file modified img/examples/dependency-demo.png
Binary file modified img/examples/depends-on-code.png
Binary file modified img/examples/depends-on-iterator.png
Binary file modified img/examples/depends-on.png
Binary file modified img/examples/device-ip.png
Binary file modified img/examples/device-local.png
Binary file modified img/examples/device.png
Binary file modified img/examples/dialog-box.png
Binary file modified img/examples/disable-continue-button.png
Binary file modified img/examples/disable-others-list.png
Binary file modified img/examples/disable-others.png
Binary file modified img/examples/disabled-field-dummy.png
Binary file modified img/examples/disabled-field.png
Binary file modified img/examples/dispatch-track.png
Binary file modified img/examples/dispatch.png
Binary file modified img/examples/document-cache-invalidate.png
Binary file modified img/examples/document-cache.png
Binary file modified img/examples/document-docx-from-rtf.png
Binary file modified img/examples/document-docx.png
Binary file modified img/examples/document-email-custom.png
Binary file modified img/examples/document-file-code.png
Binary file modified img/examples/document-file.png
Binary file modified img/examples/document-language.png
Binary file modified img/examples/document-links-limited.png
Binary file modified img/examples/document-links.png
Binary file modified img/examples/document-manual-code.png
Binary file modified img/examples/document-manual-jpg.png
Binary file modified img/examples/document-manual.png
Binary file modified img/examples/document-markup.png
Binary file modified img/examples/document-md.png
Binary file modified img/examples/document-variable-name-link.png
Binary file modified img/examples/document-variable-name.png
Binary file modified img/examples/document.png
Binary file modified img/examples/docx-jinja2-demo.png
Binary file modified img/examples/docx-recipe.png
Binary file modified img/examples/docx-table-columns.png
Binary file modified img/examples/docx-template-table.png
Binary file modified img/examples/docx-template.png
Binary file modified img/examples/docxproperties.png
Binary file modified img/examples/doors.png
Binary file modified img/examples/duplicate.png
Binary file modified img/examples/edit-list-non-editable.png
Binary file modified img/examples/edit-list-string.png
Binary file modified img/examples/edit-list.png
Binary file modified img/examples/email-field.png
Binary file modified img/examples/email-to-case-simple.png
Binary file modified img/examples/email-to-case.png
Binary file modified img/examples/embed.png
Binary file modified img/examples/emoji-inline.png
Binary file modified img/examples/error-action-2.png
Binary file modified img/examples/error-action.png
Binary file modified img/examples/error-help-language.png
Binary file modified img/examples/error-help.png
Binary file modified img/examples/event-example.png
Binary file modified img/examples/event-role-event.png
Binary file modified img/examples/exists.png
Binary file modified img/examples/exit-buttons-mixed-code.png
Binary file modified img/examples/exit-buttons-mixed.png
Binary file modified img/examples/exit-buttons.png
Binary file modified img/examples/exit-choices.png
Binary file modified img/examples/exit-url-referer.png
Binary file modified img/examples/exit-url.png
Binary file modified img/examples/exit.png
Binary file modified img/examples/explain.png
Binary file modified img/examples/external_files.png
Binary file modified img/examples/fallback.png
Binary file modified img/examples/fallback2.png
Binary file modified img/examples/false-values.png
Binary file modified img/examples/field-css-class.png
Binary file modified img/examples/fields-ajax-2.png
Binary file modified img/examples/fields-ajax.png
Binary file modified img/examples/fields-checkboxes-aota.png
Binary file modified img/examples/fields-checkboxes-code.png
Binary file modified img/examples/fields-checkboxes-dadict.png
Binary file modified img/examples/fields-checkboxes-default-0.png
Binary file modified img/examples/fields-checkboxes-default-1.png
Binary file modified img/examples/fields-checkboxes-default-2.png
Binary file modified img/examples/fields-checkboxes-default-3.png
Binary file modified img/examples/fields-checkboxes-default-4.png
Binary file modified img/examples/fields-checkboxes-default-5.png
Binary file modified img/examples/fields-checkboxes-default-6.png
Binary file modified img/examples/fields-checkboxes-different-labels.png
Binary file modified img/examples/fields-checkboxes-label-value.png
Binary file modified img/examples/fields-checkboxes-nota-false.png
Binary file modified img/examples/fields-checkboxes-nota.png
Binary file modified img/examples/fields-checkboxes.png
Binary file modified img/examples/fields-choices-combobox.png
Binary file modified img/examples/fields-choices-dropdown-input-type.png
Binary file modified img/examples/fields-choices-dropdown.png
Binary file modified img/examples/fields-choices.png
Binary file modified img/examples/fields-code-embed.png
Binary file modified img/examples/fields-code.png
Binary file modified img/examples/fields-hidden-autocomplete.png
Binary file modified img/examples/fields-hidden.png
Binary file modified img/examples/fields-mc-2.png
Binary file modified img/examples/fields-mc-3.png
Binary file modified img/examples/fields-mc-4.png
Binary file modified img/examples/fields-mc-5.png
Binary file modified img/examples/fields-mc-6.png
Binary file modified img/examples/fields-mc-7.png
Binary file modified img/examples/fields-mc-8.png
Binary file modified img/examples/fields-mc-9.png
Binary file modified img/examples/fields-mc-aota.png
Binary file modified img/examples/fields-mc-exclude.png
Binary file modified img/examples/fields-mc-nota.png
Binary file modified img/examples/fields-mc.png
Binary file modified img/examples/fields-multiselect-rows.png
Binary file modified img/examples/fields-multiselect.png
Binary file modified img/examples/fields-noyesmaybe.png
Binary file modified img/examples/fields-raw.png
Binary file modified img/examples/fields-yesno-check-others-list.png
Binary file modified img/examples/fields-yesno-check-others.png
Binary file modified img/examples/fields-yesno-help.png
Binary file modified img/examples/fields-yesno-uncheck-others-list.png
Binary file modified img/examples/fields-yesno-uncheck-others.png
Binary file modified img/examples/fields-yesno.png
Binary file modified img/examples/fields-yesnomaybe.png
Binary file modified img/examples/fields-yesnoradio.png
Binary file modified img/examples/fields-yesnowide.png
Binary file modified img/examples/fields.png
Loading

0 comments on commit b8e752d

Please sign in to comment.