Note that in the budgets wizard test we now create district with no associated geozone, so the text "all city" will appear in the districts table too, meaning we can't use `within "section", text: "All city" do` anymore since it would result in an ambiguous match. Co-Authored-By: Julian Herrero <microweb10@gmail.com> Co-Authored-By: Javi Martín <javim@elretirao.net>
23 lines
364 B
Ruby
23 lines
364 B
Ruby
class Admin::Geozones::IndexComponent < ApplicationComponent
|
|
include Header
|
|
attr_reader :geozones
|
|
|
|
def initialize(geozones)
|
|
@geozones = geozones
|
|
end
|
|
|
|
private
|
|
|
|
def title
|
|
t("admin.geozones.index.title")
|
|
end
|
|
|
|
def yes_no_text(condition)
|
|
if condition
|
|
t("shared.yes")
|
|
else
|
|
t("shared.no")
|
|
end
|
|
end
|
|
end
|