-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #749 from CityOfBoston/DIG-4058
DIG-4058: Text Box treatments for data entry states and required fields
- Loading branch information
Showing
4 changed files
with
53 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{#each states as |textbox|}} | ||
<label class="txt"> | ||
<span class="txt-l"> | ||
{{label}} | ||
{{#if required}} | ||
<span class="t--req">Required</span> | ||
{{/if}} | ||
{{#if soft-required}} | ||
<span class="t--req">Required</span> | ||
{{/if}} | ||
</span> | ||
<input | ||
type="{{#if type}}{{type}}{{else}}text{{/if}}" | ||
value="{{#if value}} {{value}}{{/if}}" | ||
placeholder="{{placeholder}}" | ||
class="txt-f{{#if error }} txt-f--err{{#if soft-required}} txt-f--sr{{/if}}{{/if}}{{#if classes}} {{classes}}{{/if}}" | ||
> | ||
{{#if error }} | ||
<div class="t--subinfo t--err m-t100">{{ error }}</div> | ||
{{/if}} | ||
</label> | ||
{{/each}} |
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