Jump to content

'Форма авторизации'


Estomel
 Share

Recommended Posts

Здравствуйте, возможно ли сделать форму авторизации вот такого вида? (Сразу ввод логина и пароля) а не кнопки , нужны именно поля ввода сразу.
5acb8caf4e10f_.png.63f757edfac0da99ea8ebb87e5846c20.png

В любом месте где я захочу поставить,?  а стандартные кнопки регистрации и авторизации убрать. (хотя убрать я и сам могу, мне бы такую форму сделать )
Подскажите можно ли так.

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

@ANDROS  ну сайт уже на другом движке стоит, испортили сайт, осталась только его сохраненная копия, но я абсолютно точно знаю что авторизация это dle движок. у сайта была интеграция 2-х сторонняя dle и ipb 3

Link to comment
Share on other sites

7 часов назад, ANDROS сказал:

@Estomel ссылочку этого сайта где такая авторизация

Насколько я понял это и есть форма авторизации.
 

<form accept-charset='utf-8' class="ipsPad ipsForm ipsForm_vertical" method='post' action='{$action}' data-ipsValidation novalidate>
	<input type="hidden" name="{$id}_submitted" value="1">
	{{foreach $hiddenValues as $k => $v}}
		<input type="hidden" name="{$k}" value="{$v}">
	{{endforeach}}
	<h4 class="ipsType_sectionHead">{lang="login"}</h4>
	<br><br>
	<ul class='ipsList_reset'>
		{{foreach $elements as $collection}}
			{{foreach $collection as $input}}
				{{if $input instanceof \IPS\Helpers\Form\Text}}
					<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
						<input type="{$input->formType}" required placeholder="{lang="$input->name"}" name='{$input->name}' id='{$input->htmlId}'>
					</li>
				{{else}}
					{$input->rowHtml($form)|raw}
				{{endif}}
			{{endforeach}}
		{{endforeach}}
		<li class="ipsFieldRow ipsFieldRow_fullWidth">
			<br>
			<button type="submit" class="ipsButton ipsButton_primary ipsButton_small" id="elSignIn_submit">{lang="login"}</button>
			<br>
			<p class="ipsType_right ipsType_small">
				<a href='{url="app=core&module=system&controller=lostpass" seoTemplate="lostpassword"}' data-ipsDialog data-ipsDialog-title='{lang="forgotten_password"}'>{lang="forgotten_password"}</a>
			</p>
		</li>
	</ul>
</form>

 

Link to comment
Share on other sites

@ANDROS  Помогите плиз с авторизацией, у меня получилось вывести поля для логина и пароля, а вот кнопку войти вывести не удалось,
Точнее вывести могу но она не работает. 
Вот этот код выводит поля, но они абсолютно не реагируют на кнопку войти((

<ul class='ipsField_translatable ipsList_reset'>
	<li class='ipsClearfix'>
		<input type='text' name="{$name}[un]" placeholder="{lang="username"}" {{if isset( $value['un'] )}}value="{$value['un']}"{{endif}}>
	</li>
  
	<li class='ipsClearfix'>		
		<input type='password' name="{$name}[pw]" placeholder="{lang="password"}" {{if isset( $value['pw'] )}}value="{$value['pw']}"{{endif}}>
	</li>
</ul>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Privacy Policy