Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
customize signup / registration and make styling possible
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthias Fenz  
View profile  
 More options Oct 26 2012, 10:42 am
From: Matthias Fenz <matthias.f...@gmail.com>
Date: Fri, 26 Oct 2012 07:42:41 -0700 (PDT)
Local: Fri, Oct 26 2012 10:42 am
Subject: customize signup / registration and make styling possible

Hi there,

i'm trying to customize the signup table generated via ProtoUser to be able
to embed it into a /signup page. At the moment, I can route to
/user/sign_up where the default tableset appears, but it is just embedded
in white space and i'm not able to adjust the styling of the surrounding
page.

Is it possible to use this generated table as a kind of snippet and to
embed it into another page, e.g. a /signup page (or however it may be
named)?

I modified my User.scala like this:

override def signupXhtml(user: TheUserType) = {

    <div class="signUpBox">
    <form method="post" action={S.uri}>
       <table class="testtable">
         <tr>
           <td colspan="2" class="signUpBoxHeader">{ S.??("sign.up") }</td>
         </tr>
        {localForm(user, false, signupFields)}
         <tr>
           <td>&nbsp;</td>
           <td><user:submit/></td>
         </tr>
        </table>
    </form>
    </div>
  }

Now I'm searching for any possibility to add this div "signUpBox" to any
other page...

Every help or hint would be appreciated, thanks in advance everyone,
Matthias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Pollak  
View profile  
 More options Oct 26 2012, 11:20 am
From: David Pollak <feeder.of.the.be...@gmail.com>
Date: Fri, 26 Oct 2012 08:20:52 -0700
Local: Fri, Oct 26 2012 11:20 am
Subject: Re: [Lift] customize signup / registration and make styling possible

object MySignupSnippet {
  def render = User.signupXhtml(new User)

}

On Fri, Oct 26, 2012 at 7:42 AM, Matthias Fenz <matthias.f...@gmail.com>wrote:

--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Fenz  
View profile  
 More options Oct 26 2012, 11:31 am
From: Matthias Fenz <matthias.f...@gmail.com>
Date: Fri, 26 Oct 2012 08:31:42 -0700 (PDT)
Local: Fri, Oct 26 2012 11:31 am
Subject: Re: [Lift] customize signup / registration and make styling possible

Hi David,

as I'm new to Lift, where shall I put this to? Also in User.scala? And can
I call this by <lift:bind... oder <lift:embed... then?

Thanks in advance,
Matthias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Pollak  
View profile  
 More options Oct 26 2012, 11:43 am
From: David Pollak <feeder.of.the.be...@gmail.com>
Date: Fri, 26 Oct 2012 08:43:46 -0700
Local: Fri, Oct 26 2012 11:43 am
Subject: Re: [Lift] customize signup / registration and make styling possible

Please read the first few chapters of http://simply.liftweb.net/

On Fri, Oct 26, 2012 at 8:31 AM, Matthias Fenz <matthias.f...@gmail.com>wrote:

--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Fenz  
View profile  
 More options Oct 26 2012, 11:45 am
From: Matthias Fenz <matthias.f...@gmail.com>
Date: Fri, 26 Oct 2012 08:45:36 -0700 (PDT)
Local: Fri, Oct 26 2012 11:45 am
Subject: Re: [Lift] customize signup / registration and make styling possible

aye aye sir! :)

thank you!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Lunacharsky  
View profile  
 More options Oct 26 2012, 10:47 pm
From: Alexey Lunacharsky <alexey.lunachar...@gmail.com>
Date: Fri, 26 Oct 2012 19:47:11 -0700 (PDT)
Local: Fri, Oct 26 2012 10:47 pm
Subject: Re: [Lift] customize signup / registration and make styling possible

   Hi, Matthias

   This code is to be put under the your snippet package:

   package org.example.lift.snippet
   object MySignupSnippet {
     def render = User.signupXhtml(new User)
   }

   E.g. having such a line in Boot.scala

   LiftRules.addToPackages("org.example.lift")

   path to the snippet source should be
   org/example/lift/snippet/MySignUpSnippet.scala
   (see here for details
   http://simply.liftweb.net/index-3.1.html#toc-Section-3.1)

   After you have snippet code in the place, just put

   <div class="lift:MySignupSnippet"/> anywhere in one of yours HTML
   templates, and that should do the trick.

   Lift knows where to look for the snippet by

   LiftRules.addToPackages("org.example.lift") above.

пятница, 26 октября 2012 г., 22:31:42 UTC+7 пользователь Matthias Fenz
написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Fenz  
View profile  
 More options Oct 27 2012, 3:02 am
From: Matthias Fenz <matthias.f...@gmail.com>
Date: Sat, 27 Oct 2012 00:02:55 -0700 (PDT)
Local: Sat, Oct 27 2012 3:02 am
Subject: Re: [Lift] customize signup / registration and make styling possible

Hi Alexey,

thanks for that! Everything works except the <user:submit /> form, this is
not displayed in the page... Is there anything I forgot?

Matthias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Lunacharsky  
View profile  
 More options Oct 28 2012, 2:41 am
From: Alexey Lunacharsky <alexey.lunachar...@gmail.com>
Date: Sat, 27 Oct 2012 23:41:18 -0700 (PDT)
Local: Sun, Oct 28 2012 2:41 am
Subject: Re: [Lift] customize signup / registration and make styling possible

I'm not sure what would you want to achieve by this tag.

Could you provide some source code you use?
Preferably a sample on github?

суббота, 27 октября 2012 г., 14:02:56 UTC+7 пользователь Matthias Fenz
написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Fenz  
View profile  
 More options Oct 28 2012, 3:48 am
From: Matthias Fenz <matthias.f...@gmail.com>
Date: Sun, 28 Oct 2012 08:48:37 +0100
Local: Sun, Oct 28 2012 3:48 am
Subject: Re: [Lift] customize signup / registration and make styling possible

Well, i just want to say that the Submit-Button is not displayed in the
page where the snippet is placed. All fields and labels are there, but
there is no submit-form and when i try to submit by hitting enter, it
doesn't work either.

Maybe i can provide some code later.

Matthias

Am Sonntag, 28. Oktober 2012 schrieb Alexey Lunacharsky :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Fenz  
View profile  
 More options Oct 28 2012, 9:03 am
From: Matthias Fenz <matthias.f...@gmail.com>
Date: Sun, 28 Oct 2012 06:03:57 -0700 (PDT)
Local: Sun, Oct 28 2012 9:03 am
Subject: Re: [Lift] customize signup / registration and make styling possible

<https://lh5.googleusercontent.com/-KA7XXhwqlWs/UI0tJJubjYI/AAAAAAAAAL...>
Here the code, I do not have a Github account:

---------------------------------

In User.scala

override def signupXhtml(user: TheUserType) = {
    (<form method="post" action={S.uri}>
       <table class="signUpTable">
         <tr>
           <td colspan="2" class="signUpBoxHeader">{ S.??("sign.up") }</td>
         </tr>
        {localForm(user, false, signupFields)}
         <tr>
           <td>&nbsp;</td>
           <td><user:submit /></td>
         </tr>
        </table>
    </form>)

  }

----------------------------------

In snippet/MySignupSnippet.scala

object MySignupSnippet {
  def render = User.signupXhtml(new User)

}

----------------------------------

In signup.html

<div class="lift:MySignupSnippet"></div>

----------------------------------

That's all... The problem - as described - is, that all fields for signup
routine (First-, Lastname, Email, PW, Locales, Timezone) are displayed as
expected, but the Submit-Button is not there (see screenshot). Also when I
try to confirm the fields by pressing Enter, the browser reloads but I am
not redirected to the expected site and there is no new user in the
database. I read a lot in Google groups and other sources, but I found
nothing relating to my problem. I'm also new to Lift and Scala, so I
haven't found any possibility to build a workaround... If you (or anybody
other) has any idea how to solve this problem - I'd be very thankful!

Greets, Matthias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Lunacharsky  
View profile  
 More options Oct 29 2012, 4:08 am
From: Alexey Lunacharsky <alexey.lunachar...@gmail.com>
Date: Mon, 29 Oct 2012 01:08:09 -0700 (PDT)
Local: Mon, Oct 29 2012 4:08 am
Subject: Re: [Lift] customize signup / registration and make styling possible

I hink you should try User.signup method instead of  User.signupXhtml(new
User) in the snippet
because as I see in the sources <user:submit/> is bind at that place:

    def innerSignup = bind("user",
                           signupXhtml(theUser),
                           "submit" -> signupSubmitButton(S.?("sign.up"),
testSignup _))

воскресенье, 28 октября 2012 г., 20:03:57 UTC+7 пользователь Matthias Fenz
написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthias Fenz  
View profile  
 More options Oct 30 2012, 8:26 am
From: Matthias Fenz <matthias.f...@gmail.com>
Date: Tue, 30 Oct 2012 05:26:01 -0700 (PDT)
Local: Tues, Oct 30 2012 8:26 am
Subject: Re: [Lift] customize signup / registration and make styling possible

OK, I got the solution... It was so simple... I want to post it here if
somebody comes around with the same problem:

I just added the follwoing code to my User.scala:

override def screenWrap: Box[Node] = Full(
    <lift:surround with="signup" at="content">
      <div id="box1" class="topbg">
          <lift:bind />
      </div>
    </lift:surround>
  )

By this I achieved that the auto-generated signup-form from ProtoUser is
rendered in my Signup.html file... Now I am able to style the complete site!

Thanks to David and спасибо to Alexey for your help! :)

Matthias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Lunacharsky  
View profile   Translate to Translated (View Original)
 More options Oct 30 2012, 11:50 am
From: Alexey Lunacharsky <alexey.lunachar...@gmail.com>
Date: Tue, 30 Oct 2012 08:50:54 -0700 (PDT)
Local: Tues, Oct 30 2012 11:50 am
Subject: Re: [Lift] customize signup / registration and make styling possible

You're welcome!

вторник, 30 октября 2012 г., 19:26:01 UTC+7 пользователь Matthias Fenz
написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »