Skip to content

Commit

Permalink
history + _index.blade
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 19, 2015
1 parent 7ab8dff commit e05e516
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Models/Partner.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

use Dimsav\Translatable\Translatable;
use TypiCMS\Models\Base;
use TypiCMS\Modules\History\Traits\Historable;
use TypiCMS\Presenters\PresentableTrait;
use TypiCMS\Traits\Historable;

class Partner extends Base
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div ng-app="typicms" ng-cloak ng-controller="ListController">

<h1>
<a href="{{ url }}/create" class="btn-add"><i class="fa fa-plus-circle"></i><span class="sr-only" translate>New</span></a>
<span translate translate-n="models.length" translate-plural="{{ models.length }} partners">{{ models.length }} partner</span>
<a href="{{ route('admin.' . $module . '.create') }}" class="btn-add"><i class="fa fa-plus-circle"></i><span class="sr-only" translate>New</span></a>
<span translate translate-n="models.length" translate-plural="@{{ models.length }} partners">@{{ models.length }} partner</span>
</h1>

<div class="btn-toolbar" role="toolbar" ng-include="'/views/partials/btnLocales.html'"></div>
Expand All @@ -24,10 +24,10 @@
<tr>
<td colspan="6"></td>
<td>
<input st-search="'title'" class="form-control input-sm" placeholder="{{ 'Search' | translate }}…" type="text">
<input st-search="'title'" class="form-control input-sm" placeholder="@{{ 'Search' | translate }}…" type="text">
</td>
<td>
<input st-search="'website'" class="form-control input-sm" placeholder="{{ 'Search' | translate }}…" type="text">
<input st-search="'website'" class="form-control input-sm" placeholder="@{{ 'Search' | translate }}…" type="text">
</td>
</tr>
</thead>
Expand All @@ -37,13 +37,15 @@
<td><typi-btn-delete ng-click="delete(model)"></typi-btn-delete></td>
<td typi-btn-edit></td>
<td typi-btn-status></td>
<td typi-thumb-list-item></td>
<td>
<input class="form-control input-sm" min="0" type="number" value="{{ model.position }}" name="position" ng-model="model.position" ng-change="update(model)">
<img ng-src="@{{ model.thumb }}" alt="">
</td>
<td>{{ model.homepage }}</td>
<td>{{ model.title }}</td>
<td>{{ model.website }}</td>
<td>
<input class="form-control input-sm" min="0" type="number" value="@{{ model.position }}" name="position" ng-model="model.position" ng-change="update(model)">
</td>
<td>@{{ model.homepage }}</td>
<td>@{{ model.title }}</td>
<td>@{{ model.website }}</td>
</tr>
</tbody>
<tfoot>
Expand Down

0 comments on commit e05e516

Please sign in to comment.