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

Version Path
blacklight-spotlight-0.15.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.14.2 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.14.1 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.14.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.13.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.12.1 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.12.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.11.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.10.3 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.10.2 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.10.1 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.10.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.9.2 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.9.1 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.9.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.8.2 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.8.1 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.8.0 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.7.2 app/views/spotlight/resources/_form.html.erb
blacklight-spotlight-0.7.1 app/views/spotlight/resources/_form.html.erb