<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%~set secondarynav = "bookmark_nav.html"%>
<html>
<head>
  <title><%site_title%>: Bookmarks: Add Bookmark</title>
<%include include_common_head.html%>
</head>
<body id="bookmark_link_add">
<%include include_accessibility.html%>
  <div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
    <div id="ocwrapper" class="clear">
      <div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
        <div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
          <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
          <div class="shadowright">
            <div id="content">
<%include include_content_top.html%>

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2>Add Bookmark</h2>

<%if URL~%>
<p>
  You are adding the following link to your bookmarks:
</p>
<%~Links::Utils::load_link_info%>
<%include link.html%>
<%~endif%>

<form action="<%config.db_cgi_url%>/bookmark.cgi" method="post">
  <input type="hidden" name="action" value="link_add" />
  <input type="hidden" name="my_link_id_fk" value="<%escape_html ID%>" />
  <div class="row clear">
    <label for="my_comment" class="name">Comments:</label>
    <div class="value">
      <textarea name="my_comment" rows="3" cols="40"><%if my_comment%><%my_comment%><%endif%></textarea>
    </div>
  </div>
  <div class="row<%if Folders.length > 1%> required<%endif%> clear">
    <label for="my_folder_id_fk" class="name">Folder:<%if Folders.length > 1%> <span>*</span><%endif%></label>
    <div class="value<%if Folders.length == 1%> wrappedtext<%endif%>">
    <%~if Folders.length == 1%>
      <input type="hidden" name="my_folder_id_fk" value="<%escape_html Folders.0.my_folder_id%>" /><%Folders.0.my_folder_name%>
    <%~else%>
      <select id="my_folder_id_fk" name="my_folder_id_fk">
        <%loop Folders%><option value="<%escape_html my_folder_id%>"<%if my_folder_default%> selected="selected"<%endif%>><%my_folder_name%></option><%endloop%>
      </select>
    <%~endif%>
    </div>
  </div>
  <div class="formsubmit">
    <input type="submit" name="add" value="Bookmark Link" class="submit" />
  </div>
</form>

<%include include_content_bottom.html%>
            </div>
          </div>
          <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
        </div>
<%include include_rightsidebar.html%>
      </div>
    </div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
  </div>
</body>
</html>
