Fix for add company link

This commit is contained in:
Hillel Coren 2016-06-25 22:05:08 +03:00
parent 45fce3bfe9
commit 74e5b80f8c

View File

@ -5,7 +5,7 @@
<center> <center>
@if (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5) @if (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5)
{!! Button::success(trans('texts.add_company'))->asLinkTo('/login?new_company=true') !!} {!! Button::success(trans('texts.add_company'))->asLinkTo(url('/login?new_company=true')) !!}
@endif @endif
</center> </center>
@ -27,7 +27,7 @@
@if (isset($account->logo_url)) @if (isset($account->logo_url))
{!! HTML::image($account->logo_url.'?no_cache='.time(), 'Logo', ['width' => 100]) !!} {!! HTML::image($account->logo_url.'?no_cache='.time(), 'Logo', ['width' => 100]) !!}
@endif @endif
</td> </td>
<td> <td>
<h3>{{ $account->account_name }}<br/> <h3>{{ $account->account_name }}<br/>
<small>{{ $account->user_name }} <small>{{ $account->user_name }}
@ -53,13 +53,13 @@
<h4 class="modal-title" id="myModalLabel">{{ trans('texts.unlink_account') }}</h4> <h4 class="modal-title" id="myModalLabel">{{ trans('texts.unlink_account') }}</h4>
</div> </div>
<div class="container"> <div class="container">
<h3>{{ trans('texts.are_you_sure') }}</h3> <h3>{{ trans('texts.are_you_sure') }}</h3>
</div> </div>
<div class="modal-footer" id="signUpFooter"> <div class="modal-footer" id="signUpFooter">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.cancel') }}</button> <button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.cancel') }}</button>
<button type="button" class="btn btn-primary" onclick="unlinkAccount()">{{ trans('texts.unlink') }}</button> <button type="button" class="btn btn-primary" onclick="unlinkAccount()">{{ trans('texts.unlink') }}</button>
</div> </div>
</div> </div>
</div> </div>
@ -67,19 +67,19 @@
<script type="text/javascript"> <script type="text/javascript">
function showUnlink(userAccountId, userId) { function showUnlink(userAccountId, userId) {
NINJA.unlink = { NINJA.unlink = {
'userAccountId': userAccountId, 'userAccountId': userAccountId,
'userId': userId 'userId': userId
}; };
$('#unlinkModal').modal('show'); $('#unlinkModal').modal('show');
return false; return false;
} }
function unlinkAccount() { function unlinkAccount() {
window.location = '{{ URL::to('/unlink_account') }}' + '/' + NINJA.unlink.userAccountId + '/' + NINJA.unlink.userId; window.location = '{{ URL::to('/unlink_account') }}' + '/' + NINJA.unlink.userAccountId + '/' + NINJA.unlink.userId;
} }
</script> </script>
@stop @stop