[+] BO Scenes - Tags - Attachments

This commit is contained in:
Kevin Granger
2013-07-26 11:12:50 +02:00
parent 72b046d5f0
commit 8b7c29dd18
5 changed files with 34 additions and 45 deletions
@@ -25,40 +25,36 @@
{extends file="helpers/form/form.tpl"} {extends file="helpers/form/form.tpl"}
{block name="other_input"} {block name="other_input"}
{if $key eq 'selects'} {if $key eq 'selects'}
<div class="margin-form"> <div class="row">
<h3>{l s='Products:'}</h3> <label class="control-label col-lg-3">{l s='Products:'}</label>
<table class="double_select">
<tr> <div class="col-lg-9">
<td style="padding-left:20px;"> <div class="row">
<div class="col-lg-6">
<select multiple id="select_left"> <select multiple id="select_left">
{foreach from=$field.products_unselected item='product'} {foreach from=$field.products_unselected item='product'}
<option value="{$product.id_product}">{$product.name}</option> <option value="{$product.id_product}">{$product.name}</option>
{/foreach} {/foreach}
</select> </select>
<span class="alert alert-info" name="help_box">{l s='Double click to move the item to another column'}<span class="hint-pointer">&nbsp;</span></span> <a href="#" id="move_to_right" class="btn btn-default btn-block multiple_select_add">
<br /><br /> {l s='Add'} <i class="icon-arrow-right"></i>
<a href="#" id="move_to_right" class="multiple_select_add">
{l s='Add'} &gt;&gt;
</a> </a>
</div> </div>
</td> <div class="col-lg-6">
<td>
<select multiple id="select_right" name="products[]"> <select multiple id="select_right" name="products[]">
{foreach from=$field.products item='product'} {foreach from=$field.products item='product'}
<option selected="selected" value="{$product.id_product}">{$product.name}</option> <option selected="selected" value="{$product.id_product}">{$product.name}</option>
{/foreach} {/foreach}
</select> </select>
<span class="alert alert-info" name="help_box">{l s='Double click to move the item to another column'}<span class="hint-pointer">&nbsp;</span></span> <a href="#" id="move_to_left" class="btn btn-default btn-block multiple_select_remove">
<br /><br /> <i class="icon-arrow-left"></i> {l s='Remove'}
<a href="#" id="move_to_left" class="multiple_select_remove">
&lt;&lt; {l s='Remove'}
</a> </a>
</td> </div>
</tr> </div>
</table>
</div> </div>
<div class="clear">&nbsp;</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function(){ $(document).ready(function(){
@@ -60,14 +60,13 @@ class AdminAttachmentsControllerCore extends AdminController
$this->fields_form = array( $this->fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('Attachment'), 'title' => $this->l('Attachment'),
'image' => '../img/t/AdminAttachments.gif' 'icon' => 'icon-paper-clip'
), ),
'input' => array( 'input' => array(
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Filename:'), 'label' => $this->l('Filename:'),
'name' => 'name', 'name' => 'name',
'size' => 33,
'required' => true, 'required' => true,
'lang' => true, 'lang' => true,
), ),
@@ -75,15 +74,13 @@ class AdminAttachmentsControllerCore extends AdminController
'type' => 'textarea', 'type' => 'textarea',
'label' => $this->l('Description:'), 'label' => $this->l('Description:'),
'name' => 'description', 'name' => 'description',
'cols' => 40,
'rows' => 10,
'lang' => true, 'lang' => true,
), ),
array( array(
'type' => 'file', 'type' => 'file',
'label' => $this->l('File:'), 'label' => $this->l('File:'),
'name' => 'file', 'name' => 'file',
'desc' => $this->l('Upload a file from your computer.') 'hint' => $this->l('Upload a file from your computer.')
), ),
), ),
'submit' => array( 'submit' => array(
+2 -3
View File
@@ -140,7 +140,7 @@ class AdminScenesControllerCore extends AdminController
$fields_form = array( $fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('Image Maps'), 'title' => $this->l('Image Maps'),
'image' => '../img/admin/photo.gif', 'icon' => 'icon-picture',
), ),
'submit' => array( 'submit' => array(
'title' => $this->l('Save'), 'title' => $this->l('Save'),
@@ -164,12 +164,11 @@ class AdminScenesControllerCore extends AdminController
'label' => $this->l('Image map name:'), 'label' => $this->l('Image map name:'),
'name' => 'name', 'name' => 'name',
'lang' => true, 'lang' => true,
'size' => 48,
'required' => true, 'required' => true,
'hint' => $this->l('Invalid characters:').' <>;=#{}' 'hint' => $this->l('Invalid characters:').' <>;=#{}'
), ),
array( array(
'type' => 'radio', 'type' => 'switch',
'label' => $this->l('Status:'), 'label' => $this->l('Status:'),
'name' => 'active', 'name' => 'active',
'required' => false, 'required' => false,
+12 -16
View File
@@ -73,7 +73,7 @@ class AdminSuppliersControllerCore extends AdminController
$this->fields_form = array( $this->fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('Suppliers'), 'title' => $this->l('Suppliers'),
'image' => '../img/admin/suppliers.gif' 'icon' => 'icon-truck'
), ),
'input' => array( 'input' => array(
array( array(
@@ -84,7 +84,6 @@ class AdminSuppliersControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Name'), 'label' => $this->l('Name'),
'name' => 'name', 'name' => 'name',
'size' => 40,
'required' => true, 'required' => true,
'hint' => $this->l('Invalid characters:').' <>;=#{}', 'hint' => $this->l('Invalid characters:').' <>;=#{}',
), ),
@@ -92,25 +91,23 @@ class AdminSuppliersControllerCore extends AdminController
'type' => 'textarea', 'type' => 'textarea',
'label' => $this->l('Description:'), 'label' => $this->l('Description:'),
'name' => 'description', 'name' => 'description',
'cols' => 60,
'rows' => 10,
'lang' => true, 'lang' => true,
'hint' => $this->l('Invalid characters:').' <>;=#{}', 'hint' => array(
'desc' => $this->l('Will appear in the supplier list') $this->l('Invalid characters:').' <>;=#{}',
$this->l('Will appear in the supplier list')
)
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Phone:'), 'label' => $this->l('Phone:'),
'name' => 'phone', 'name' => 'phone',
'size' => 15,
'maxlength' => 16, 'maxlength' => 16,
'desc' => $this->l('Phone number for this supplier') 'hint' => $this->l('Phone number for this supplier')
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Address:'), 'label' => $this->l('Address:'),
'name' => 'address', 'name' => 'address',
'size' => 100,
'maxlength' => 128, 'maxlength' => 128,
'required' => true 'required' => true
), ),
@@ -118,14 +115,12 @@ class AdminSuppliersControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('Address:').' (2)', 'label' => $this->l('Address:').' (2)',
'name' => 'address2', 'name' => 'address2',
'size' => 100,
'maxlength' => 128, 'maxlength' => 128,
), ),
array( array(
'type' => 'text', 'type' => 'text',
'label' => $this->l('Postal Code/Zip Code:'), 'label' => $this->l('Postal Code/Zip Code:'),
'name' => 'postcode', 'name' => 'postcode',
'size' => 10,
'maxlength' => 12, 'maxlength' => 12,
'required' => true, 'required' => true,
), ),
@@ -133,7 +128,6 @@ class AdminSuppliersControllerCore extends AdminController
'type' => 'text', 'type' => 'text',
'label' => $this->l('City:'), 'label' => $this->l('City:'),
'name' => 'city', 'name' => 'city',
'size' => 20,
'maxlength' => 32, 'maxlength' => 32,
'required' => true, 'required' => true,
), ),
@@ -164,7 +158,7 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Logo:'), 'label' => $this->l('Logo:'),
'name' => 'logo', 'name' => 'logo',
'display_image' => true, 'display_image' => true,
'desc' => $this->l('Upload a supplier logo from your computer') 'hint' => $this->l('Upload a supplier logo from your computer')
), ),
array( array(
'type' => 'text', 'type' => 'text',
@@ -185,11 +179,13 @@ class AdminSuppliersControllerCore extends AdminController
'label' => $this->l('Meta keywords:'), 'label' => $this->l('Meta keywords:'),
'name' => 'meta_keywords', 'name' => 'meta_keywords',
'lang' => true, 'lang' => true,
'hint' => $this->l('Forbidden characters:').' <>;=#{}', 'hint' => array(
'desc' => $this->l('To add "tags" click in the field, write something and then press "Enter"') $this->l('To add "tags" click in the field, write something and then press "Enter"'),
$this->l('Forbidden characters:').' <>;=#{}'
)
), ),
array( array(
'type' => 'radio', 'type' => 'switch',
'label' => $this->l('Enable:'), 'label' => $this->l('Enable:'),
'name' => 'active', 'name' => 'active',
'required' => false, 'required' => false,
+2 -1
View File
@@ -104,7 +104,8 @@ class AdminTagsControllerCore extends AdminController
$this->fields_form = array( $this->fields_form = array(
'legend' => array( 'legend' => array(
'title' => $this->l('Tag') 'title' => $this->l('Tag'),
'icon' => 'icon-tag'
), ),
'input' => array( 'input' => array(
array( array(