Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] wloginbox: ability to style the submit button

  • Loading branch information...
commit 77c4e5a25bc809bdbd4beeb1f2ba2c9c3b71367a 1 parent c9f6117
@Aqua-Ye Aqua-Ye authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 stdlib/widgets/loginbox/loginbox.opa
View
4 stdlib/widgets/loginbox/loginbox.opa
@@ -35,6 +35,7 @@ type WLoginbox.stylers = {
login_box : WStyler.styler
logged_box : WStyler.styler
unlogged_box : WStyler.styler
+ submit : WStyler.styler
}
type WLoginbox.config = {
@@ -74,6 +75,7 @@ WLoginbox =
login_box = WStyler.empty
logged_box = WStyler.empty
unlogged_box = WStyler.empty
+ submit = WStyler.empty
}
} : WLoginbox.config
@@ -168,7 +170,7 @@ WLoginbox =
{none} -> <></>}
<input id={password_id} type="password" autocomplete="on" name="{password_id}" placeholder="{init_password}" onready={place_holder(password_id,init_password,true)} />
{match config.password_help {some=ph} -> ph {none} -> <></>}
- <input type="submit" value="{config.login_text}" />
+ {<button type="submit">{config.login_text}</button> |> WStyler.add(config.stylers.submit, _)}
</span>
</form>;
// Login XHTML chunk itself
Please sign in to comment.
Something went wrong with that request. Please try again.