mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-14 21:35:59 +02:00
9064686d99
global_rank order - when adding a new virtual category, initializes its global_rank - bug fixed : in admin/cat_list, false next rank - in admin/cat_modify, complete directory is calculated only if category is not virtual - admin/picture_modify rewritten : graphically nearer to admin/cat_modify, virtual associations are back - update_category partially rewritten : take an array of categories in parameter, becomes optionnaly recursive, use the set_random_representant function, set a random representant for categories with elements and no representant - bug fixed : on a search results screen, elements belonging to more than 1 category were shown more than once - bug fixed : in admin/cat_modify, changing a value in a textefield and hitting enter was setting a new random representant git-svn-id: http://piwigo.org/svn/trunk@635 68402e56-0260-453c-a942-63ccdbb3a9ee
101 lines
3.7 KiB
Smarty
101 lines
3.7 KiB
Smarty
<!-- BEGIN confirmation -->
|
|
<div style="color:red;text-align:center;">
|
|
{L_EDIT_CONFIRM} <a href="{U_PERMISSIONS}">{L_HERE}</a></div>
|
|
<!-- END confirmation -->
|
|
<div class="admin">{CATEGORIES_NAV}</div>
|
|
<form action="{F_ACTION}" method="POST">
|
|
<table style="width:100%;">
|
|
<!-- BEGIN representant -->
|
|
<tr>
|
|
<td style="width:50%;" align="center">
|
|
<a href="{representant.URL}"><img src="{representant.SRC}" alt="" class="miniature" /></a>
|
|
</td>
|
|
<td class="row1"><input type="submit" name="set_random_representant" value="{L_SET_RANDOM_REPRESENTANT}" class="bouton" /></td>
|
|
</tr>
|
|
<!-- END representant -->
|
|
</table>
|
|
</form>
|
|
<form action="{F_ACTION}" method="POST">
|
|
<table style="width:100%;">
|
|
<!-- BEGIN server -->
|
|
<tr>
|
|
<td style="width:50%;"><strong>{L_REMOTE_SITE}</strong></td>
|
|
<td class="row1">{server.SITE_URL}</td>
|
|
</tr>
|
|
<!-- END server -->
|
|
<tr>
|
|
<td style="width:50%;"><strong>{L_EDIT_NAME}</strong></td>
|
|
<td class="row1">
|
|
<input type="text" name="name" value="{CAT_NAME}" maxlength="60"/>
|
|
</td>
|
|
</tr>
|
|
<!-- BEGIN storage -->
|
|
<tr>
|
|
<td><strong>{L_STORAGE}</strong></td>
|
|
<td class="row1">{storage.CATEGORY_DIR}</td>
|
|
</tr>
|
|
<!-- END storage -->
|
|
<tr>
|
|
<td><strong>{L_EDIT_COMMENT}</strong></td>
|
|
<td class="row1">
|
|
<textarea name="comment" rows="3" cols="50" >{CAT_COMMENT}</textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>{L_EDIT_STATUS} :</strong><br /><span class="small">{L_EDIT_STATUS_INFO}</span></td>
|
|
<td class="row1">
|
|
<input type="radio" class="radio" name="status" value="public" {STATUS_PUBLIC} />{L_STATUS_PUBLIC}
|
|
<input type="radio" class="radio" name="status" value="private" {STATUS_PRIVATE} />{L_STATUS_PRIVATE}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>{L_EDIT_LOCK} :</strong><br /><span class="small">{L_EDIT_LOCK_INFO}</span></td>
|
|
<td class="row1">
|
|
<input type="radio" class="radio" name="visible" value="false" {LOCKED} />{L_YES}
|
|
<input type="radio" class="radio" name="visible" value="true" {UNLOCKED} />{L_NO}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>{L_EDIT_COMMENTABLE} :</strong><br /><span class="small">{L_EDIT_COMMENTABLE_INFO}</span></td>
|
|
<td class="row1">
|
|
<input type="radio" class="radio" name="commentable" value="false" {COMMENTABLE_TRUE} />{L_YES}
|
|
<input type="radio" class="radio" name="commentable" value="true" {COMMENTABLE_FALSE} />{L_NO}
|
|
</td>
|
|
</tr>
|
|
<!-- BEGIN upload -->
|
|
<tr>
|
|
<td><strong>{L_EDIT_UPLOADABLE} :</strong><br /><span class="small">{L_EDIT_UPLOADABLE_INFO}</span></td>
|
|
<td class="row1">
|
|
<input type="radio" class="radio" name="uploadable" value="true" {UPLOADABLE_TRUE} />{L_YES}
|
|
<input type="radio" class="radio" name="uploadable" value="false" {UPLOADABLE_FALSE} />{L_NO}
|
|
</td>
|
|
</tr>
|
|
<!-- END upload -->
|
|
<!-- BEGIN parent -->
|
|
<tr>
|
|
<td>{#cat_parent}</td>
|
|
<td class="row1">
|
|
<!-- BEGIN associate_LOV -->
|
|
<select name="associate">
|
|
<!-- BEGIN associate_cat -->
|
|
<option value="{#value}">{#content}</option>
|
|
<!-- END associate_cat -->
|
|
</select>
|
|
<!-- END associate_LOV -->
|
|
<!-- BEGIN associate_text -->
|
|
<input type="text" name="associate" value="{#value}" />
|
|
<!-- END associate_text -->
|
|
</td>
|
|
</tr>
|
|
<!-- END parent -->
|
|
<tr>
|
|
<td colspan="2"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" align="center">
|
|
<input type="submit" name="submit" value="{L_SUBMIT}" class="bouton" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|