Skip to content

Commit

Permalink
Merge pull request #7 from chihiro-adachi/add-preview-link
Browse files Browse the repository at this point in the history
表示確認リンクを追加
  • Loading branch information
chihiro-adachi authored Jan 10, 2017
2 parents 63575d8 + 21e1083 commit 71bcbd9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
2 changes: 2 additions & 0 deletions Controller/ProductPriorityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Eccube\Application;
use Eccube\Controller\AbstractController;
use Plugin\ProductPriority\Constant;
use Plugin\ProductPriority\Entity\Config;
use Plugin\ProductPriority\Entity\ProductPriority;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down Expand Up @@ -68,6 +69,7 @@ public function index(Application $app, Request $request, $categoryId = null)
'searchProductModalForm' => $searchProductModalForm->createView(),
'Priorities' => $Priorities,
'categoryId' => is_null($categoryId) ? Constant::CATEGORY_ID_ALL_PRODUCT : $categoryId,
'Config' => $app['eccube.plugin.product_priority.repository.config']->find(Config::ID)
)
);
}
Expand Down
34 changes: 22 additions & 12 deletions Resource/template/admin/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<div class="box">
<div class="box-header">
<div class="box-title">
商品おすすめ順登録
<span class="glyphicon glyphicon-question-sign"
data-toggle="tooltip"
data-placement="right"
data-html="true"
data-title="<p align='left'>カテゴリ毎に、おすすめする商品を登録できます。おすすめ商品を登録後、並び順をドラッグ&ドロップで設定してください。</p>"></span>
<ul class="list-inline">
<li>商品おすすめ順登録</li>
<li><span class="glyphicon glyphicon-question-sign"
data-toggle="tooltip"
data-placement="right"
data-html="true"
data-title="<p align='left'>カテゴリ毎に、おすすめする商品を登録できます。おすすめ商品を登録後、並び順をドラッグ&ドロップで設定してください。</p>"></span></li>
</ul>
</div>
</div>
<div class="box-body">
Expand All @@ -323,17 +325,25 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
{{ form_widget(form.category) }}
</div>
</div>
<div class="col-md-2">
<div class="col-md-4">
<div class="form-group">
<button type="button" class="btn btn-default btn-block" data-toggle="modal"
data-target="#searchProductModal">おすすめ商品登録
</button>
<ul class="list-inline">
<li>
<button type="button" class="btn btn-default btn-block" data-toggle="modal"
data-target="#searchProductModal">おすすめ商品登録
</button>
</li>
<li><a href="{{ path('product_list', {
'category_id' : categoryId ? categoryId : '',
'orderby' : Config.order_by_id
}) }}" target="_blank"><span class="glyphicon glyphicon-new-window"></span><span class="hidden-xs"> 表示を確認</span></a></li>
</ul>
</div>
</div>
{% if Priorities|length > 0 %}
<div class="col-md-6">
<div class="col-md-4">
<div class="row">
<div class="col-md-4 col-md-offset-8">
<div class="col-md-6 col-md-offset-6">
<div class="form-group">
<button id="delete-checked" type="button" class="btn btn-default btn-block">
削除
Expand Down

0 comments on commit 71bcbd9

Please sign in to comment.