-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Elements in groups: Align to corners/centre (#2810)
relates to xibosignageltd/xibo-private#737
- Loading branch information
1 parent
977391f
commit ab62984
Showing
10 changed files
with
218 additions
and
29 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
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
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,36 @@ | ||
<div class="form-group xibo-form-input button-switch-input-group | ||
{{customClass}} | ||
{{variant}}" | ||
{{#if visibility}}data-visibility="{{visibility}}"{{/if}} | ||
{{#if dependsOn}}data-depends-on="{{dependsOn}}"{{/if}} | ||
{{#if isRequired}}data-is-required="{{isRequired}}"{{/if}} | ||
> | ||
<label for="{{#unless forceId}}input_{{/unless}}{{id}}" class="control-label"><strong>{{title}}</strong></label> | ||
<div class="input-info-container"> | ||
{{#if helpText}} | ||
{{> add-ons/helpText helpText=helpText}} | ||
{{/if}} | ||
</div> | ||
<input id="{{#unless forceId}}input_{{/unless}}{{id}}" name="{{#if name}}{{name}}{{else}}{{id}}{{/if}}" value="{{value}}" type="hidden"/> | ||
<div class="btn-group btn-block" role="group" | ||
{{#each customData}} | ||
data-{{this.name}}="{{this.value}}" | ||
{{/each}} | ||
{{#if readonly}}readonly{{/if}} | ||
> | ||
{{!-- Set default property values --}} | ||
{{#unless optionsValue}} | ||
{{set "optionsValue" "name"}} | ||
{{/unless}} | ||
{{#unless optionsTitle}} | ||
{{set "optionsTitle" "title"}} | ||
{{/unless}} | ||
|
||
{{!-- Render options --}} | ||
{{#each options}} | ||
<button type="button" class="btn btn-sm {{#eq (lookup this ../optionsValue) ../value}}selected{{/eq}}" | ||
data-value="{{lookup this ../optionsValue}}" | ||
>{{lookup this ../optionsTitle}}</button> | ||
{{/each}} | ||
</div> | ||
</div> |
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