Sha256: c28257cb90cac39af362429a05d6634b6215b987bd0260a1308ede5f7c9cfe05

Contents?: true

Size: 1.43 KB

Versions: 4

Compression:

Stored size: 1.43 KB

Contents

<div class="modal inmodal" id="modal_search" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content animated bounceInRight">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only"><%= I18n.t("close") %></span></button>
        <i class="fa fa-search modal-icon"></i>
        <h4 class="modal-title"><%= I18n.t("search") %></h4>
        <small class="font-bold"></small>
      </div>
      <div class="modal-body">
        <% if @crud_associacao.present? %>
          <% url = query_crud_associacao_path(model: params[:model], id: params[:id], associacao: params[:associacao]) %>
        <% else %>
          <% url = query_crud_path(model: @model.name.underscore) %>
        <% end %>
        <%= raro_search_form(@model, 'records','records', url) do %>
          <% raro_group "#{@crud_helper.title}" %>
          <% @crud_helper.search_fields.each do |att| %>
            <% if att[:sf].present? && !att[:sf][:visible_if].nil? %>
              <% if ((att[:sf][:visible_if].class == Proc && !att[:sf][:visible_if].call(att)) || (att[:sf][:visible_if].class != Proc && !att[:sf][:visible_if])) %>
                <% next %>
              <% end %>
            <% end %>
            <% raro_field att[:attribute], att[:sf] %>
          <%end%>
        <%end%>
      </div>
    </div>
  </div>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
templus_models-3.0.12 app/views/crud/_search.html.erb
templus_models-3.0.10 app/views/crud/_search.html.erb
templus_models-3.0.9 app/views/crud/_search.html.erb
templus_models-3.0.8 app/views/crud/_search.html.erb