// Fix some bootstrap design

This commit is contained in:
Jerome Nadaud
2013-09-13 15:36:27 +02:00
parent b58dddf521
commit 7b532d77fd
2 changed files with 24 additions and 31 deletions
@@ -29,7 +29,7 @@
<div id="no_default_category" class="alert alert-info"> <div id="no_default_category" class="alert alert-info">
{l s='Please select a default category.'} {l s='Please select a default category.'}
</div> </div>
<div class="row"> <div class="form-group">
{include file="controllers/products/multishop/checkbox.tpl" field="category_box" type="category_box"} {include file="controllers/products/multishop/checkbox.tpl" field="category_box" type="category_box"}
<label class="control-label col-lg-3" for="category_block">{l s='Associated categories:'}</label> <label class="control-label col-lg-3" for="category_block">{l s='Associated categories:'}</label>
<div class="col-lg-9"> <div class="col-lg-9">
@@ -41,7 +41,7 @@
</a> </a>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
{include file="controllers/products/multishop/checkbox.tpl" field="id_category_default" type="default"} {include file="controllers/products/multishop/checkbox.tpl" field="id_category_default" type="default"}
<label class="control-label col-lg-3" for="id_category_default"> <label class="control-label col-lg-3" for="id_category_default">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
@@ -57,7 +57,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="product_autocomplete_input"> <label class="control-label col-lg-3" for="product_autocomplete_input">
<span class="label-tooltip" data-toggle="tooltip" <span class="label-tooltip" data-toggle="tooltip"
title="{l s='Begin typing the first letters of the product name, then select the product from the drop-down list.'}{l s='(Do not forget to save the product afterward)'}"> title="{l s='Begin typing the first letters of the product name, then select the product from the drop-down list.'}{l s='(Do not forget to save the product afterward)'}">
@@ -67,12 +67,8 @@
<div class="col-lg-5"> <div class="col-lg-5">
<input type="hidden" name="inputAccessories" id="inputAccessories" value="{foreach from=$accessories item=accessory}{$accessory.id_product}-{/foreach}" /> <input type="hidden" name="inputAccessories" id="inputAccessories" value="{foreach from=$accessories item=accessory}{$accessory.id_product}-{/foreach}" />
<input type="hidden" name="nameAccessories" id="nameAccessories" value="{foreach from=$accessories item=accessory}{$accessory.name|escape:'htmlall':'UTF-8'}¤{/foreach}" /> <input type="hidden" name="nameAccessories" id="nameAccessories" value="{foreach from=$accessories item=accessory}{$accessory.name|escape:'htmlall':'UTF-8'}¤{/foreach}" />
<div id="ajax_choose_product"> <div id="ajax_choose_product">
<input type="text" value="" id="product_autocomplete_input" /> <input type="text" value="" id="product_autocomplete_input" />
<div class="help-block">
</div>
</div> </div>
<div id="divAccessories"> <div id="divAccessories">
{* @todo : donot use 3 foreach, but assign var *} {* @todo : donot use 3 foreach, but assign var *}
@@ -85,25 +81,21 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="form-group">
<label class="control-label col-lg-3" for="id_manufacturer">{l s='Manufacturer:'}</label> <label class="control-label col-lg-3" for="id_manufacturer">{l s='Manufacturer:'}</label>
<div class="col-lg-9"> <div class="col-lg-5">
<div class="row"> <select name="id_manufacturer" id="id_manufacturer">
<div class="col-lg-7"> <option value="0">-- {l s='Choose (optional)'} --</option>
<select name="id_manufacturer" id="id_manufacturer"> {if $product->id_manufacturer}
<option value="0">-- {l s='Choose (optional)'} --</option> <option value="{$product->id_manufacturer}" selected="selected">{$product->manufacturer_name}</option>
{if $product->id_manufacturer} {/if}
<option value="{$product->id_manufacturer}" selected="selected">{$product->manufacturer_name}</option> <option disabled="disabled">----------</option>
{/if} </select>
<option disabled="disabled">----------</option> </div>
</select> <div class="col-lg-4">
</div> <a class="btn btn-link bt-icon confirm_leave" style="margin-bottom:0" href="{$link->getAdminLink('AdminManufacturers')|escape:'htmlall':'UTF-8'}&addmanufacturer">
<div class="col-lg-5"> <i class="icon-plus-sign"></i> {l s='Create new manufacturer'} <i class="icon-external-link-sign"></i>
<a class="btn btn-link bt-icon confirm_leave" style="margin-bottom:0" href="{$link->getAdminLink('AdminManufacturers')|escape:'htmlall':'UTF-8'}&addmanufacturer"> </a>
<i class="icon-plus-sign"></i> {l s='Create new manufacturer'} <i class="icon-external-link-sign"></i>
</a>
</div>
</div>
</div> </div>
</div> </div>
</fieldset> </fieldset>
@@ -61,14 +61,14 @@
<thead> <thead>
<tr class="nodrag nodrop"> <tr class="nodrag nodrop">
<th>{l s='Image'}</th> <th>{l s='Image'}</th>
<th>{l s='Position'}</th> <th class="center">{l s='Position'}</th>
{if $shops} {if $shops}
{foreach from=$shops item=shop} {foreach from=$shops item=shop}
<th>{$shop.name}</th> <th>{$shop.name}</th>
{/foreach} {/foreach}
{/if} {/if}
<th>{l s='Cover'}</th> <th class="center">{l s='Cover'}</th>
<th>{l s='Action'}</th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody id="imageList"> <tbody id="imageList">
@@ -96,7 +96,7 @@
<i class="covered icon-check-empty"></i> <i class="covered icon-check-empty"></i>
</td> </td>
<td class="center"> <td class="center">
<a href="#" class="btn btn-default delete_product_image" > <a href="#" class="btn btn-default delete_product_image pull-right" >
<i class="icon-trash"></i> {l s='Delete this image'} <i class="icon-trash"></i> {l s='Delete this image'}
</a> </a>
</td> </td>
@@ -310,7 +310,8 @@
{ {
line = $("#lineType").html(); line = $("#lineType").html();
line = line.replace(/image_id/g, id); line = line.replace(/image_id/g, id);
line = line.replace(/[a-z]{2}-default/g, path); line = line.replace(/[a-z]{2}-default-small_default/g, path+'-small_default');
console.log(line);
line = line.replace(/image_path/g, path); line = line.replace(/image_path/g, path);
line = line.replace(/image_position/g, position); line = line.replace(/image_position/g, position);
line = line.replace(/icon-check-empty/g, cover); line = line.replace(/icon-check-empty/g, cover);