Dan Brown

Fixed some label casing and fixed incorrect notifications

Fixed the book & chapter permission update notification stating the 'page permissions' have been updated.
...@@ -267,7 +267,7 @@ class BookController extends Controller ...@@ -267,7 +267,7 @@ class BookController extends Controller
267 $book = $this->bookRepo->getBySlug($bookSlug); 267 $book = $this->bookRepo->getBySlug($bookSlug);
268 $this->checkOwnablePermission('restrictions-manage', $book); 268 $this->checkOwnablePermission('restrictions-manage', $book);
269 $this->bookRepo->updateRestrictionsFromRequest($request, $book); 269 $this->bookRepo->updateRestrictionsFromRequest($request, $book);
270 - session()->flash('success', 'Page Restrictions Updated'); 270 + session()->flash('success', 'Book Restrictions Updated');
271 return redirect($book->getUrl()); 271 return redirect($book->getUrl());
272 } 272 }
273 } 273 }
......
...@@ -187,7 +187,7 @@ class ChapterController extends Controller ...@@ -187,7 +187,7 @@ class ChapterController extends Controller
187 $chapter = $this->chapterRepo->getBySlug($chapterSlug, $book->id); 187 $chapter = $this->chapterRepo->getBySlug($chapterSlug, $book->id);
188 $this->checkOwnablePermission('restrictions-manage', $chapter); 188 $this->checkOwnablePermission('restrictions-manage', $chapter);
189 $this->chapterRepo->updateRestrictionsFromRequest($request, $chapter); 189 $this->chapterRepo->updateRestrictionsFromRequest($request, $chapter);
190 - session()->flash('success', 'Page Restrictions Updated'); 190 + session()->flash('success', 'Chapter Restrictions Updated');
191 return redirect($chapter->getUrl()); 191 return redirect($chapter->getUrl());
192 } 192 }
193 } 193 }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
29 <toggle-switch name="setting-app-secure-images" value="{{ setting('app-secure-images') }}"></toggle-switch> 29 <toggle-switch name="setting-app-secure-images" value="{{ setting('app-secure-images') }}"></toggle-switch>
30 </div> 30 </div>
31 <div class="form-group"> 31 <div class="form-group">
32 - <label for="setting-app-editor">Page Editor</label> 32 + <label for="setting-app-editor">Page editor</label>
33 <p class="small">Select which editor will be used by all users to edit pages.</p> 33 <p class="small">Select which editor will be used by all users to edit pages.</p>
34 <select name="setting-app-editor" id="setting-app-editor"> 34 <select name="setting-app-editor" id="setting-app-editor">
35 <option @if(setting('app-editor') === 'wysiwyg') selected @endif value="wysiwyg">WYSIWYG</option> 35 <option @if(setting('app-editor') === 'wysiwyg') selected @endif value="wysiwyg">WYSIWYG</option>
...@@ -39,12 +39,12 @@ ...@@ -39,12 +39,12 @@
39 </div> 39 </div>
40 <div class="col-md-6"> 40 <div class="col-md-6">
41 <div class="form-group" id="logo-control"> 41 <div class="form-group" id="logo-control">
42 - <label for="setting-app-logo">Application Logo</label> 42 + <label for="setting-app-logo">Application logo</label>
43 <p class="small">This image should be 43px in height. <br>Large images will be scaled down.</p> 43 <p class="small">This image should be 43px in height. <br>Large images will be scaled down.</p>
44 <image-picker resize-height="43" show-remove="true" resize-width="200" current-image="{{ setting('app-logo', '') }}" default-image="/logo.png" name="setting-app-logo" image-class="logo-image"></image-picker> 44 <image-picker resize-height="43" show-remove="true" resize-width="200" current-image="{{ setting('app-logo', '') }}" default-image="/logo.png" name="setting-app-logo" image-class="logo-image"></image-picker>
45 </div> 45 </div>
46 <div class="form-group" id="color-control"> 46 <div class="form-group" id="color-control">
47 - <label for="setting-app-color">Application Primary Color</label> 47 + <label for="setting-app-color">Application primary color</label>
48 <p class="small">This should be a hex value. <br> Leave empty to reset to the default color.</p> 48 <p class="small">This should be a hex value. <br> Leave empty to reset to the default color.</p>
49 <input type="text" value="{{ setting('app-color', '') }}" name="setting-app-color" id="setting-app-color" placeholder="#0288D1"> 49 <input type="text" value="{{ setting('app-color', '') }}" name="setting-app-color" id="setting-app-color" placeholder="#0288D1">
50 <input type="hidden" value="{{ setting('app-color-light', '') }}" name="setting-app-color-light" id="setting-app-color-light" placeholder="rgba(21, 101, 192, 0.15)"> 50 <input type="hidden" value="{{ setting('app-color-light', '') }}" name="setting-app-color-light" id="setting-app-color-light" placeholder="rgba(21, 101, 192, 0.15)">
......