<div class="row required clear">
  <label for="Title" class="name">Title: <span>*</span></label>
  <div class="value">
    <input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="text" />
  </div>
</div>
<%--
<div class="row required clear">
  <label for="URL" class="name">URL: <span>*</span></label>
  <div class="value">
    <input type="text" id="URL" name="URL" value="<%if URL%><%escape_html URL%><%else%>http://<%endif%>" class="text" />
  </div>
</div>
--%>
<div class="row<%unless category_loop_selected%> required<%endunless%> clear">
  <label for="CatLinks.CategoryID" class="name">Category:<%unless category_loop_selected%> <span>*</span><%endunless%></label>
  <div class="value wrappedtext">
  <%~if config.db_gen_category_list == 2%>
    <script type="text/javascript" src="<%config.build_static_url%>/treecats.js"></script>
    <%~set selected_cats = Links::Tools::category_list_selected%>
    <%~loop selected_cats%>
    <input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" />
    <%~endloop%>
    <noscript>
      <ul class="categories">
      <%~loop selected_cats%>
        <li><%Full_Name%></li>
      <%~endloop%>
      <%~if not selected_cats.length%>
        <li><%Links::language('ADD_SELCAT')%></li>
      <%~endif%>
      </ul>
    </noscript>
    <div id="treecats"></div>
    <script type="text/javascript">
      var tc = new treecats({ <%-- selectionMode : 'multiple', --%> cgiURL : '<%config.db_cgi_url%>', imageURL : '<%config.build_static_url%>/<%t%>/images' });
      tc.load();
    </script>
  <%~elsif category_loop_selected%>
    <%~if category_loop.length > 1%>
    <ul class="categories"><%loop category_loop%><li><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /></li><%endloop%></ul>
    <%~else%>
    <%loop category_loop%><%Full_Name%><input type="hidden" name="CatLinks.CategoryID" value="<%escape_html ID%>" /><%endloop%>
    <%~endif%>
  <%~else%>
    <select id="CatLinks.CategoryID" name="CatLinks.CategoryID">
      <%~loop category_loop%>
      <option value="<%escape_html ID%>"<%if selected%> selected="selected"<%endif%>><%'&nbsp;&nbsp;' x $CatDepth%><%Name%></option>
      <%~endloop%>
    </select>
  <%~endif%>
  </div>
</div>
<div class="row required clear">
  <label for="Title" class="name">Type: <span>*</span></label>
  <div class="value">
    <select name="Type">
    <option value="editorial"<%if Type eq 'editorial'%> selected<%endif%>>editorial</option>
    <option value="news"<%if Type eq 'news'%> selected<%endif%>>news</option>
    </select>
  </div>
</div>
<div class="row clear">
  <label for="Description" class="name">Description:</label>
  <div class="value">
    <textarea id="Description" name="Description" rows="3" cols="25"><%if Description%><%escape_html Description%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <label for="Contact_Name" class="name">Contact Name:</label>
  <div class="value">
    <input type="text" id="Contact_Name" name="Contact_Name" value="<%if Contact_Name%><%escape_html Contact_Name%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <label for="Contact_Email" class="name">Contact E-mail:</label>
  <div class="value">
    <input type="text" id="Contact_Email" name="Contact_Email" value="<%if Contact_Email%><%escape_html Contact_Email%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <label for="Add_Date" class="name">Add Date: </label>
  <div class="value">
    <input type="text" id="Add_Date" name="Add_Date" value="<%if Add_Date%><%escape_html Add_Date%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <label for="Mod_Date" class="name">Mod Date: </label>
  <div class="value">
    <input type="text" id="Mod_Date" name="Mod_Date" value="<%if Mod_Date%><%escape_html Mod_Date%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph1" class="name">Paragraph #1:</label>
      <textarea id="Paragraph1" name="Paragraph1" rows="3" cols="25"><%if Paragraph1%><%escape_html Paragraph1%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #1: <input type="file" name="Image1" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #2: <input type="file" name="Image2" />
  </div>
  <div class="form_right">
      <label for="Paragraph2" class="name">Paragraph #2:</label>
      <textarea id="Paragraph2" name="Paragraph2" rows="3" cols="25"><%if Paragraph2%><%escape_html Paragraph2%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph3" class="name">Paragraph #3:</label>
      <textarea id="Paragraph3" name="Paragraph3" rows="3" cols="25"><%if Paragraph3%><%escape_html Paragraph3%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #3: <input type="file" name="Image3" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #4: <input type="file" name="Image4" />
  </div>
  <div class="form_right">
      <label for="Paragraph4" class="name">Paragraph #4:</label>
      <textarea id="Paragraph4" name="Paragraph4" rows="3" cols="25"><%if Paragraph4%><%escape_html Paragraph4%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph5" class="name">Paragraph #5:</label>
      <textarea id="Paragraph5" name="Paragraph5" rows="3" cols="25"><%if Paragraph5%><%escape_html Paragraph5%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #5: <input type="file" name="Image5" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #6: <input type="file" name="Image6" />
  </div>
  <div class="form_right">
      <label for="Paragraph6" class="name">Paragraph #6:</label>
      <textarea id="Paragraph6" name="Paragraph6" rows="3" cols="25"><%if Paragraph6%><%escape_html Paragraph6%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph7" class="name">Paragraph #7:</label>
      <textarea id="Paragraph7" name="Paragraph7" rows="3" cols="25"><%if Paragraph7%><%escape_html Paragraph7%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #7: <input type="file" name="Image7" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #8: <input type="file" name="Image8" />
  </div>
  <div class="form_right">
      <label for="Paragraph8" class="name">Paragraph #8:</label>
      <textarea id="Paragraph8" name="Paragraph8" rows="3" cols="25"><%if Paragraph8%><%escape_html Paragraph8%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph9" class="name">Paragraph #9:</label>
      <textarea id="Paragraph9" name="Paragraph9" rows="3" cols="25"><%if Paragraph9%><%escape_html Paragraph9%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #9: <input type="file" name="Image9" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #10: <input type="file" name="Image10" />
  </div>
  <div class="form_right">
      <label for="Paragraph10" class="name">Paragraph #10:</label>
      <textarea id="Paragraph10" name="Paragraph10" rows="3" cols="25"><%if Paragraph10%><%escape_html Paragraph10%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph11" class="name">Paragraph #11:</label>
      <textarea id="Paragraph11" name="Paragraph11" rows="3" cols="25"><%if Paragraph11%><%escape_html Paragraph11%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #11: <input type="file" name="Image11" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #12: <input type="file" name="Image12" />
  </div>
  <div class="form_right">
      <label for="Paragraph12" class="name">Paragraph #12:</label>
      <textarea id="Paragraph12" name="Paragraph12" rows="3" cols="25"><%if Paragraph12%><%escape_html Paragraph12%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph13" class="name">Paragraph #13:</label>
      <textarea id="Paragraph13" name="Paragraph13" rows="3" cols="25"><%if Paragraph13%><%escape_html Paragraph13%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #13: <input type="file" name="Image13" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #14: <input type="file" name="Image14" />
  </div>
  <div class="form_right">
      <label for="Paragraph14" class="name">Paragraph #14:</label>
      <textarea id="Paragraph14" name="Paragraph14" rows="3" cols="25"><%if Paragraph14%><%escape_html Paragraph14%><%endif%></textarea>
  </div>
</div>
<div class="row clear">
  <div class="form_left">
      <label for="Paragraph15" class="name">Paragraph #15:</label>
      <textarea id="Paragraph15" name="Paragraph15" rows="3" cols="25"><%if Paragraph15%><%escape_html Paragraph15%><%endif%></textarea>
  </div>
  <div class="form_right form_image">
    Image #15: <input type="file" name="Image15" />
  </div>
</div>
<div class="row clear">
  <div class="form_left form_image">
      Image #16: <input type="file" name="Image16" />
  </div>
  <div class="form_right">
      <label for="Paragraph16" class="name">Paragraph #16:</label>
      <textarea id="Paragraph16" name="Paragraph16" rows="3" cols="25"><%if Paragraph16%><%escape_html Paragraph16%><%endif%></textarea>
  </div>
</div>

<div class="row clear">
  <label for="RelatedArticles" class="name">Related Article IDs:<br />One per line</label>
  <div class="value">
      <textarea id="RelatedArticles" name="RelatedArticles" rows="3" cols="25"><%if RelatedArticles%><%escape_html RelatedArticles%><%endif%></textarea>
  </div>
</div>

<div class="row clear">
  <label for="Related_Article1" class="name">Related Article #1:</label>
  <div class="value">
    <input type="text" id="Related_Article1" name="Related_Article1" value="<%if Related_Article1%><%escape_html Related_Article1%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <label for="Related_Article2" class="name">Related Article #2:</label>
  <div class="value">
    <input type="text" id="Related_Article2" name="Related_Article2" value="<%if Related_Article2%><%escape_html Related_Article2%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <label for="Related_Article3" class="name">Related Article #3:</label>
  <div class="value">
    <input type="text" id="Related_Article3" name="Related_Article3" value="<%if Related_Article3%><%escape_html Related_Article3%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <label for="Related_Article4" class="name">Related Article #4:</label>
  <div class="value">
    <input type="text" id="Related_Article4" name="Related_Article4" value="<%if Related_Article4%><%escape_html Related_Article4%><%endif%>" class="text" />
  </div>
</div>
<div class="row clear">
  <label for="Related_Article5" class="name">Related Article #5:</label>
  <div class="value">
    <input type="text" id="Related_Article5" name="Related_Article5" value="<%if Related_Article5%><%escape_html Related_Article5%><%endif%>" class="text" />
  </div>
</div>

