Ignore:
Timestamp:
Jun 2, 2012, 12:14:12 PM (12 years ago)
Author:
mistic100
Message:

improve a bit the admin page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/typetags/admin/typetags_admin.tpl

    r15149 r15477  
    7272  <h2>TypeT@gs</h2>
    7373</div>
    74 
    75 <form action="{$typetags_ADMIN}" method="post" name="form">
    76 <fieldset>
    77   <legend>{'Configuration'|@translate}</legend>
    78   <b>{'Display colored tags'|@translate}</b>
    79   <label><input type="radio" name="show_all" value="false" {if not $SHOW_ALL}checked="checked"{/if}> {'Only on tags page'|@translate}</label>
    80   <label><input type="radio" name="show_all" value="true" {if $SHOW_ALL}checked="checked"{/if}> {'Everywhere'|@translate}</label>
    81   <p><input class="submit" type="submit" name="save_config" value="{'Submit'|@translate}"></p>
    82 </fieldset>
    83 </form>
    8474 
    8575<form action="{$typetags_ADMIN}" method="post" name="form">
    8676  <fieldset>
    87   {if isset($edited_typetag)}
     77  {if isset($IN_EDIT)}
    8878    <legend>{'Edit typetag'|@translate}</legend>
    8979    <div class="edit-container">
    90       <div id="colorpicker" style="float:right;"></div>
     80      <div id="colorpicker"></div>
    9181      <p><b>{'Edited TypeTag'|@translate} : <input type="text" readonly="readonly" size="18" style="background-color:{$typetag.OLD_COLOR};color:{$typetag.COLOR_TEXT};" value="{$typetag.OLD_NAME}"></b></p>
    9282      <p>&nbsp;</p>
     
    10393    <legend>{'Create a Typetag'|@translate}</legend>
    10494    <div class="edit-container">
    105       <div id="colorpicker" style="float:right;"></div>
    106       <p>&nbsp;</p>
     95      <div id="colorpicker"></div>
    10796      <p>{'New TypeTag'|@translate} : <input type="text" size="18" name="typetag_name" value="{if isset($typetag.NAME)}{$typetag.NAME}{/if}"></p>
    10897      <p>{'Color TypeTag'|@translate} : <input type="text" id="hexval" name="typetag_color" size="7" maxlength="7" value="{if isset($typetag.COLOR)}{$typetag.COLOR}{else}#444444{/if}"></p>
     
    116105</form>
    117106
    118 {if !empty($typetags_selection)}
     107{if !empty($typetags_selection) and !isset($IN_EDIT)}
    119108<form action="{$typetags_ADMIN}" method="post" name="form" onsubmit="save_datas(this);">
    120109  <fieldset>
     
    151140</form>
    152141{/if}
     142
     143{if !isset($IN_EDIT)}
     144<form action="{$typetags_ADMIN}" method="post" name="form">
     145<fieldset>
     146  <legend>{'Configuration'|@translate}</legend>
     147  <b>{'Display colored tags'|@translate}</b>
     148  <label><input type="radio" name="show_all" value="false" {if not $SHOW_ALL}checked="checked"{/if}> {'Only on tags page'|@translate}</label>
     149  <label><input type="radio" name="show_all" value="true" {if $SHOW_ALL}checked="checked"{/if}> {'Everywhere'|@translate}</label>
     150  <p><input class="submit" type="submit" name="save_config" value="{'Submit'|@translate}"></p>
     151</fieldset>
     152</form>
     153{/if}
Note: See TracChangeset for help on using the changeset viewer.