Sha256: 966df32ccb65364b2522485d8d2cae7adcc032c4428774c273dbf10985c7f5cd

Contents?: true

Size: 974 Bytes

Versions: 1

Compression:

Stored size: 974 Bytes

Contents

.row
  = render "header"

.row
  .search-form
    fieldset
      legend Filters
      = search_form_for @drugs_search do |f|
        .row
          .small-9.large-8.columns
            = f.label "Name or type"
            = f.search_field :name_or_drug_types_name_start
          .small-3.large-4.columns.actions
            = f.submit t("helpers.submit.filter"), class: "button"
            span= " or "
            = link_to t("helpers.reset"), drugs_drugs_path

.row
  table.drugs
    thead
      tr
        th.col-width-small
        th Name
    tbody
      - @drugs.each do |drug|
        tr
          td
            = link_to "Edit", edit_drugs_drug_path(drug)
            = pipe_separator
            = link_to "Delete", drugs_drug_path(drug),
              id: "#{drug.id}-drug",
              method: :delete,
              data: { confirm: I18n.t("prompts.confirm_delete") }
          td
            = link_to drug, edit_drugs_drug_path(drug)

  = paginate @drugs

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta4 app/views/renalware/drugs/drugs/index.html.slim