Sha256: 11c6076162ea27385725a761b9ba47dd1e3f53c8364f9219bf31eb0991944f18

Contents?: true

Size: 902 Bytes

Versions: 27

Compression:

Stored size: 902 Bytes

Contents

module Widgets
  module ResetPassword
    class Base < ErpApp::Widgets::Base

      def index
        @website   = Website.find_by_host(request.host_with_port)
        @login_url = params[:login_url]
        @domain    = @website.configurations.first.get_item(ConfigurationItemType.find_by_internal_identifier('primary_host')).options.first.value

        render
      end

      #should not be modified
      #modify at your own risk
      def locate
        File.dirname(__FILE__)
      end

      class << self
        def title
          "Reset Password"
        end

        def widget_name
          File.basename(File.dirname(__FILE__))
        end

        def base_layout
          begin
            file = File.join(File.dirname(__FILE__),"/views/layouts/base.html.erb")
            IO.read(file)
          rescue
            return nil
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
knitkit-3.0.0 app/widgets/reset_password/base.rb
knitkit-2.1.15 app/widgets/reset_password/base.rb
knitkit-2.1.14 app/widgets/reset_password/base.rb
knitkit-2.1.13 app/widgets/reset_password/base.rb
knitkit-2.1.12 app/widgets/reset_password/base.rb
knitkit-2.1.11 app/widgets/reset_password/base.rb
knitkit-2.1.10 app/widgets/reset_password/base.rb
knitkit-2.1.9 app/widgets/reset_password/base.rb
knitkit-2.1.8 app/widgets/reset_password/base.rb
knitkit-2.1.7 app/widgets/reset_password/base.rb
knitkit-2.1.6 app/widgets/reset_password/base.rb
knitkit-2.1.5 app/widgets/reset_password/base.rb
knitkit-2.1.4 app/widgets/reset_password/base.rb
knitkit-2.1.3 app/widgets/reset_password/base.rb
knitkit-2.1.2 app/widgets/reset_password/base.rb
knitkit-2.1.1 app/widgets/reset_password/base.rb
knitkit-2.1.0 app/widgets/reset_password/base.rb
knitkit-2.0.11 app/widgets/reset_password/base.rb
knitkit-2.0.10 app/widgets/reset_password/base.rb
knitkit-2.0.9 app/widgets/reset_password/base.rb