2012-07-01 23:17:27 +02:00
< form class = " addBm " method = " post " action = " <?php echo OCP \ Util::linkTo('bookmarks', 'ajax/editBookmark.php');?> " >
2012-06-29 11:33:13 +02:00
< ? php if ( ! isset ( $embedded ) || ! $embedded ) : ?>
< script >
var fullTags = < ? php echo $_ [ 'tags' ]; ?> ;
$ ( document ) . ready ( function () {
$ ( 'body' ) . bookmark_dialog ({
'on_success' : function (){ self . close (); }
});
});
</ script >
< h1 >< ? php echo $l -> t ( 'Add a bookmark' ); ?> </h1>
< div class = " close_btn " >< a href = " javascript:self.close() " class = " ui-icon ui-icon-closethick " >< ? php echo $l -> t ( 'Close' ); ?> </a></div>
< ? php endif ; ?>
2012-06-26 17:43:03 +02:00
< fieldset class = " bm_desc " >
< ul >
< li >
2012-06-29 11:33:13 +02:00
< input type = " text " name = " title " class = " title " value = " <?php echo $_['bookmark'] ['title']; ?> " placeholder = " <?php echo $l->t ('The title of the page');?> " />
2012-06-26 17:43:03 +02:00
</ li >
< li >
2012-06-29 11:33:13 +02:00
< input type = " text " name = " url " class = " url_input " value = " <?php echo $_['bookmark'] ['url']; ?> " placeholder = " <?php echo $l->t ('The address of the page');?> " />
2012-06-26 17:43:03 +02:00
</ li >
< li >
2012-06-29 11:33:13 +02:00
< ul class = " tags " >
2012-06-26 17:43:03 +02:00
< ? php foreach ( $_ [ 'bookmark' ][ 'tags' ] as $tag ) : ?>
< li >< ? php echo $tag ; ?> </li>
< ? php endforeach ; ?>
</ ul >
</ li >
< li >
2012-09-02 17:18:36 +02:00
< textarea name = " description " class = " desc " value = " <?php echo $_['bookmark'] ['desc']; ?> " placeholder = " <?php echo $l->t ('Description of the page');?> " ></ textarea >
2012-06-26 17:43:03 +02:00
</ li >
< li >
2012-08-13 18:32:34 +02:00
< input type = " submit " class = " submit " value = " <?php echo $l->t ( " Save " );?> " />
2012-06-29 14:12:29 +02:00
< input type = " hidden " class = " record_id " value = " " name = " record_id " />
2012-08-07 22:22:52 +02:00
< input type = " hidden " name = " requesttoken " value = " <?php echo $_['requesttoken'] ?> " >
2012-06-26 17:43:03 +02:00
</ li >
</ ul >
</ fieldset >
</ form >