Jump to content

Question

Posted

Okay, so I know this is going to seem like a stupid question to a lot of people but I need some help on this code. On the client side, the login form is created by the following code. This code gets the login path, crsf token and all that stuff... I need to add class="form-signin" to the form but I have no idea how to do so.

 

I just want to form to have the default stuff, plus class="form-signin"

		<?php
		$this->WidgetClient->clear();
		
		$this->Form->create();
		if ($this->Html->ifSet($vars->forward_to))
			$this->Form->fieldHidden("forward_to", $vars->forward_to);
		?>

 

 

Thanks

4 answers to this question

Recommended Posts

  • 0
Posted

See http://source-docs.blesta.com/class-Form.html#_fieldHidden click to Expand, I believe you want to add a third parameter to fieldHidden consisting of an array containing your form-signin class.

 

Thanks, what I've tried didn't work.

 

 

It's this line here:

$this->Form->create();

If I put anything inside create() then it just automatically becomes the action, If I add it after that line then it does nothing.

  • 0
Posted
$this->Form->create($this->base_uri . "login/", array('class' => "form-signin"));

 

 

Tyson, you're the MAN!!

 

 

I'm thinking about moving to a theme sorta like the following. One thing I want is for everything to look exactly the same when moving from my front page static template to the back blesta client access.

 

This is actually coded. No photoshoping, but If I do this I have a long way to go.

 

 

Desktop:

 

login_largeScreen.png

 

 

Tablet:

 

login_tablet.png

 

 

Phone:

 

login_phone.png

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...