Changed button styles

This commit is contained in:
andystrobel 2015-08-30 21:35:51 +02:00
parent 0b94bfe347
commit 0e094ff3cd
6 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ use yii\helpers\Html;
<?php
if (!Yii::$app->user->isGuest && !Yii::$app->user->id === $user->id) {
$followed = $user->isFollowedByUser();
echo Html::a(Yii::t('DirectoryModule.views_directory_members', 'Follow'), 'javascript:setFollow("' . Url::to(['/user/profile/follow']) . '", "' . $user->id . '")', array('class' => 'btn btn-success btn-sm ' . (($followed) ? 'hide' : ''), 'id' => 'button_follow_' . $user->id));
echo Html::a(Yii::t('DirectoryModule.views_directory_members', 'Follow'), 'javascript:setFollow("' . Url::to(['/user/profile/follow']) . '", "' . $user->id . '")', array('class' => 'btn btn-info btn-sm ' . (($followed) ? 'hide' : ''), 'id' => 'button_follow_' . $user->id));
echo Html::a(Yii::t('DirectoryModule.views_directory_members', 'Unfollow'), 'javascript:setUnfollow("' . Url::to(['/user/profile/unfollow']) . '", "' . $user->id . '")', array('class' => 'btn btn-primary btn-sm ' . (($followed) ? '' : 'hide'), 'id' => 'button_unfollow_' . $user->id));
}
?>

View File

@ -44,7 +44,7 @@ use yii\helpers\Url;
<?php
if (!Yii::$app->user->isGuest && !$space->isMember()) {
$followed = $space->isFollowedByUser();
echo Html::a(Yii::t('DirectoryModule.views_directory_members', 'Follow'), 'javascript:setFollow("' . $space->createUrl('/space/space/follow') . '", "' . $space->id . '")', array('class' => 'btn btn-success btn-sm ' . (($followed) ? 'hide' : ''), 'id' => 'button_follow_' . $space->id));
echo Html::a(Yii::t('DirectoryModule.views_directory_members', 'Follow'), 'javascript:setFollow("' . $space->createUrl('/space/space/follow') . '", "' . $space->id . '")', array('class' => 'btn btn-info btn-sm ' . (($followed) ? 'hide' : ''), 'id' => 'button_follow_' . $space->id));
echo Html::a(Yii::t('DirectoryModule.views_directory_members', 'Unfollow'), 'javascript:setUnfollow("' . $space->createUrl('/space/space/unfollow') . '", "' . $space->id . '")', array('class' => 'btn btn-primary btn-sm ' . (($followed) ? '' : 'hide'), 'id' => 'button_unfollow_' . $space->id));
}
?>

View File

@ -15,8 +15,8 @@ if ($membership === null) {
} elseif ($membership->status == Membership::STATUS_INVITED) {
?>
<div class="btn-group">
<?php echo Html::a(Yii::t('SpaceModule.widgets_views_membershipButton', 'Accept Invite'), $space->createUrl('/space/membership/invite-accept'), array('class' => 'btn btn-success')); ?>
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php echo Html::a(Yii::t('SpaceModule.widgets_views_membershipButton', 'Accept Invite'), $space->createUrl('/space/membership/invite-accept'), array('class' => 'btn btn-info')); ?>
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>

View File

@ -5,5 +5,5 @@ use yii\helpers\Html;
if ($user->isFollowedByUser()) {
print Html::a(Yii::t("UserModule.widgets_views_followButton", "Unfollow"), $user->createUrl('/user/profile/unfollow'), array('class' => 'btn btn-primary', 'data-method'=>'POST'));
} else {
print Html::a(Yii::t("UserModule.widgets_views_followButton", "Follow"), $user->createUrl('/user/profile/follow'), array('class' => 'btn btn-success', 'data-method'=>'POST'));
print Html::a(Yii::t("UserModule.widgets_views_followButton", "Follow"), $user->createUrl('/user/profile/follow'), array('class' => 'btn btn-info', 'data-method'=>'POST'));
}

View File

@ -15,7 +15,7 @@ use yii\helpers\Url;
<br />
<hr>
<?php echo Html::a(Yii::t('base', 'Login'), Yii::$app->user->loginUrl, array('class' => 'btn btn-success', 'data-toggle'=>'modal', 'data-target'=>'#globalModal')); ?>
<?php echo Html::a(Yii::t('base', 'Login'), Yii::$app->user->loginUrl, array('class' => 'btn btn-info', 'data-toggle'=>'modal', 'data-target'=>'#globalModal')); ?>
<a href="javascript:history.back();" class="btn btn-primary pull-right"><?php echo Yii::t('base', 'Back'); ?></a>
</div>
</div>

View File

@ -327,7 +327,7 @@
handler.push(saveHandler);
callback.push(options.onSave);
editorFooter.append('<button class="btn btn-success" data-provider="'
editorFooter.append('<button class="btn btn-info" data-provider="'
+ ns
+ '" data-handler="'
+ saveHandler