]> BookStack Code Mirror - bookstack/commitdiff
Merge branch 'v0.9'
authorDan Brown <redacted>
Tue, 3 May 2016 20:30:55 +0000 (21:30 +0100)
committerDan Brown <redacted>
Tue, 3 May 2016 20:30:55 +0000 (21:30 +0100)
1  2 
resources/views/settings/index.blade.php

index ce7a8d5d14acec3a0d531e0c731c759ffe08ed14,1d4f2ebda8ed221abb9f2954bc920f29ae3c4dc8..ad0b6cbfb7fa687af6cdc18aa2aa42388d3bc072
@@@ -4,11 -4,11 +4,11 @@@
  
      @include('settings/navbar', ['selected' => 'settings'])
  
- <div class="container small">
+ <div class="container small settings-container">
  
      <h1>Settings</h1>
  
-     <form action="/settings" method="POST">
+     <form action="/settings" method="POST" ng-cloak>
          {!! csrf_field() !!}
  
          <h3>App Settings</h3>
@@@ -66,8 -66,8 +66,8 @@@
                  <div class="form-group">
                      <label for="setting-registration-role">Default user role after registration</label>
                      <select id="setting-registration-role" name="setting-registration-role" @if($errors->has('setting-registration-role')) class="neg" @endif>
 -                        @foreach(\BookStack\Role::all() as $role)
 -                            <option value="{{$role->id}}"
 +                        @foreach(\BookStack\Role::visible() as $role)
 +                            <option value="{{$role->id}}" data-role-name="{{ $role->name }}"
                                      @if(setting('registration-role', \BookStack\Role::first()->id) == $role->id) selected @endif
                                      >
                                  {{ $role->display_name }}
@@@ -94,6 -94,9 +94,9 @@@
          <hr class="margin-top">
  
          <div class="form-group">
+             <span class="float right muted">
+                 BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}
+             </span>
              <button type="submit" class="button pos">Save Settings</button>
          </div>
      </form>