1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-13 16:44:53 +02:00

Add Monstra from HG Commit 683dcb70c4cc

This commit is contained in:
Awilum
2012-09-25 19:09:50 +03:00
parent d2db42b2bb
commit 4a5fea5f5b
251 changed files with 35026 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<!-- Users_add -->
<?php
echo ( '<h2>'.__('New User Registration', 'users').'</h2>' );
echo (
Html::br().
Form::open().
Form::hidden('csrf', Security::token()).
Form::label('login', __('Username', 'users')).
Form::input('login', null, array('class' => 'span3'))
);
if (isset($errors['users_this_user_alredy_exists'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_this_user_alredy_exists'].'</span>';
if (isset($errors['users_empty_login'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_empty_login'].'</span>';
echo (
Form::label('password', __('Password', 'users')).
Form::password('password', null, array('class' => 'span3'))
);
if (isset($errors['users_empty_password'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_empty_password'].'</span>';
echo (
Form::label('email', __('Email', 'users')).
Form::input('email', null, array('class' => 'span3')). Html::br().
Form::label('role', __('Role', 'users')).
Form::select('role', array('admin' => __('Admin', 'users'), 'editor' => __('Editor', 'users'), 'user' => __('User', 'users')), null, array('class' => 'span3')). Html::br(2).
Form::submit('register', __('Register', 'users'), array('class' => 'btn default')).
Form::close()
);
?>
<!-- /Users_add -->