Sha256: d25370800d4c73f4085b1b52de4d810e10621bcc90c9e56efdec96922a95447c
Contents?: true
Size: 1.1 KB
Versions: 28
Compression:
Stored size: 1.1 KB
Contents
<%= form_for [@resource.exhibit, @resource.becomes(Spotlight::Resource)] do |f| %> <%= hidden_field_tag :popup, value: from_popup? %> <div class="form-group"> <div class="form-group <%= @resource.url and @resource.needs_provider? ? 'has-warning' : 'has-success' %> has-feedback"> <%= f.label :url, class: 'control-label' %> <%= f.hidden_field :url, class: 'form-control' %> <%= f.text_field :url, class: 'form-control', disabled: true %> <span class="glyphicon <%= @resource.url and @resource.needs_provider? ? 'glyphicon-warning-sign' : 'glyphicon-ok' %> form-control-feedback"></span> <% if @resource.url and @resource.needs_provider? %> <p class="help-block"><%= t(:'.needs_provider') %></p> <% elsif @resource.url %> <p class="help-block"><%= t(:'.has_provider') %></p> <% end %> </div> </div> <div class="form-actions col-md-7 col-sm-7"> <div class="primary-actions"> <%= cancel_link @resource, 'javascript:window.close()', class: 'btn btn-default' %> <%= f.submit nil, class: 'btn btn-primary' %> </div> </div> <% end %>
Version data entries
28 entries across 28 versions & 1 rubygems