mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
show friend modal for non logged in user
This commit is contained in:
parent
03f2fc1e81
commit
d2c5506234
1 changed files with 10 additions and 10 deletions
|
|
@ -62,16 +62,6 @@
|
|||
</@footer>
|
||||
</app:myModal>
|
||||
|
||||
<app:myModal modalId="add-friend-modal" header="Add Friend">
|
||||
<form x-bind="submit: addFriend">
|
||||
{#if _view.addFriendError}
|
||||
<div class='alert alert-danger'>{_view.addFriendError}</div>
|
||||
{/}
|
||||
<input type="text" class="input-medium search-query" value="{_newFriend}">
|
||||
<input type="submit" class="btn" value="Add" />
|
||||
</form>
|
||||
</app:myModal>
|
||||
|
||||
{else}
|
||||
<app:myModal modalId="login-modal" header="Login / Register">
|
||||
<a href="/auth/facebook"><img src='/img/facebook-login-register.jpeg' alt="Login / Register With Facebook"/></a>
|
||||
|
|
@ -118,6 +108,16 @@
|
|||
</@footer>
|
||||
</app:myModal>
|
||||
|
||||
<app:myModal modalId="add-friend-modal" header="Add Friend">
|
||||
<form x-bind="submit: addFriend">
|
||||
{#if _view.addFriendError}
|
||||
<div class='alert alert-danger'>{_view.addFriendError}</div>
|
||||
{/}
|
||||
<input type="text" class="input-medium search-query" value="{_newFriend}">
|
||||
<input type="submit" class="btn" value="Add" />
|
||||
</form>
|
||||
</app:myModal>
|
||||
|
||||
<alerts:>
|
||||
{#if _flash.error}
|
||||
<ul class="alert alert-error">
|
||||
|
|
|
|||
Loading…
Reference in a new issue