Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#180 - Add admin field hint, help, and tooltip support
- Loading branch information
Andre Azzolini
committed
Jan 10, 2014
1 parent
a5ec5ee
commit 53ce888
Showing
27 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...admin-platform/src/main/resources/open_admin_style/templates/components/fieldTooltip.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<i th:if="${field.tooltip}" | ||
class="has-tip tip-right field-tooltip icon-question" | ||
th:attr="title=#{${field.tooltip}}" /> |
3 changes: 2 additions & 1 deletion
3
...-admin-platform/src/main/resources/open_admin_style/templates/components/ruleBuilder.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...platform/src/main/resources/open_admin_style/templates/fields/additional_foreign_key.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...pen-admin-platform/src/main/resources/open_admin_style/templates/fields/asset_lookup.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...f-open-admin-platform/src/main/resources/open_admin_style/templates/fields/asset_url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...eaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/boolean.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...-platform/src/main/resources/open_admin_style/templates/fields/broadleaf_enumeration.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...dleaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/color.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...open-admin-platform/src/main/resources/open_admin_style/templates/fields/combo_field.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...latform/src/main/resources/open_admin_style/templates/fields/data_driven_enumeration.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...adleaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/date.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...eaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/decimal.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" /> | ||
<div th:substituteby="components/fieldTooltip" /> | ||
<span class="error" th:errors="*{fields['__${field.name}__'].value}" /> | ||
<input type="text" class="two" th:field="*{fields['__${field.name}__'].value}" /> |
1 change: 1 addition & 0 deletions
1
...n-platform/src/main/resources/open_admin_style/templates/fields/explicit_enumeration.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...adleaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/html.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...-open-admin-platform/src/main/resources/open_admin_style/templates/fields/html_basic.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...roadleaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/id.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<div class="field-label inline" th:text="#{${field.friendlyName}}" /> | ||
<div th:substituteby="components/fieldTooltip" /> | ||
<span class="error" th:errors="*{fields['__${field.name}__'].value}" /> | ||
<input type="text" class="four" th:field="*{fields['__${field.name}__'].value}" /> |
1 change: 1 addition & 0 deletions
1
...eaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/integer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" /> | ||
<div th:substituteby="components/fieldTooltip" /> | ||
<span class="error" th:errors="*{fields['__${field.name}__'].value}" /> | ||
<input type="text" class="two" th:field="*{fields['__${field.name}__'].value}" /> |
5 changes: 4 additions & 1 deletion
5
...dleaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/media.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...dleaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/money.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" /> | ||
<div th:substituteby="components/fieldTooltip" /> | ||
<span class="error" th:errors="*{fields['__${field.name}__'].value}" /> | ||
<input type="text" step=".01" class="two" th:field="*{fields['__${field.name}__'].value}" /> |
1 change: 1 addition & 0 deletions
1
...af-open-admin-platform/src/main/resources/open_admin_style/templates/fields/password.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" /> | ||
<div th:substituteby="components/fieldTooltip" /> | ||
<span class="error" th:errors="*{fields['__${field.name}__'].value}" /> | ||
<input type="password" class="twelve" th:field="*{fields['__${field.name}__'].value}" /> |
1 change: 1 addition & 0 deletions
1
...af-open-admin-platform/src/main/resources/open_admin_style/templates/fields/readonly.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 9 additions & 2 deletions
11
...leaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/string.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
<div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" /> | ||
<div th:substituteby="components/fieldTooltip" /> | ||
<div th:substituteby="components/fieldTranslation" /> | ||
<span class="error" th:errors="*{fields['__${field.name}__'].value}" /> | ||
|
||
<div th:if="*{fields['__${field.name}__'].isLargeEntry}" class="twelve indented-form-value"> | ||
<textarea class="autosize" style="width: 100%;" th:field="*{fields['__${field.name}__'].value}"/> | ||
<textarea class="autosize" style="width: 100%;" | ||
th:field="*{fields['__${field.name}__'].value}" | ||
th:placeholder="${field.hint}" /> | ||
</div> | ||
<input th:unless="*{fields['__${field.name}__'].isLargeEntry}" type="text" class="twelve" th:required="${field.required}" th:field="*{fields['__${field.name}__'].value}" /> | ||
<input th:unless="*{fields['__${field.name}__'].isLargeEntry}" type="text" class="twelve" | ||
th:required="${field.required}" | ||
th:placeholder="${field.hint}" | ||
th:field="*{fields['__${field.name}__'].value}" /> |
1 change: 1 addition & 0 deletions
1
...adleaf-open-admin-platform/src/main/resources/open_admin_style/templates/fields/text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters