Skip to content

Commit

Permalink
Merge pull request #5 from surveycto/rtl-support
Browse files Browse the repository at this point in the history
RTL support
  • Loading branch information
cking0987 authored Apr 29, 2020
2 parents fd4d6e9 + a48d651 commit 6b2017c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ A simple replacement for the default decimal field, plus a few improvements (see

In addition to supporting the default SurveyCTO features listed above, this field plug-in offers the following expanded functionality:

1. Support for RTL languages
If your *label* or *hint* is in a language that uses a right-to-left alphabet (like Arabic), it will be right-justified.
1. Support for HTML in field references
If you reference another field's value in either the field *label* or field *hint*, and that referenced value contains HTML, the HTML will be correctly rendered.

Expand Down
Binary file modified baseline-decimal.fieldplugin.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion source/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "Baseline decimal field",
"author" : "Dobility",
"version": "3.0.6",
"version": "3.1.0",
"supportedFieldTypes": ["decimal"],
"hideDefaultRequiredMessage": false,
"hideDefaultConstraintMessage": false
Expand Down
4 changes: 2 additions & 2 deletions source/template.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- This is the field label from the form definition -->
<div class="label default-question-text-size">{{{LABEL}}}</div>
<div class="label default-question-text-size" dir="auto">{{{LABEL}}}</div>

<!-- If there is an image specified in the media:image column, show it here -->
{{#MEDIAIMAGE}}
Expand All @@ -22,7 +22,7 @@
</video>
{{/MEDIAVIDEO}}

<div class="hint default-hint-text-size">{{{HINT}}}</div>
<div class="hint default-hint-text-size" dir="auto">{{{HINT}}}</div>

<!-- If the field is marked read only, then only show the input box if there is a current answer. -->
{{#READONLY}}
Expand Down

0 comments on commit 6b2017c

Please sign in to comment.