Ignore:
Timestamp:
Mar 5, 2006, 12:31:46 AM (18 years ago)
Author:
plg
Message:

new feature: source/destination links between categories. Will we keep this
feature? Code is complicated and very few people will understand how it
works...

modification: #images.storage_category_id replaced by
#image_category.is_storage

improvement: many code refactoring to improve readibility

improvement: virtual category creation code was moved to a dedicated
function in order to be called from admin/cat_list.php and
admin/cat_modify.php (create a new destination category)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/admin/cat_modify.tpl

    r1045 r1064  
    137137
    138138</form>
     139
     140<form action="{F_ACTION}" method="POST" id="links">
     141 
     142<fieldset>
     143  <legend>{lang:Create a destination category}</legend>
     144
     145  <table>
     146    <tr>
     147      <td>{lang:virtual category name}</td>
     148      <td><input type="text" name="virtual_name"></td>
     149    </tr>
     150
     151    <tr>
     152      <td>{lang:parent category}</td>
     153      <td>
     154        <select class="categoryList" name="parent">
     155          <!-- BEGIN category_option_parent -->
     156          <option {category_option_parent.SELECTED} value="{category_option_parent.VALUE}">{category_option_parent.OPTION}</option>
     157          <!-- END category_option_parent -->
     158        </select>
     159      </td>
     160    </tr>
     161  </table>
     162
     163  <p style="text-align:center;">
     164    <input type="submit" value="{lang:Submit}" name="submitAdd" />
     165    <input type="reset" value="{lang:Reset}" name="reset" />
     166  </p> 
     167
     168</fieldset>
     169
     170<fieldset>
     171  <legend>{lang:Source/destination links}</legend>
     172
     173  <table class="doubleSelect">
     174    <tr>
     175      <td>
     176        <h3>{lang:Destination categories}</h3>
     177        <select class="categoryList" name="destination_true[]" multiple="multiple" size="30">
     178          <!-- BEGIN destination_option_true -->
     179          <option {destination_option_true.SELECTED} value="{destination_option_true.VALUE}">{destination_option_true.OPTION}</option>
     180          <!-- END destination_option_true -->
     181        </select>
     182        <p><input type="submit" value="&raquo;" name="destination_falsify" style="font-size:15px;"/></p>
     183      </td>
     184
     185      <td>
     186        <h3>{lang:Non destination categories}</h3>
     187        <select class="categoryList" name="destination_false[]" multiple="multiple" size="30">
     188          <!-- BEGIN destination_option_false -->
     189          <option {destination_option_false.SELECTED} value="{destination_option_false.VALUE}">{destination_option_false.OPTION}</option>
     190          <!-- END destination_option_false -->
     191        </select>
     192        <p><input type="submit" value="&laquo;" name="destination_trueify" style="font-size:15px;" /></p>
     193      </td>
     194    </tr>
     195  </table>
     196
     197  <table class="doubleSelect">
     198    <tr>
     199      <td>
     200        <h3>{lang:Source categories}</h3>
     201        <select class="categoryList" name="source_true[]" multiple="multiple" size="30">
     202          <!-- BEGIN source_option_true -->
     203          <option {source_option_true.SELECTED} value="{source_option_true.VALUE}">{source_option_true.OPTION}</option>
     204          <!-- END source_option_true -->
     205        </select>
     206        <p><input type="submit" value="&raquo;" name="source_falsify" style="font-size:15px;"/></p>
     207      </td>
     208
     209      <td>
     210        <h3>{lang:Non source categories}</h3>
     211        <select class="categoryList" name="source_false[]" multiple="multiple" size="30">
     212          <!-- BEGIN source_option_false -->
     213          <option {source_option_false.SELECTED} value="{source_option_false.VALUE}">{source_option_false.OPTION}</option>
     214          <!-- END source_option_false -->
     215        </select>
     216        <p><input type="submit" value="&laquo;" name="source_trueify" style="font-size:15px;" /></p>
     217      </td>
     218    </tr>
     219  </table>
     220 
     221</fieldset>
     222</form>
Note: See TracChangeset for help on using the changeset viewer.