Code Monkey home page Code Monkey logo

members-forms's People

Contributors

clemsos avatar michael-e avatar nickdunn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

members-forms's Issues

Confusion: required custom fields at registration

Hi Michael,

Sorry to create an issue for this - I think the issue is my misunderstanding.

My members section has some custom fields (address fields, mainly) that need to be entered at registration, and are defined as required in the section.

I merrily edited my working copy of utilities/members.form-register.xsl:

<xsl:call-template name="members:input">
    <xsl:with-param name="field" select="'address-1'"/>
    <xsl:with-param name="event" select="$event"/>
</xsl:call-template>

The form HTML output label and input attribute values are blank.

Is this because:

  1. members-forms isn't intended to do this, and I should add the custom fields labels and inputs myself (or maybe use form-controls)?
  2. I need to add the fields and their possible XML error messages to members.config.xsl?

Single quote marks in message attributes in config examples

In Symphony 2.2.5, the XML returned for an error result for a failed registration attempt is like this:

<email label="Email" type="missing" message="'E-Mail' is a required field." />

The line in `members.config.en.xsl' is:

<email type="missing" message="E-Mail is a required field."/>

Shouldn't the default message attribute values have the single quote marks in to match Symphony's defaults, like this?:

<email type="missing" message="'E-Mail' is a required field."/>

When I added the single quote marks, the E-Mail field was then applied the invalid class when the E-Mail field was left blank.

One other thing: lines 73-76 have the German word Passwort and not Password. Should these lines contain the English version?

If these things should be corrected, please let me know if I should submit a pull request.

Thanks.

Reset Password Form

<xsl:with-param name="redirect" select="substring-before($current-url, '?')"/>

That destroys success XML and is tricky to catch. I suggest removing it.

Configs

Hi Michael,

I just wanted to suggest usingxml for the config data, rather than an xsl variable. The xsl variable needs parsing through exsl:node-set() where an xml document can be loaded into a variable using document() function, and therefore already be a node-set.

Just a thought. :)

Also, I've been having a play, and I may make an extension based on this concept, to allow the event and field messages to be set via the admin... Don't wait on that though, my schedule is tight.

Update Russian example configuration file

Two things have changed:

  • All error message customizations have been moved to the password field and are simply repeated in the confirmation field. This means that both fields will be rendered invalid.
  • at the top of the config file there should now be a configuration setting for using password postbacks.

@hypnosis: Can you please send a pull request for this? I don't want to ruin your translation!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.