Sha256: 97c9e00102db63cc065fae22645842f106a672be2adbb282b92599d0dd2931da
Contents?: true
Size: 1.48 KB
Versions: 11
Compression:
Stored size: 1.48 KB
Contents
<%= form_with model: provider, url: form_url do |form| %> <fieldset class="no-border-top"> <legend> Dados da Provider </legend> <div class="row"> <div class="col-12 col-md-6"> <%= form.field_container :name do %> <%= form.label :name, "Nome", class: 'required' %> <%= form.text_field :name, required: true, class: 'fullwidth' %> <%= form.error_message_on :name %> <% end %> <%= form.field_container :active do %> <label> <%= form.check_box :active, { checked: provider.active.nil? ? true : provider.active } %> <%= "Ativo" %> </label> <% end %> </div> <div class="col-12 col-md-6"> <%= form.field_container :name do %> <%= form.label :class_name, "Classe", class: 'required' %> <%= form.select :class_name, @providers_classes, {selected: provider.class_name, include_blank: true }, { class: "custom-select fullwidth", required: true } %> <%= form.error_message_on :class_name %> <% end %> </div> </div> </fieldset> <div class="form-buttons filter-actions actions" data-hook="buttons"> <%= form.submit "Salvar", class: 'btn btn-primary' %> <% if params["action"] == 'edit' %> <%= link_to "Excluir", admin_solidus_tec_estimator_provider_path(provider.id), method: :delete, data: { confirm: "Tem certeza que deseja excluir o provider?"}, class: 'button' %> <% end %> </div> <% end %>
Version data entries
11 entries across 11 versions & 1 rubygems