<% set show_photo = 0 %>
<% if Link_Type eq 'photo' %>
<% set show_photo = 1 %>
<% endif %>
<div id='article_has_video' class="drow"<%if show_photo %> style="display:none"<% endif %>>
  <div for="hasVideo" class="dcell name">Does this article have a video embedded?</div>
  <div class="dcell value">
    <select name="hasVideo" id="hasVideo">
      <option value="Yes"<%if hasVideo eq 'Yes'%> selected<%endif%>>Yes</option>
      <option value="No"<%ifnot hasVideo eq 'Yes'%> selected<%endif%>>No</option>
    </select>
  </div>
</div>
<input type="hidden" name="showLargePic" value="Yes">
<%--
<div id='photo_large_pic' class="drow"<%if not show_photo %> style="display:none"<% endif %>>
  <div for="showLargePic" class="dcell name">Use Large Pictures Template?</div>
  <div class="dcell value">
    <select name="showLargePic" id="showLargePic">
      <option value="Yes"<%if showLargePic eq 'Yes'%> selected<%endif%>>Yes</option>
      <option value="No"<%ifnot showLargePic eq 'Yes'%> selected<%endif%>>No</option>
    </select>
  </div>
</div>
--%>
<%loop 1 .. 20%>
<%~set image_context = get_image_context($loop_value)%>
<div class="drow" id='photo<%loop_value%>' <%if not show_photo %> style="display:none"<% endif %>>
  <div class="dcell name" for="Image1_description">Description for Image #<%loop_value%>:</div>
  <div class="dcell value">
    <textarea id="Image<%loop_value%>_description" name="Image<%loop_value%>_description" rows="3" class="txt midtext"><%escape_html image_context.description%></textarea>
  </div>
</div>
<div class="drow" id='article<%loop_value%>'<%if show_photo %> style="display:none"<% endif %>>
  <div for="Paragraph1" class="dcell name">Paragraph #<%loop_value%>:</div>
  <div class="dcell value">
    <textarea id="Paragraph<%loop_value%>" name="Paragraph<%loop_value%>" rows="3" class="txt midtext"><%escape_html image_context.paragraph%></textarea>
  </div>
</div>
<div class="drow form_image">
  <div class="dcell name">Image #<%loop_value%></div>
  <div class="dcell value">
    <input type="file" name="Image<%loop_value%>" />
  </div>
</div>
<%~endloop%>

<%--
<div class="drow">
    <div class="form_left form_image">
        Image #2: <input type="file" name="Image2" />
    </div>
    <div class="form_right" id='photo2' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image2_description">Description for Image #2:</div>
        <textarea id="Image2_description" name="Image2_description" rows="3" cols="25"><%if Image2_description%><%escape_html Image2_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article2' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph2" class="dcell name">Paragraph #2:</div>
      <textarea id="Paragraph2" name="Paragraph2" rows="3" cols="25"><%if Paragraph2%><%escape_html Paragraph2%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left" id='photo3' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image3_description">Description for Image #3:</div>
        <textarea id="Image3_description" name="Image3_description" rows="3" cols="25"><%if Image3_description%><%escape_html Image3_description%><%endif%></textarea>
    </div>
    <div class="form_left" id='article3' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph3" class="dcell name">Paragraph #3:</div>
      <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="drow">
    <div class="form_left form_image">
        Image #4: <input type="file" name="Image4" />
    </div>
    <div class="form_right" id='photo4' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image4_description">Description for Image #4:</div>
        <textarea id="Image4_description" name="Image4_description" rows="3" cols="25"><%if Image4_description%><%escape_html Image4_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article4' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph4" class="dcell name">Paragraph #4:</div>
      <textarea id="Paragraph4" name="Paragraph4" rows="3" cols="25"><%if Paragraph4%><%escape_html Paragraph4%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left" id='photo5' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image5_description">Description for Image #5:</div>
        <textarea id="Image5_description" name="Image5_description" rows="3" cols="25"><%if Image5_description%><%escape_html Image5_description%><%endif%></textarea>
    </div>
    <div class="form_left" id='article5' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph5" class="dcell name">Paragraph #5:</div>
      <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="drow">
    <div class="form_left form_image">
        Image #6: <input type="file" name="Image6" />
    </div>
    <div class="form_right" id='photo6' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image6_description">Description for Image #6:</div>
        <textarea id="Image6_description" name="Image6_description" rows="3" cols="25"><%if Image6_description%><%escape_html Image6_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article6' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph6" class="dcell name">Paragraph #6:</div>
      <textarea id="Paragraph6" name="Paragraph6" rows="3" cols="25"><%if Paragraph6%><%escape_html Paragraph6%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left" id='photo7' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image7_description">Description for Image #7:</div>
        <textarea id="Image7_description" name="Image7_description" rows="3" cols="25"><%if Image7_description%><%escape_html Image7_description%><%endif%></textarea>
    </div>
    <div class="form_left" id='article7' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph7" class="dcell name">Paragraph #7:</div>
      <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="drow">
    <div class="form_left form_image">
        Image #8: <input type="file" name="Image8" />
    </div>
    <div class="form_right" id='photo8' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image8_description">Description for Image #8:</div>
        <textarea id="Image8_description" name="Image8_description" rows="3" cols="25"><%if Image8_description%><%escape_html Image8_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article8' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph8" class="dcell name">Paragraph #8:</div>
      <textarea id="Paragraph8" name="Paragraph8" rows="3" cols="25"><%if Paragraph8%><%escape_html Paragraph8%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left" id='photo9' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image9_description">Description for Image #9:</div>
        <textarea id="Image9_description" name="Image9_description" rows="3" cols="25"><%if Image9_description%><%escape_html Image9_description%><%endif%></textarea>
    </div>
    <div class="form_left" id='article9' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph9" class="dcell name">Paragraph #9:</div>
      <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="drow">
    <div class="form_left form_image">
        Image #10: <input type="file" name="Image10" />
    </div>
    <div class="form_right" id='photo10' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image10_description">Description for Image #10:</div>
        <textarea id="Image10_description" name="Image10_description" rows="3" cols="25"><%if Image10_description%><%escape_html Image10_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article10' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph10" class="dcell name">Paragraph #10:</div>
      <textarea id="Paragraph10" name="Paragraph10" rows="3" cols="25"><%if Paragraph10%><%escape_html Paragraph10%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left" id='photo11' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image11_description">Description for Image #11:</div>
        <textarea id="Image11_description" name="Image11_description" rows="3" cols="25"><%if Image11_description%><%escape_html Image11_description%><%endif%></textarea>
    </div>
    <div class="form_left" id='article11' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph11" class="dcell name">Paragraph #11:</div>
      <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="drow">
    <div class="form_left form_image">
        Image #12: <input type="file" name="Image12" />
    </div>
    <div class="form_right" id='photo12' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image12_description">Description for Image #12:</div>
        <textarea id="Image12_description" name="Image12_description" rows="3" cols="25"><%if Image12_description%><%escape_html Image12_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article12' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph12" class="dcell name">Paragraph #12:</div>
      <textarea id="Paragraph12" name="Paragraph12" rows="3" cols="25"><%if Paragraph12%><%escape_html Paragraph12%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left" id='photo13' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image13_description">Description for Image #13:</div>
        <textarea id="Image13_description" name="Image13_description" rows="3" cols="25"><%if Image13_description%><%escape_html Image13_description%><%endif%></textarea>
    </div>
    <div class="form_left" id='article13' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph13" class="dcell name">Paragraph #13:</div>
      <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="drow">
    <div class="form_left form_image">
        Image #14: <input type="file" name="Image14" />
    </div>
    <div class="form_right" id='photo14' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image14_description">Description for Image #14:</div>
        <textarea id="Image14_description" name="Image14_description" rows="3" cols="25"><%if Image14_description%><%escape_html Image14_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article14' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph14" class="dcell name">Paragraph #14:</div>
      <textarea id="Paragraph14" name="Paragraph14" rows="3" cols="25"><%if Paragraph14%><%escape_html Paragraph14%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left" id='photo15' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image15_description">Description for Image #15:</div>
        <textarea id="Image15_description" name="Image15_description" rows="3" cols="25"><%if Image15_description%><%escape_html Image15_description%><%endif%></textarea>
    </div>
    <div class="form_left" id='article15' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph15" class="dcell name">Paragraph #15:</div>
      <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="drow">
    <div class="form_left form_image">
        Image #16: <input type="file" name="Image16" />
    </div>
    <div class="form_right" id='photo16' <%if not show_photo %> style="display:none"<% endif %>>
        <div for="Image16_description">Description for Image #16:</div>
        <textarea id="Image16_description" name="Image16_description" rows="3" cols="25"><%if Image16_description%><%escape_html Image16_description%><%endif%></textarea>
    </div>
    <div class="form_right" id='article16' <%if show_photo %> style="display:none"<% endif %>>
      <div for="Paragraph16" class="dcell name">Paragraph #16:</div>
      <textarea id="Paragraph16" name="Paragraph16" rows="3" cols="25"><%if Paragraph16%><%escape_html Paragraph16%><%endif%></textarea>
    </div>
</div>
<div id='photo_extra' <%if not show_photo %> style="display:none"<% endif %>>
<div class="drow">
    <div class="form_left">
        <div for="Image17_description">Description for Image #17:</div>
        <textarea id="Image17_description" name="Image17_description" rows="3" cols="25"><%if Image17_description%><%escape_html Image17_description%><%endif%></textarea>
    </div>
    <div class="form_right form_image">
        Image #17: <input type="file" name="Image17" />
    </div>
</div>
<div class="drow">
    <div class="form_left form_image">
        Image #18: <input type="file" name="Image18" />
    </div>
    <div class="form_right">
        <div for="Image18_description">Description for Image #18:</div>
        <textarea id="Image18_description" name="Image18_description" rows="3" cols="25"><%if Image18_description%><%escape_html Image18_description%><%endif%></textarea>
    </div>
</div>
<div class="drow">
    <div class="form_left">
        <div for="Image19_description">Description for Image #19:</div>
        <textarea id="Image19_description" name="Image19_description" rows="3" cols="25"><%if Image19_description%><%escape_html Image19_description%><%endif%></textarea>
    </div>
    <div class="form_right form_image">
        Image #19: <input type="file" name="Image19" />
    </div>
</div>
<div class="drow">
    <div class="form_left form_image">
        Image #20: <input type="file" name="Image20" />
    </div>
    <div class="form_right">
        <div for="Image20_description">Description for Image #20:</div>
        <textarea id="Image20_description" name="Image20_description" rows="3" cols="25"><%if Image20_description%><%escape_html Image20_description%><%endif%></textarea>
    </div>
</div>
--%>
