Sha256: 6cc5957bde67b48efaabe3026507bd7b589f45462d47334cab636b52e7323601

Contents?: true

Size: 527 Bytes

Versions: 7

Compression:

Stored size: 527 Bytes

Contents

<div class="list-group">
#{
rodauth.accounts_in_session.map do |account| 
  next if account[rodauth.account_id_column] == rodauth.session_value

  <<-OUT
    <form method="post" class="rodauth" role="form" id="select-account-form">
      #{rodauth.csrf_tag}
      <input type="hidden" name="#{rodauth.login_param}" value="#{account[rodauth.login_column]}" />
      <button type="submit" class="list-group-item list-group-item-action">
        #{account[rodauth.login_column]}
      </button>
    </form>
  OUT
end.join
}
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rodauth-select-account-0.1.3 templates/select-account.str
rodauth-select-account-0.1.2 templates/select-account.str
rodauth-select-account-0.1.1 templates/select-account.str
rodauth-select-account-0.1.0 templates/select-account.str
rodauth-select-account-0.0.4 templates/select-account.str
rodauth-select-account-0.0.3 templates/select-account.str
rodauth-select-account-0.0.2 templates/select-account.str