Skip to content

Commit

Permalink
Fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
stojankukrika committed Feb 14, 2015
1 parent 7db0ab7 commit a590849
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 29 deletions.
9 changes: 6 additions & 3 deletions resources/views/admin/language/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ class="form-control" type="text" name="lang_code" id="lang_code"
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($language)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($language))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/admin/news/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,12 @@ class="form-group {{{ $errors->has('picture') ? 'error' : '' }}}">
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($news)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($news))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
12 changes: 7 additions & 5 deletions resources/views/admin/newscategory/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ class="form-control"> @foreach($languages as $item)
</select>
</div>
</div>
<div
class="form-group {{{ $errors->has('title') ? 'has-error' : '' }}}">
<div class="form-group {{{ $errors->has('title') ? 'has-error' : '' }}}">
<div class="col-md-12">
<label class="control-label" for="title"> {{
Lang::get("admin/modal.title") }}</label> <input
Expand Down Expand Up @@ -63,9 +62,12 @@ class="form-control" type="text" name="title" id="title"
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($newscategory)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if
(isset($newscategory)) {{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/admin/photo/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ class="form-group {{{ $errors->has('picture') ? 'error' : '' }}}">
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($photo)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($photo))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/admin/photoalbum/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ class="form-control" type="text" name="name" id="name"
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($photoalbum)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($photoalbum))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/admin/roles/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ class="form-group {{{ $errors->has('name') ? 'has-error' : '' }}}">
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($role)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($role))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/admin/users/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,12 @@ class="control-label" for="password_confirmation">:message</label>')!!}
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($user)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($user))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/admin/video/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,12 @@ class="form-control" type="text" name="youtube" id="youtube"
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($video)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($video))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down
9 changes: 6 additions & 3 deletions resources/views/admin/videoalbum/create_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ class="form-control" type="text" name="name" id="name"
Lang::get("admin/modal.reset") }}
</button>
<button type="submit" class="btn btn-sm btn-success">
<span class="glyphicon glyphicon-ok-circle"></span> @if
(isset($videoalbum)) {{ Lang::get("admin/modal.edit") }} @else {{
Lang::get("admin/modal.create") }} @endif
<span class="glyphicon glyphicon-ok-circle"></span>
@if (isset($videoalbum))
{{ Lang::get("admin/modal.edit") }}
@else
{{Lang::get("admin/modal.create") }}
@endif
</button>
</div>
</div>
Expand Down

0 comments on commit a590849

Please sign in to comment.