<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package FixMyStreet::App::Form::Waste::GardenTandC;

use utf8;
use HTML::FormHandler::Moose::Role;

has_field tandc =&gt; (
    type =&gt; 'Checkbox',
    required =&gt; 1,
    label =&gt; 'Terms and conditions',
    build_option_label_method =&gt; sub {
        my $cobrand = $_[0]-&gt;form-&gt;{c}-&gt;cobrand;
        my $text;
        if ($cobrand-&gt;moniker eq 'brent') {
            $text = 'I agree to the &lt;a href="/about/garden_terms" target="_blank"&gt;terms and conditions&lt;/a&gt; and accept that if my bin does not display a valid bin sticker, it will not be collected';
        } else {
            $text = 'I agree to the &lt;a href="/about/garden_terms" target="_blank"&gt;terms and conditions&lt;/a&gt;';
        }
        return FixMyStreet::Template::SafeString-&gt;new($text);
    },
);

1;
</pre></body></html>