Added note label.

This commit is contained in:
Martin Edenhofer 2012-09-04 18:38:33 +02:00
parent 46ab669e1a
commit d15c109740

View file

@ -1,7 +1,8 @@
<div class="control-group <%= @attribute.item_class %>"> <div class="control-group <%= @attribute.item_class %>">
<label class="control-label" for="<%= @attribute.id %>"><%- T(@attribute.display) %><% if !@attribute.null: %> *<% end %></label> <label class="control-label" for="<%= @attribute.id %>"><%- T(@attribute.display) %><% if !@attribute.null: %> *<% end %>
</label>
<div class="controls"> <div class="controls">
<%- @item %> <%- @item %><% if @attribute.note: %><span class="icon-question-sign" title="<%- T(@attribute.note) + ' ' %>"></span><% end %>
<span class="help-inline"></span> <span class="help-inline"></span>
<span class="help-block"><% if @attribute.help: %><%- T(@attribute.help) + ' ' %><% end %><%- @attribute.link %></span> <span class="help-block"><% if @attribute.help: %><%- T(@attribute.help) + ' ' %><% end %><%- @attribute.link %></span>
</div> </div>