add tax admin css
This commit is contained in:
45
core/lib/Thelia/Controller/Admin/TaxRuleController.php
Normal file
45
core/lib/Thelia/Controller/Admin/TaxRuleController.php
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
/*************************************************************************************/
|
||||||
|
/* */
|
||||||
|
/* Thelia */
|
||||||
|
/* */
|
||||||
|
/* Copyright (c) OpenStudio */
|
||||||
|
/* email : info@thelia.net */
|
||||||
|
/* web : http://www.thelia.net */
|
||||||
|
/* */
|
||||||
|
/* This program is free software; you can redistribute it and/or modify */
|
||||||
|
/* it under the terms of the GNU General Public License as published by */
|
||||||
|
/* the Free Software Foundation; either version 3 of the License */
|
||||||
|
/* */
|
||||||
|
/* This program is distributed in the hope that it will be useful, */
|
||||||
|
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
||||||
|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
|
||||||
|
/* GNU General Public License for more details. */
|
||||||
|
/* */
|
||||||
|
/* You should have received a copy of the GNU General Public License */
|
||||||
|
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
/* */
|
||||||
|
/*************************************************************************************/
|
||||||
|
|
||||||
|
namespace Thelia\Controller\Admin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class TaxRuleController
|
||||||
|
* @package Thelia\Controller\Admin
|
||||||
|
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
||||||
|
*/
|
||||||
|
class TaxRuleController extends BaseAdminController
|
||||||
|
{
|
||||||
|
public function defaultAction()
|
||||||
|
{
|
||||||
|
if (null !== $response = $this->checkAuth("admin.taxes-rules.view")) return $response;
|
||||||
|
return $this->render("taxes-rules", array("display_taxes_rules" => 20));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function updateAction($tax_rule_id){
|
||||||
|
return $this->render("tax-rule-edit", array(
|
||||||
|
"tax_rule_id" => $tax_rule_id
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -326,3 +326,79 @@
|
|||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -- Drag & drop --
|
||||||
|
.take{
|
||||||
|
|
||||||
|
.draggable{
|
||||||
|
border: 2px dashed @gray-light;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
&:last-child{
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.over{
|
||||||
|
.drop-message{
|
||||||
|
border-color: @brand-primary;
|
||||||
|
color: @brand-primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.place{
|
||||||
|
|
||||||
|
.over{
|
||||||
|
.drop-message{
|
||||||
|
border-color: @brand-primary;
|
||||||
|
color: @brand-primary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-body{
|
||||||
|
|
||||||
|
.draggable, .drag{
|
||||||
|
margin: 5px 0;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px dashed @gray-light;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drop-group{
|
||||||
|
padding: 10px;
|
||||||
|
border: 2px dashed @gray-light;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
&:last-child{
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.take, .place{
|
||||||
|
|
||||||
|
.drop-message{
|
||||||
|
width: 50%;
|
||||||
|
margin: 10px auto;
|
||||||
|
padding: 10px;
|
||||||
|
color: @gray;
|
||||||
|
border: 2px dashed @gray;
|
||||||
|
text-align: center;
|
||||||
|
.opacity(0.5);
|
||||||
|
|
||||||
|
.glyphicon{
|
||||||
|
display: block;
|
||||||
|
font-size: @font-size-large;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-draggable-dragging{
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user