Skip to content

Commit

Permalink
Merge pull request #18 from chrisbutler/master
Browse files Browse the repository at this point in the history
adjust markup to align labels
  • Loading branch information
splendido committed Oct 10, 2015
2 parents bfc239e + b58f41a commit 3305c3c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions lib/at_input.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@
</template>

<template name="atTextInput">
<div class="at-input input-field">
{{#if showLabels}}
<label for="at-field-{{_id}}">
{{displayName}} {{#unless required}}{{optionalText}}{{/unless}}
</label>
{{/if}}
<input class="validate {{#if hasError}}invalid{{/if}} {{#if hasSuccess}}valid{{/if}}" type="{{type}}" id="at-field-{{_id}}" name="at-field-{{_id}}" placeholder="{{#unless showLabels}} {{placeholder}} {{/unless}}" autocapitalize="none" autocorrect="off">
{{#if hasIcon}}
<span class="{{iconClass}}"></span>
{{/if}}
{{#if hasError}}
<span class='red-text'>{{errorText}}</span>
{{/if}}
<div class="row">
<div class="at-input input-field col s12">
{{#if showLabels}}
<label for="at-field-{{_id}}">
{{displayName}} {{#unless required}}{{optionalText}}{{/unless}}
</label>
{{/if}}
<input class="validate {{#if hasError}}invalid{{/if}} {{#if hasSuccess}}valid{{/if}}" type="{{type}}" id="at-field-{{_id}}" name="at-field-{{_id}}" placeholder="{{#unless showLabels}} {{placeholder}} {{/unless}}" autocapitalize="none" autocorrect="off">
{{#if hasIcon}}
<span class="{{iconClass}}"></span>
{{/if}}
{{#if hasError}}
<span class='red-text'>{{errorText}}</span>
{{/if}}
</div>
</div>
</template>

Expand Down

0 comments on commit 3305c3c

Please sign in to comment.