1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-01 10:50:37 +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 {
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_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>
@@ -52,8 +52,8 @@
</div>
<?php
echo (
Form::submit('register', __('Register', 'users'), array('class' => 'btn btn-primary')).Html::nbsp(2).
Html::anchor(__('Cancel', 'users'), 'index.php?id=users', array('title' => __('Cancel', 'users'), 'class' => 'btn btn-default')).
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-phone btn-default')).
Form::close()
);
?>

View File

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

View File

@@ -1,6 +1,6 @@
<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">
<?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>
@@ -18,9 +18,9 @@
<thead>
<tr>
<th><?php echo __('Username', 'users'); ?></th>
<th><?php echo __('Email', 'users'); ?></th>
<th><?php echo __('Registered', 'users'); ?></th>
<th><?php echo __('Role', 'users'); ?></th>
<th class="visible-lg hidden-xs"><?php echo __('Email', 'users'); ?></th>
<th class="visible-lg hidden-xs"><?php echo __('Registered', 'users'); ?></th>
<th class="visible-lg hidden-xs"><?php echo __('Role', 'users'); ?></th>
<th></th>
</tr>
</thead>
@@ -30,13 +30,13 @@
<td>
<?php echo Html::toText($user['login']); ?>
</td>
<td>
<td class="visible-lg hidden-xs">
<?php echo Html::toText($user['email']); ?>
</td>
<td>
<td class="visible-lg hidden-xs">
<?php echo Date::format($user['date_registered']); ?>
</td>
<td>
<td class="visible-lg hidden-xs">
<?php echo $roles["{$user['role']}"]; ?>
</td>
<td>