5d8de7587d
This changes creates a new form in addlink page allowing to create multiple bookmarks at once more easily. It focuses on re-using as much existing code and template component as possible. These changes includes: - a new form in addlink (hidden behind a button by default), containing a text area for URL, and tags/private status to apply to created links - this form displays a new template called editlink.batch, itself including editlink template multiple times - User interation in this new templates are handle by a new JS script (shaare-batch.js) making AJAX requests, and therefore does not need page reloading - ManageShaareController has been split into 3 distinct controllers: + ShaareAdd: displays addlink template + ShaareManage: various operation applied on existing shaares (change visibility, pin, deletion, etc.) + ShaarePublish: handles creation/edit forms and saving Shaare's form - Updated translations Fixes #137
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shaarli\Render;
|
|
|
|
interface TemplatePage
|
|
{
|
|
public const ERROR_404 = '404';
|
|
public const ADDLINK = 'addlink';
|
|
public const CHANGE_PASSWORD = 'changepassword';
|
|
public const CHANGE_TAG = 'changetag';
|
|
public const CONFIGURE = 'configure';
|
|
public const DAILY = 'daily';
|
|
public const DAILY_RSS = 'dailyrss';
|
|
public const EDIT_LINK = 'editlink';
|
|
public const EDIT_LINK_BATCH = 'editlink.batch';
|
|
public const ERROR = 'error';
|
|
public const EXPORT = 'export';
|
|
public const NETSCAPE_EXPORT_BOOKMARKS = 'export.bookmarks';
|
|
public const FEED_ATOM = 'feed.atom';
|
|
public const FEED_RSS = 'feed.rss';
|
|
public const IMPORT = 'import';
|
|
public const INSTALL = 'install';
|
|
public const LINKLIST = 'linklist';
|
|
public const LOGIN = 'loginform';
|
|
public const OPEN_SEARCH = 'opensearch';
|
|
public const PICTURE_WALL = 'picwall';
|
|
public const PLUGINS_ADMIN = 'pluginsadmin';
|
|
public const TAG_CLOUD = 'tag.cloud';
|
|
public const TAG_LIST = 'tag.list';
|
|
public const THUMBNAILS = 'thumbnails';
|
|
public const TOOLS = 'tools';
|
|
}
|