You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="corner-logo"><img src="/assets/compass.svg" height="40"/></div>
  4. <div class="logged-in">
  5. <span>{{ $displayURL }}</span>
  6. <span><a href="/auth/logout">sign out</a></span>
  7. </div>
  8. <div class="dashboard">
  9. <h2>Databases</h2>
  10. <ul class="databases">
  11. @foreach($databases as $database)
  12. <li class="db"><a href="/map/{{ $database->name }}">{{ $database->name }}</a></li>
  13. @endforeach
  14. <li>
  15. <a href="javascript:$('.databases .create').removeClass('hidden');$('.create-link').addClass('hidden');" class="pure-button create-link {{ session('error') ? 'hidden' : '' }}">create database</a>
  16. @if(session('error'))
  17. <div class="error">{{ session('error') }}</div>
  18. @endif
  19. <span class="create {{ session('error') ? '' : 'hidden' }}">
  20. <form action="/database/create" method="post" class="pure-form">
  21. <input type="text" name="name" value="{{ session('database-name') }}">
  22. <button type="submit" class="pure-button pure-button-primary">Create</button>
  23. </form>
  24. </span>
  25. </li>
  26. </ul>
  27. </div>
  28. @endsection