1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 12:17:42 +02:00

#64 Admin Responsive - Next Round

This commit is contained in:
Awilum
2014-05-08 23:20:14 +04:00
parent b697274f86
commit fd3a16d72f
4 changed files with 25 additions and 13 deletions

View File

@@ -557,4 +557,16 @@ td, th {
.btn-phone { .btn-phone {
width: 100%; width: 100%;
} }
/* Users */
.users-btns > div {
display: block;
text-align: left;
margin-top: 10px;
width: 100%;
}
.users-btns > div:nth-child(2) {
margin-top: 15px;
}
} }

View File

@@ -16,7 +16,7 @@
); );
if (isset($errors['users_this_user_alredy_exists'])) echo '<span class="error-message">'.$errors['users_this_user_alredy_exists'].'</span>'; if (isset($errors['users_this_user_alredy_exists'])) echo '<span class="error-message">'.$errors['users_this_user_alredy_exists'].'</span>';
if (isset($errors['users_empty_login'])) echo '<span class="error-message">'.$errors['users_empty_login'].'</span>'; if (isset($errors['users_empty_l-ogin'])) echo '<span class="error-message">'.$errors['users_empty_login'].'</span>';
?> ?>
</div> </div>
@@ -52,8 +52,8 @@
</div> </div>
<?php <?php
echo ( echo (
Form::submit('register', __('Register', 'users'), array('class' => 'btn btn-primary')).Html::nbsp(2). Form::submit('register', __('Register', 'users'), array('class' => 'btn btn-phone btn-primary')).Html::nbsp(2).
Html::anchor(__('Cancel', 'users'), 'index.php?id=users', array('title' => __('Cancel', 'users'), 'class' => 'btn btn-default')). Html::anchor(__('Cancel', 'users'), 'index.php?id=users', array('title' => __('Cancel', 'users'), 'class' => 'btn btn-phone btn-default')).
Form::close() Form::close()
); );
?> ?>

View File

@@ -91,8 +91,8 @@
echo ( echo (
Html::br(). Html::br().
Form::submit('edit_profile', __('Save', 'users'), array('class' => 'btn btn-primary')).Html::nbsp(2). Form::submit('edit_profile', __('Save', 'users'), array('class' => 'btn btn-phone btn-primary')).Html::nbsp(2).
Html::anchor(__('Cancel', 'users'), 'index.php?id=users', array('title' => __('Cancel', 'users'), 'class' => 'btn btn-default')). Html::anchor(__('Cancel', 'users'), 'index.php?id=users', array('title' => __('Cancel', 'users'), 'class' => 'btn btn-phone btn-default')).
Form::close() Form::close()
); );
@@ -117,7 +117,7 @@
</div> </div>
<?php <?php
echo ( echo (
Form::submit('edit_profile_password', __('Save', 'users'), array('class' => 'btn btn-primary')). Form::submit('edit_profile_password', __('Save', 'users'), array('class' => 'btn btn-phone btn-primary')).
Form::close() Form::close()
); );
?> ?>

View File

@@ -1,6 +1,6 @@
<h2 class="margin-bottom-1"><?php echo __('Users', 'users'); ?></h2> <h2 class="margin-bottom-1"><?php echo __('Users', 'users'); ?></h2>
<div class="vertical-align margin-bottom-1"> <div class="users-btns vertical-align margin-bottom-1">
<div class="text-left"> <div class="text-left">
<?php echo Html::anchor(__('Register New User', 'users'), 'index.php?id=users&action=add', array('title' => __('Register New User', 'users'), 'class' => 'btn btn-primary')); ?> <?php echo Html::anchor(__('Register New User', 'users'), 'index.php?id=users&action=add', array('title' => __('Register New User', 'users'), 'class' => 'btn btn-primary')); ?>
</div> </div>
@@ -18,9 +18,9 @@
<thead> <thead>
<tr> <tr>
<th><?php echo __('Username', 'users'); ?></th> <th><?php echo __('Username', 'users'); ?></th>
<th><?php echo __('Email', 'users'); ?></th> <th class="visible-lg hidden-xs"><?php echo __('Email', 'users'); ?></th>
<th><?php echo __('Registered', 'users'); ?></th> <th class="visible-lg hidden-xs"><?php echo __('Registered', 'users'); ?></th>
<th><?php echo __('Role', 'users'); ?></th> <th class="visible-lg hidden-xs"><?php echo __('Role', 'users'); ?></th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@@ -30,13 +30,13 @@
<td> <td>
<?php echo Html::toText($user['login']); ?> <?php echo Html::toText($user['login']); ?>
</td> </td>
<td> <td class="visible-lg hidden-xs">
<?php echo Html::toText($user['email']); ?> <?php echo Html::toText($user['email']); ?>
</td> </td>
<td> <td class="visible-lg hidden-xs">
<?php echo Date::format($user['date_registered']); ?> <?php echo Date::format($user['date_registered']); ?>
</td> </td>
<td> <td class="visible-lg hidden-xs">
<?php echo $roles["{$user['role']}"]; ?> <?php echo $roles["{$user['role']}"]; ?>
</td> </td>
<td> <td>