Skip to content

Commit

Permalink
fix several html bugs
Browse files Browse the repository at this point in the history
we must find a way to fix the problem of empty select

git-svn-id: http://piwigo.org/svn/trunk@3215 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed Mar 19, 2009
1 parent 4f42539 commit 2b9d21e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
4 changes: 4 additions & 0 deletions admin/menubar.php
Expand Up @@ -157,6 +157,10 @@ function make_consecutive( &$orders, $step=50 )
)
);
}

$action = get_root_url().'admin.php?page=menubar';
$template->assign(array('F_ACTION'=>$action));

$template->set_filename( 'menubar_admin_content', 'menubar.tpl' );
$template->assign_var_from_handle( 'ADMIN_CONTENT', 'menubar_admin_content');
?>
8 changes: 7 additions & 1 deletion admin/template/goto/configuration.tpl
Expand Up @@ -6,7 +6,9 @@
<h2>{'title_configuration'|@translate} {$TABSHEET_TITLE}</h2>
</div>

{if !isset($default)}
<form method="post" action="{$F_ACTION}" class="properties">
{/if}

{if isset($main)}
<fieldset id="mainConf">
Expand Down Expand Up @@ -85,6 +87,7 @@

{if isset($history)}
<fieldset id="historyConf">
<legend></legend>
<ul>
<li>
<label><span class="property">{'conf_history_guest'|@translate}</span><input type="checkbox" name="history_guest" {if ($history.history_guest)}checked="checked"{/if}></label>
Expand All @@ -104,6 +107,7 @@

{if isset($comments)}
<fieldset id="commentsConf">
<legend></legend>
<ul>
<li>
<label>
Expand Down Expand Up @@ -146,6 +150,7 @@

{if isset($upload)}
<fieldset id="uploadConf">
<legend></legend>
<ul>
<li>
<label><span class="property">{'Show upload link every time'|@translate}</span>
Expand All @@ -154,6 +159,7 @@
<li>
<label><span class="property">{'User access level to upload'|@translate}</span>
{html_options name="upload_user_access" options=$upload.upload_user_access_options selected=$upload.upload_user_access_options_selected}
</label>
</li>
<li>
<label>
Expand All @@ -174,5 +180,5 @@
<input class="submit" type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}>
<input class="submit" type="reset" name="reset" value="{'Reset'|@translate}">
</p>
{/if}
</form>
{/if}
4 changes: 2 additions & 2 deletions admin/template/goto/element_set_unit.tpl
Expand Up @@ -27,7 +27,7 @@
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}

{if !empty($elements) }
<input type="hidden" name="element_ids" value="{$ELEMENT_IDS}">
<div><input type="hidden" name="element_ids" value="{$ELEMENT_IDS}"></div>
{foreach from=$elements item=element}
<fieldset class="elementEdit">
<legend>{$element.LEGEND}</legend>
Expand Down Expand Up @@ -81,7 +81,7 @@

<tr>
<td><strong>{'Description'|@translate}</strong></td>
<td><textarea name="description-{$element.ID}" id="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td>
<td><textarea cols="50" rows="5" name="description-{$element.ID}" id="description-{$element.ID}" class="description">{$element.DESCRIPTION}</textarea></td>
</tr>

</table>
Expand Down
2 changes: 1 addition & 1 deletion admin/template/goto/extend_for_templates.tpl
Expand Up @@ -14,7 +14,7 @@
{foreach from=$extents item=tpl name=extent_loop}
<tr class="{if $smarty.foreach.extent_loop.index is odd}row1{else}row2{/if}">
<td>
<input type="hidden" name=reptpl[] value="{$tpl.replacer}">
<input type="hidden" name="reptpl[]" value="{$tpl.replacer}">
{$tpl.replacer}
</td>
<td>
Expand Down
6 changes: 3 additions & 3 deletions admin/template/goto/group_list.tpl
Expand Up @@ -31,11 +31,11 @@
<td><a href="{$group.U_MEMBERS}">{$group.MEMBERS}</a></td>
<td style="text-align:center;">
<a href="{$group.U_PERM}">
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/permissions.png" class="button" style="border:none" id="btn_permissions" alt="{'permissions'|@translate}" title="{'permissions'|@translate}"></a>
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/permissions.png" class="button" style="border:none" alt="{'permissions'|@translate}" title="{'permissions'|@translate}"></a>
<a href="{$group.U_DELETE}" onclick="return confirm( document.getElementById('btn_delete').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" class="button" style="border:none" id="btn_delete" alt="{'delete'|@translate}" title="{'delete'|@translate}" {$TAG_INPUT_ENABLED}></a>
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" class="button" style="border:none" alt="{'delete'|@translate}" title="{'delete'|@translate}" {$TAG_INPUT_ENABLED}></a>
<a href="{$group.U_ISDEFAULT}" onclick="return confirm( document.getElementById('btn_toggle_is_default_group').title + '\n\n' + '{'Are you sure?'|@translate|@escape:'javascript'}');">
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/toggle_is_default_group.png" class="button" style="border:none" id="btn_toggle_is_default_group" alt="{'toggle_is_default_group'|@translate}" title="{'toggle_is_default_group'|@translate}" {$TAG_INPUT_ENABLED}></a>
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/toggle_is_default_group.png" class="button" style="border:none" alt="{'toggle_is_default_group'|@translate}" title="{'toggle_is_default_group'|@translate}" {$TAG_INPUT_ENABLED}></a>
</td>
</tr>
{/foreach}
Expand Down
4 changes: 2 additions & 2 deletions admin/template/goto/menubar.tpl
Expand Up @@ -4,7 +4,7 @@
<h2>Menubar</h2>
</div>

<form method="post" class="properties">
<form method="post" action="{$F_ACTION}" class="properties">
<table class="table2">
<tr class="throw">
<td>Id</td>
Expand All @@ -18,7 +18,7 @@
<td>{$block.reg->get_id()}</td>
<td>{$block.reg->get_owner()}</td>
<td>{$block.reg->get_name()|@translate}</td>
<td><input type="input" name="pos_{$block.reg->get_id()}" value={math equation="abs(pos)" pos=$block.pos} size="2"></td>
<td><input type="text" name="pos_{$block.reg->get_id()}" value={math equation="abs(pos)" pos=$block.pos} size="2"></td>
<td><input type="checkbox" name="hide_{$block.reg->get_id()}" {if $block.pos<0}checked="checked"{/if} ></td>
</tr>
{/foreach}
Expand Down
2 changes: 1 addition & 1 deletion admin/template/goto/profile_content.tpl
Expand Up @@ -36,8 +36,8 @@
</span>
<input type="password" name="passwordConf" id="passwordConf" value="">
</li>
</ul>
{/if}
</ul>
</fieldset>

<fieldset>
Expand Down

0 comments on commit 2b9d21e

Please sign in to comment.