Added missing templates.

This commit is contained in:
Martin Edenhofer 2017-04-10 11:26:39 +02:00
parent 873df9528a
commit ddbee1ee8f
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<div class="tokenfield form-control u-positionOrigin">
<input class="js-objectId" type="hidden" value="<%= @value %>" name="<%- @attribute.name %>" tabindex="-1">
<% if @attribute.multiple: %>
<%- @tokens %>
<% end %>
<input name="<%- @attribute.name %>_completion" class="user-select token-input js-objectSelect" autocapitalize="off" placeholder="<%- @attribute.placeholder %>" autocomplete="off" role="textbox" aria-autocomplete="list" value="<%= @name %>" aria-haspopup="true">
<% if @attribute.disableCreateObject isnt true: %><%- @Icon('arrow-down', 'dropdown-arrow') %><% end %>
</div>
<div class="dropdown-menu" aria-labelledby="customer_id">
<ul class="recipientList" role="menu"></ul>
</div>

View file

@ -0,0 +1,11 @@
<li class="recipientList-entry js-object" data-object-id="<%= @object.id %>">
<div class="recipientList-iconSpacer">
<%- @Icon(@icon, 'recipientList-icon') %>
</div>
<div class="recipientList-name">
<%= @object.displayName() %>
<% if @object.organization: %>
<span class="recipientList-detail">- <%= @object.organization.displayName() %></span>
<% end %>
</div>
</li>